LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-26-2006, 05:00 AM   #16
simonmeaden
LQ Newbie
 
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
Question Re : Problem with MySql


I had the same problem with Fedora Core 5. I fixed it by removing "/var/lock/subsys/mysqld", then restarting via the Services GUI. After this mysql worked fine.

I believe the file should have been removed automatically by the shutdown script but was not for some reason. I suspect that mysqld crashed without cleaning up rather than a bug but I might be wrong.
 
Old 04-27-2006, 04:06 AM   #17
xxx_anuj_xxx
Member
 
Registered: Jun 2004
Location: Bharat
Distribution: RedHat, Debian, FreeBSD, Fedora, Centos
Posts: 114

Rep: Reputation: 16
OS=Red Hat Enterprise Linux ES release 4
mysql related packages=
[root@MIA ~]# rpm -qa |grep mysql
mysqlclient10-3.23.58-4.RHEL4.1
libdbi-dbd-mysql-0.6.5-10.RHEL4.1
mysql-4.1.12-3.RHEL4.1INLD
mysql-server-4.1.12-3.RHEL4.1INLD
mysql-devel-4.1.12-3.RHEL4.1INLD
php-mysql-4.3.9-3.9INLD

After rebooting the machine i am facing the same Timed out error
[root@MIA ~]# /etc/init.d/mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]

And status gives me:
[root@MIA ~]# /etc/init.d/mysqld status
mysqld dead but subsys locked

I checkd the /var/log/mysqld.log which is:

060426 5:14:02 InnoDB: Error: unable to create temporary file; errno: 13
060426 5:14:02 InnoDB: Error: unable to create temporary file; errno: 13
060426 5:14:02 InnoDB: Error: unable to create temporary file; errno: 13
060426 5:14:02 InnoDB: Error: unable to create temporary file; errno: 13
060427 1:39:49 [Note] /usr/libexec/mysqld: Normal shutdown

060427 1:39:49 InnoDB: Starting shutdown...
060427 1:39:53 InnoDB: Shutdown completed; log sequence number 0 1342013
060427 1:39:53 [Note] /usr/libexec/mysqld: Shutdown complete

060427 11:09:53 mysqld ended

060427 11:11:26 mysqld started
/usr/libexec/mysqld: Can't create/write to file '/tmp/ibowZA6D' (Errcode: 13)
060427 11:11:27 InnoDB: Error: unable to create temporary file; errno: 13
060427 11:11:27 [ERROR] Can't init databases
060427 11:11:27 [ERROR] Aborting

060427 11:11:27 [Note] /usr/libexec/mysqld: Shutdown complete

060427 11:11:27 mysqld ended

060427 11:15:53 mysqld started
/usr/libexec/mysqld: Can't create/write to file '/tmp/ibk4gLG1' (Errcode: 13)
060427 11:15:53 InnoDB: Error: unable to create temporary file; errno: 13
060427 11:15:53 [ERROR] Can't init databases
060427 11:15:53 [ERROR] Aborting

060427 11:15:53 [Note] /usr/libexec/mysqld: Shutdown complete



########################################

Now for restarting mysqld and possible lock problem I removed

/var/lock/subsys/mysqld

as well as
/var/lib/mysql.sock

restared the /etc/init.d/mysqld But facing the same time out error.

The thing I found is after removing both the files are created again. But there is no pid file in my /var/run/mysqld
as it's restart/start is giving time out error.

Any idea ? solution?


thanks and regards
Anuj
 
Old 10-14-2006, 01:57 PM   #18
johnwp
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
Fixed mine

Here's what I did to fix this problem:

As a security measure networking in the mysql server has been disabled per
default, only localhost connections will work. This is because the mysql
root user has no password in a default install and that leaves the MySQL
server open for anyone to use.

To do this, open /etc/sysconfig/mysqld and change the line:

MYSQLD_OPTIONS="--skip-networking"
to
MYSQLD_OPTIONS=""

Save and restart mysql. Voila!
 
Old 02-19-2009, 11:33 AM   #19
secretelvis
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
Simple Solution Worked for Me

All,

I wrangled with this problem for a while, and found a very simple solution that worked.

In the directory /var/lib/mysql/ are files with names similar to: "mysql-bin.000xxxx". Most of them were owned by mysql:mysql, but the latest one (by number) was owned by root:root.

I believe the latest file was written when I executed '/usr/libexec/mysqld --user=root &' to start the DB.

By changing the ownership of the latest mysql-bin.xxx file from root:root to mysql:mysql using 'sudo chown mysql:mysql mysql-bin.xxxx', I was then able to start MySQL with /etc/init.d/mysqld start.

Hope this helps.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bugzilla - MySQL - perl - DBD::mysql install problem Runningonair Linux - Software 8 10-12-2007 12:42 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
mysql 4.0.24 to mysql 4.1.12 upgrade problem tuxrules Slackware 7 08-13-2005 06:43 PM
MySQL server problem after linking (mysql.sock) ewijaya Linux - General 4 01-19-2004 09:46 AM
MySQL mysql-3.23.56-1.9, rpm install problem jacsmith510 Linux - Newbie 3 09-19-2003 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:31 PM.

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