LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-29-2006, 08:39 AM   #1
bradsmiley
Member
 
Registered: Aug 2006
Posts: 37

Rep: Reputation: 15
MYSQL install on Linux (NEWBIE)


Hi, i have successfully installed PHP on my web server and now i want to install mysql on the web server, but i am having problems.

i did ./configure and then i tried the following and got the error as below:

root@localhost mysql-5.0.24]# Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysqld/mysqld.pid
060829 15:39:15 mysqld ended


i tried make but it is also unsuccessful.
make
make: *** No targets specified and no makefile found. Stop.
[1]+ Done ./bin/mysqld_safe
 
Old 08-29-2006, 09:05 AM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
It'll be easier if you install a precompiled package using apt-get or yum. All you have to do is type 'apt-get install mysql-server' or 'yum install mysql-server' and let the package installer do the work for you.
 
Old 08-29-2006, 11:53 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
There should be an error log somewhere that will show you why mysql failed to start properly. Its location will depend on your installation e.g. on mine its in /var/log/mysql.
 
Old 08-30-2006, 01:26 AM   #4
bradsmiley
Member
 
Registered: Aug 2006
Posts: 37

Original Poster
Rep: Reputation: 15
I successfully installed mysql, this was output on the terminal:

Installed: mysql-server.i386 0:4.1.20-1.RHEL4.1
Complete!


However i am typing cd /usr ; /usr/bin/mysqld_safe & and the error still comes up:
STOPPING server from pid file /var/run/mysqld/mysqld.pid
060830 08:23:29 mysqld ended

brad
 
Old 08-30-2006, 01:46 AM   #5
bradsmiley
Member
 
Registered: Aug 2006
Posts: 37

Original Poster
Rep: Reputation: 15
i also tried this, and it failed:

# cd /etc/rc.d/init.d/
# ./mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]


i have followed instructions on the web and advise given here, but I dont know whether i have installed mysql properly, or what to do now. furthermore i cannot find the mysql error log.

please help
 
Old 08-30-2006, 03:16 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Did you look at the error log like I suggested?
 
Old 08-30-2006, 03:17 AM   #7
bradsmiley
Member
 
Registered: Aug 2006
Posts: 37

Original Poster
Rep: Reputation: 15
i dont know where to find the error log
 
Old 08-30-2006, 03:21 AM   #8
bradsmiley
Member
 
Registered: Aug 2006
Posts: 37

Original Poster
Rep: Reputation: 15
i found this:

/var/log/mysqld.log

060830 08:23:29 mysqld started
060830 8:23:29 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
060830 8:23:29 [ERROR] Do you already have another mysqld server running on port: 3306 ?
060830 8:23:29 [ERROR] Aborting

060830 8:23:29 [Note] /usr/libexec/mysqld: Shutdown complete

060830 08:23:29 mysqld ended

060830 08:40:40 mysqld started
060830 8:40:40 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
060830 8:40:40 [ERROR] Do you already have another mysqld server running on port: 3306 ?
060830 8:40:40 [ERROR] Aborting

060830 8:40:40 [Note] /usr/libexec/mysqld: Shutdown complete

060830 08:40:40 mysqld ended

060830 08:42:49 mysqld started
060830 8:42:49 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
060830 8:42:49 [ERROR] Do you already have another mysqld server running on port: 3306 ?
060830 8:42:49 [ERROR] Aborting

060830 8:42:49 [Note] /usr/libexec/mysqld: Shutdown complete

060830 08:42:49 mysqld ended
 
Old 08-30-2006, 08:15 AM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Some app is already using that port, most likely another mysql process. Try uninstalling all mysql packages and just install a single instance.
 
Old 08-30-2006, 11:11 AM   #10
blankbmx
LQ Newbie
 
Registered: Aug 2006
Distribution: Debian/CentOS
Posts: 23

Rep: Reputation: 15
Try doing this:

Code:
# netstat -an | grep :3306
and see if it returns any results.
Kill whatever is running on port 3306 with killall, and then try to start mysqld again.
 
  


Reply



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
Linux Newbie needs help??? MySQL, Apache2, & PHP asif2k Linux - General 5 03-12-2006 03:42 PM
Newbie with MySQL Install problem pendulum Linux - Newbie 3 04-12-2005 11:59 PM
How to install mysql on Xandros 2.0 for Newbie jdruin Linux - Software 1 07-03-2004 03:15 PM
Linux newbie needs help with install of MySQL on Redhat9 bkimelman Linux - Software 1 11-03-2003 11:28 AM
Newbie MySQL install help andweave Linux - Software 3 06-27-2002 06:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:38 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration