I'm really not sure what I'm doing wrong. I'm attempting to start mysql
Code:
[root@bebop-test /]# /etc/init.d/mysqld restart
Stopping mysqld: [ OK ]
MySQL Daemon failed to start.
Starting mysqld: [FAILED]
running mysql returns.
Code:
[root@bebop-test /]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Googled the problem and every article I could find says basically, find your mysql.sock file and set your my.cnf file to the proper location.
I search for the file and it does not appear to exist anywhere, not in /tmp or /var/lib/mysql/ or anywhere else find could look.
Google says, possibly mysqld doesn't have permissions to create the mysql.dock file, but the folder appears to be set with proper permissions.
My my.cnf
Code:
[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
# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[client]
socket=/var/lib/mysql/mysql.sock
And my error log
Code:
101119 09:05:33 mysqld ended
101119 09:12:12 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
101119 9:12:12 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 480 error messages,
but it should contain at least 705 error messages.
Check that the above file is the right version for this program!
/usr/libexec/mysqld: Unknown error 1146
101119 9:12:12 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Compressed tables use zlib 1.2.3
101119 9:12:12 InnoDB: Using Linux native AIO
101119 9:12:12 InnoDB: Initializing buffer pool, size = 128.0M
101119 9:12:12 InnoDB: Completed initialization of buffer pool
101119 9:12:12 InnoDB: highest supported file format is Barracuda.
InnoDB: 127 rollback segment(s) active.
101119 9:12:12 InnoDB: 1.1.3 started; log sequence number 86683
101119 9:12:12 [ERROR] Aborting
101119 9:12:12 InnoDB: Starting shutdown...
101119 9:12:18 InnoDB: Shutdown completed; log sequence number 1650993
101119 9:12:18 [Note]
101119 09:12:18 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
101119 09:18:21 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
101119 9:18:21 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 480 error messages,
but it should contain at least 705 error messages.
Check that the above file is the right version for this program!
/usr/libexec/mysqld: Unknown error 1146
101119 9:18:21 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Compressed tables use zlib 1.2.3
101119 9:18:21 InnoDB: Using Linux native AIO
101119 9:18:21 InnoDB: Initializing buffer pool, size = 128.0M
101119 9:18:21 InnoDB: Completed initialization of buffer pool
101119 9:18:21 InnoDB: highest supported file format is Barracuda.
101119 9:18:21 InnoDB: 1.1.3 started; log sequence number 1650993
101119 9:18:21 [ERROR] Aborting
101119 9:18:21 InnoDB: Starting shutdown...
101119 9:18:27 InnoDB: Shutdown completed; log sequence number 1650993
101119 9:18:27 [Note]
101119 09:18:27 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
101119 09:30:41 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
101119 9:30:41 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 480 error messages,
but it should contain at least 705 error messages.
Check that the above file is the right version for this program!
/usr/libexec/mysqld: Unknown error 1146
101119 9:30:41 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Compressed tables use zlib 1.2.3
101119 9:30:41 InnoDB: Using Linux native AIO
101119 9:30:41 InnoDB: Initializing buffer pool, size = 128.0M
101119 9:30:41 InnoDB: Completed initialization of buffer pool
101119 9:30:41 InnoDB: highest supported file format is Barracuda.
101119 9:30:41 InnoDB: 1.1.3 started; log sequence number 1650993
101119 9:30:41 [ERROR] Aborting
101119 9:30:41 InnoDB: Starting shutdown...
101119 9:30:47 InnoDB: Shutdown completed; log sequence number 1650993
101119 9:30:47 [Note]
101119 09:30:47 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
101119 09:34:15 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
101119 9:34:15 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 480 error messages,
but it should contain at least 705 error messages.
Check that the above file is the right version for this program!
/usr/libexec/mysqld: Unknown error 1146
101119 9:34:15 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Compressed tables use zlib 1.2.3
101119 9:34:15 InnoDB: Using Linux native AIO
101119 9:34:15 InnoDB: Initializing buffer pool, size = 128.0M
101119 9:34:15 InnoDB: Completed initialization of buffer pool
101119 9:34:15 InnoDB: highest supported file format is Barracuda.
101119 9:34:15 InnoDB: 1.1.3 started; log sequence number 1650993
101119 9:34:15 [ERROR] Aborting
101119 9:34:15 InnoDB: Starting shutdown...
101119 9:34:20 InnoDB: Shutdown completed; log sequence number 1650993
101119 9:34:20 [Note]
101119 09:34:20 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
I've attempted mysql_upgrade but of course I got error: 2002.
I'm not sure where to go from here, everything else I've found on google people generally have this problem fixed before it reaches the point that I'm at.
Need a clue, can anyone help?