I've got slack64 13.1 and I want to get mysqld up and running, problem is it won't start. I ran the mysql_install_db --user=root command listed in the comments of the startup script, but I still get these errors:
Code:
bash-4.1# /etc/rc.d/rc.mysqld start
bash-4.1# 110114 16:15:00 mysqld_safe Logging to '/var/lib/mysql/multimedia.err'.
110114 16:15:00 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110114 16:15:00 mysqld_safe mysqld from pid file /var/run/mysql/mysql.pid ended
From /var/lib/mysql/multimedia.err:
Code:
110114 16:15:00 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
110114 16:15:00 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: Log scan progressed past the checkpoint lsn 0 37356
110114 16:15:00 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 0 44233
110114 16:15:00 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
110114 16:15:00 InnoDB: Started; log sequence number 0 44233
110114 16:15:00 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
110114 16:15:00 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
110114 16:15:00 mysqld_safe mysqld from pid file /var/run/mysql/mysql.pid ended
bash-4.1# mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck with default connection arguments
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
The error file says that I should try running mysql_upgrade to upgrade the database, so despite common sense I tried: no surprise here when it complains that the daemon isn't running. Any other ideas?