Fedora Linux Support Community & Resources Center
  #1  
Old 2nd October 2012, 04:48 AM
canifer Offline
Registered User
 
Join Date: Jul 2012
Location: Malang
Posts: 11
linuxchrome
Failed to Start Mysqld

Hello, I'm using Fedora 17 and installed MySQL 5.5.23 by executing #yum install mysql mysql-server about 3 months ago.
Recently, I have a problem to start MySQL in my school server, when I execute

Code:
#service mysqld start
The output said:
Code:
Redirecting to /bin/systemctl  start mysqld.service
Job failed. See system journal and 'systemctl status' for details.
so, I sxecuted:
Code:
#systemctl status mysqld.service
resulting
Code:
mysqld.service - MySQL database server
	  Loaded: loaded (/usr/lib/systemd/system/mysqld.service; disabled)
	  Active: activating (start-post) since Tue, 02 Oct 2012 02:15:25 +0700; 357ms ago
	 Process: 14803 ExecStart=/usr/bin/mysqld_safe --nowatch --basedir=/usr (code=exited, status=0/SUCCESS)
	 Process: 14787 ExecStartPre=/usr/libexec/mysqld-prepare-db-dir (code=exited, status=0/SUCCESS)
	Main PID: 15015 (mysqld); Control: 15016 (mysqld-wait-rea)
	  CGroup: name=systemd:/system/mysqld.service
		  ├ 15015 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mys...
		  ├ 15016 /bin/sh /usr/libexec/mysqld-wait-ready 15015
		  └ 15035 sleep 1

Oct 02 02:15:25 devel-ptiik.xx.xx.xx mysqld_safe[14803]: 121002 02:15:25 mysqld_safe...
Oct 02 02:15:25 devel-ptiik.xx.xx.xx mysqld_safe[14803]: 121002 02:15:25 mysqld_safe...
and this is what I get from /var/log/mysql.log
Code:
121002 02:04:20 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
121002  2:04:20 [Note] Plugin 'FEDERATED' is disabled.
121002  2:04:20 InnoDB: The InnoDB memory heap is disabled
121002  2:04:20 InnoDB: Mutexes and rw_locks use GCC atomic builtins
121002  2:04:20 InnoDB: Compressed tables use zlib 1.2.5
121002  2:04:20 InnoDB: Using Linux native AIO
121002  2:04:20 InnoDB: Initializing buffer pool, size = 128.0M
121002  2:04:20 InnoDB: Completed initialization of buffer pool
121002  2:04:20 InnoDB: highest supported file format is Barracuda.
121002  2:04:20  InnoDB: Waiting for the background threads to start
121002  2:04:21 InnoDB: 1.1.8 started; log sequence number 164218417
121002  2:04:21 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address
121002  2:04:21 [ERROR] Do you already have another mysqld server running on port: 3306 ?
121002  2:04:21 [ERROR] Aborting

121002  2:04:21  InnoDB: Starting shutdown...
121002  2:04:22  InnoDB: Shutdown completed; log sequence number 164218417
121002  2:04:22 [Note] /usr/libexec/mysqld: Shutdown complete
please help to solve this problem, I'm still confused. what's going on?
I appreciate any answers
sorry for my English

Last edited by canifer; 2nd October 2012 at 04:55 AM.
Reply With Quote
  #2  
Old 2nd October 2012, 05:38 AM
6e617a696d's Avatar
6e617a696d Offline
Registered User
 
Join Date: Sep 2012
Location: Dallas, TX
Posts: 45
linuxfirefox
Re: Failed to Start Mysqld

Do 'ps -elf|grep mysql' and 'netstat -tulpn|grep LISTEN' see if mysql is listed.

Quote:
121002 2:04:21 [ERROR] Do you already have another mysqld server running on port: 3306 ?
Says that something is listening port 3306.

Also check /etc/my.cnf.
__________________
01010011 01101001 01101110 01100011 01100101 01110010 01100101 01101100 01111001 00100000 01111001 01101111 01110101 01110010 01110011 00100000 01001110 01100001 01111010 01101001 01101101 00100000 001000001 0101110
Reply With Quote
  #3  
Old 2nd October 2012, 09:13 AM
canifer Offline
Registered User
 
Join Date: Jul 2012
Location: Malang
Posts: 11
linuxubuntufirefox
Re: Failed to Start Mysqld

Quote:
Originally Posted by 6e617a696d View Post
Do 'ps -elf|grep mysql' and 'netstat -tulpn|grep LISTEN' see if mysql is listed.



Says that something is listening port 3306.

Also check /etc/my.cnf.
Hello, thanks for your response.
here is what I get from 'ps -elf|grep mysqld'
Code:
0 S mysql    28292     1  6  80   0 - 103047 poll_s 06:38 ?       00:00:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock --port=3306
4 S mysql    28293     1  0  80   0 - 28538 wait   06:38 ?        00:00:00 /bin/sh /usr/libexec/mysqld-wait-ready 28292
0 S mysql    28312 28293  0  80   0 - 26711 hrtime 06:38 ?        00:00:00 sleep 1
0 S ivan     28329 22878  0  80   0 - 27350 pipe_w 06:38 pts/0    00:00:00 grep --color=auto mysql
looking from that output, I think the mySQL process is stuck waiting state. Then after execute 'netstat -tulpn|grep LISTEN' I got this output:
Code:
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      804/rpcbind         
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      831/httpd           
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      803/sshd            
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      818/sendmail: accep 
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      831/httpd           
tcp        0      0 0.0.0.0:44350           0.0.0.0:*               LISTEN      816/rpc.statd       
tcp6       0      0 :::43149                :::*                    LISTEN      816/rpc.statd       
tcp6       0      0 :::111                  :::*                    LISTEN      804/rpcbind         
tcp6       0      0 :::22                   :::*                    LISTEN      803/sshd
There is no single process listening from port 3306
Reply With Quote
  #4  
Old 2nd October 2012, 10:56 AM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,150
linuxfirefox
Re: Failed to Start Mysqld

Does it run if you restart it after a manual restart?
Reply With Quote
Reply

Tags
failed, mysqld, start

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL (mysqld) fails to start! exipnakias Servers & Networking 4 27th September 2011 08:58 PM
cannot start mysql: touch: setting times of `/var/log/mysqld.log': Bad address Ramon8 Servers & Networking 3 17th March 2011 06:52 PM
#/etc/init.d/mysqld start FAILS won't start mysql cwynn Servers & Networking 17 19th September 2006 02:59 AM
dbus-daemon-1: Failed to start message bus: Failed to bind socket HaydnH Using Fedora 2 30th June 2005 05:31 PM
mysqld won't start Aardvark Freak Servers & Networking 17 31st May 2005 03:14 AM


Current GMT-time: 13:20 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat