LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 08-14-2008, 04:18 AM   #1
lastcall79
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, 07:08 AM   #2
immortaltechnique
Member
 
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, 07:19 AM   #3
helptonewbie
Member
 
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, 07:24 AM   #4
rupeshpra
LQ Newbie
 
Registered: Aug 2007
Posts: 6
Blog Entries: 2

Rep: Reputation: 0
Hi!
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
 
  


Reply


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 08:13 PM
Best practice for backing up MySQL? Swakoo Linux - General 6 01-17-2008 04:45 AM
installing and managing new apps. good practice! bikov_k Linux - Newbie 4 10-02-2004 05:23 PM
Writing an app that uses a mysql database without installing mysql server? QtCoder Programming 4 08-09-2004 03:43 PM


All times are GMT -5. The time now is 12:27 PM.

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