SterLo
February 11th, 2009, 01:22 AM
So I seek the wisdom of the masses.
Trying to start MySQL up and it says failed...
/etc/init.d/mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
Immediately WTF is stamped on my forehead.
To find out why I run, tail -f /var/log/mysqld.log:
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
090210 15:54:02 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 43655.
InnoDB: Doing recovery: scanned up to log sequence number 0 43655
090210 15:54:02 InnoDB: Started; log sequence number 0 43655
090210 15:54:02 [ERROR] /usr/libexec/mysqld: Can't create/write to file '/var/run/mysqld/mysqld.pid' (Errcode: 13)
090210 15:54:02 [ERROR] Can't start server: can't create PID file: Permission denied
090210 15:54:02 mysqld ended
1. The user MySQL does in fact exist in the passwd file.
2. The folder /var/run/mysqld is 755 and mysql:root
3. I am doing all of this as Root.
4. uname -a: Linux ***** 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 12:03:43 EST 2008 i686 i686 i386 GNU/Linux
5. cat /etc/my.cnf:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
6.Permissions for /usr/libexec/mysqld:
rwxr-xr-x 1 root root 7308960 May 25 2008 mysqld
7. rpm -qa | grep mysql
mysql-5.0.45-7.el5
mysql-server-5.0.45-7.el5
php-mysql-5.1.6-20.el5_2.1
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
Where do I go from here?
[Just realized I posted this in the wrong section. Sorry about that.]
Trying to start MySQL up and it says failed...
/etc/init.d/mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
Immediately WTF is stamped on my forehead.
To find out why I run, tail -f /var/log/mysqld.log:
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
090210 15:54:02 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 43655.
InnoDB: Doing recovery: scanned up to log sequence number 0 43655
090210 15:54:02 InnoDB: Started; log sequence number 0 43655
090210 15:54:02 [ERROR] /usr/libexec/mysqld: Can't create/write to file '/var/run/mysqld/mysqld.pid' (Errcode: 13)
090210 15:54:02 [ERROR] Can't start server: can't create PID file: Permission denied
090210 15:54:02 mysqld ended
1. The user MySQL does in fact exist in the passwd file.
2. The folder /var/run/mysqld is 755 and mysql:root
3. I am doing all of this as Root.
4. uname -a: Linux ***** 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 12:03:43 EST 2008 i686 i686 i386 GNU/Linux
5. cat /etc/my.cnf:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
6.Permissions for /usr/libexec/mysqld:
rwxr-xr-x 1 root root 7308960 May 25 2008 mysqld
7. rpm -qa | grep mysql
mysql-5.0.45-7.el5
mysql-server-5.0.45-7.el5
php-mysql-5.1.6-20.el5_2.1
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
Where do I go from here?
[Just realized I posted this in the wrong section. Sorry about that.]