Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-14-2008, 03:18 AM   #1
LQ Newbie
Registered: Aug 2008
Posts: 5

Rep: Reputation: 0
Newbie Installing MySQL for practice

Hi I am a newbie installing MySQL. Im trying to teach myself how to learn more about Linux. Im trying to follow a guide from a Sams teach yourself book. Oddly enough its giving me some steps that are not working.
I basically put the source distribution from a CD to the /usr/local/ directory and extracted the MySQL archive from cdrom.

made a link to mysql directory
then went into the mysql directory where all the files are located.

The book says this:
#groupadd mysql
#useradd-g mysql mysql
- This worked fine But then had problems with below

"Issue the following series of commands to finish the installation and start your MySQL server: "

#scripts/mysql_install_db --user=mysql
#chown -R root .
#chown -R mysql mysql_data
#chgrp -R mysql .
#bin/mysqld_safe --user=mysql &

So when i type in the first command i get
-bash: scripts/mysql_install_db: No such file or directory

I checked the directory scripts and its in there. Tried different variations too and same error. Wondering what I can do of if anyone is familiar with this? What am I doing wrong? Thanks!
Old 08-14-2008, 06:08 AM   #2
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Rep: Reputation: 32
Have you tried running mysql with the following command: service mysqld start? If so whats the output?
Old 08-14-2008, 06:19 AM   #3
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
What version of mysql....and ls -al the scripts folder and the mysql bin folder...
somthing like
ls -al ..../mysql/bin
ls -al ..../mysql/scripts
Old 08-14-2008, 06:24 AM   #4
LQ Newbie
Registered: Aug 2007
Posts: 6
Blog Entries: 2

Rep: Reputation: 0
By the way which linux and version have you installed?
In most of the linux like ubuntu,redhat while doing setup you will get an option to make this installation of linux as a LAMP server (i.e. Linux Apache Mysql PHP). So i think you should better try these ones. I think this should help you as in LAMP server you dont hae to configure each component individually as they all come in a package.

Er.Rupesh Pradhan
System Adminsitrator,MCSE


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Having problems installing MySQL on red hat 9. Cannot find mysql.sock oferu Linux - Newbie 3 05-27-2008 07:13 PM
Best practice for backing up MySQL? Swakoo Linux - General 6 01-17-2008 03:45 AM
installing and managing new apps. good practice! bikov_k Linux - Newbie 4 10-02-2004 04:23 PM
Writing an app that uses a mysql database without installing mysql server? QtCoder Programming 4 08-09-2004 02:43 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration