Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-27-2005, 09:40 AM
|
#1
|
Member
Registered: Aug 2005
Location: France
Posts: 43
Rep:
|
Starting MySQL OLD Error : imeout error occurred trying to start MySQL Daemon
Hi friends,
I just installed MySQL 3.23.58 on an FC2 machine, but I can not start it :
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
Please note that I found some threads recommending edit the mysqld scripts to $RANDOM and etc. But :
I did not find any thing similar to recommendations in my own mysqld file and when I tried to change the similar parts I did not obtain any success and got same error message.
Thank you,
|
|
|
08-27-2005, 09:50 AM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Did you actually run or install a DB yet(install_mysql_db)? What do your logs tell you, with any more verbose error messages besides [FAILED]?
|
|
|
08-27-2005, 10:23 AM
|
#3
|
Member
Registered: Aug 2005
Location: France
Posts: 43
Original Poster
Rep:
|
Dear friend,
I have already run mysql_install_db and unfortunately there is no special log in my log file just :
Aug 27 01:15:20 fed02 mysqld: Starting MySQL: failed
and :
service mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: FAILED
thank you again,
|
|
|
08-27-2005, 10:26 AM
|
#4
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
You mean there is nothing in your /var/run/mysql or might be in /var/lib/mysql .err log files with any verbose errors to actually determine why mysql is failing to start?
Are you using the Fedora startup script or by any particular command?
|
|
|
08-27-2005, 10:53 AM
|
#5
|
Member
Registered: Aug 2005
Location: France
Posts: 43
Original Poster
Rep:
|
Dear friend,
I used service command in addition to ./mysqld script to start it :
./mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
but I got same error message.
In addition when I check the logs in /var/lib I do not find any thing.... unless some logs related to another version of MySQL (previous one).
Regards,
|
|
|
08-27-2005, 10:59 AM
|
#6
|
Member
Registered: Aug 2005
Location: France
Posts: 43
Original Poster
Rep:
|
In addtiion this is the relevant part of mysqld script after recommended modifications:
if [ $ret -eq 0 ]; then
STARTTIMEOUT=10
while [ $STARTTIMEOUT -gt 0 ]; do
RESPONSE=`/usr/bin/mysqladmin -u $RANDOM ping 2> /dev/null` && break
echo "$RESPONSE" | grep -q "Access denied for user" && break
sleep 1
let STARTTIMEOUT=${STARTTIMEOUT}-1
done
if [ $STARTTIMEOUT -eq 0 ]; then
echo "Timeout error occurred trying to start MySQL Daemon."
action $"Starting $prog: " /bin/false
else
action $"Starting $prog: " /bin/true
fi
|
|
|
08-27-2005, 11:14 AM
|
#7
|
Member
Registered: Aug 2005
Location: France
Posts: 43
Original Poster
Rep:
|
More info
In addition when i try to get the status of mysqld :
service mysqld status
mysqld dead but subsys locked
Thank you,
|
|
|
08-27-2005, 11:23 AM
|
#8
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Quote:
Originally posted by Fr33B5D
In addtiion this is the relevant part of mysqld script after recommended modifications:
if [ $ret -eq 0 ]; then
STARTTIMEOUT=10
while [ $STARTTIMEOUT -gt 0 ]; do
RESPONSE=`/usr/bin/mysqladmin -u $RANDOM ping 2> /dev/null` && break
echo "$RESPONSE" | grep -q "Access denied for user" && break
sleep 1
let STARTTIMEOUT=${STARTTIMEOUT}-1
done
if [ $STARTTIMEOUT -eq 0 ]; then
echo "Timeout error occurred trying to start MySQL Daemon."
action $"Starting $prog: " /bin/false
else
action $"Starting $prog: " /bin/true
fi
|
Did mysql start before these modifications? If so, remove them and attempt to restart.
|
|
|
08-27-2005, 11:06 PM
|
#9
|
Member
Registered: Aug 2005
Location: France
Posts: 43
Original Poster
Rep:
|
Dear friend it did not work fine before modifications in mysqld script and now after them does not work too.
I think that the last solution is matching a newer version of MySQL ,maybe 4.1, with Fedora2 and installing that..
What is your suggestion?
|
|
|
10-28-2006, 06:23 AM
|
#10
|
LQ Newbie
Registered: Jul 2006
Posts: 13
Rep:
|
Hello ,
I am in mess i have started 2 mysqld server process how to
kill one of server permanently .(3390) .
Because of this errror my sugar CRM cannot locate database .
Plz go through it .
service mysqld restart
Stopping MySQL: [ OK ]
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
[root@localhost root]# service mysqld status
mysqld (pid 3390) is running...
[root@localhost root]# service mysqld restart
Stopping MySQL: [ OK ]
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
[root@localhost root]# service mysqld status
mysqld (pid 3497) is running...
[root@localhost root]# ps -el |grep mysqld
4 S 0 3473 1 0 83 0 - 1235 wait4 pts/0 00:00:00 safe_mysqld
4 S 27 3497 3473 0 76 0 - 7688 - pts/0 00:00:00 mysqld
Plz help me out .
|
|
|
All times are GMT -5. The time now is 03:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|