Very frustrating.
I found a suggestion on another forum about starting it in safe mode in the foreground manually and logging errors to a specified file.
I had lots of InnoDB errors that I resolved by either rm logfiles or commenting parts of my.cnf relevant to innodb.
Now, I can start it manually with no errors with the command:
- Code: Select all
mysqld_safe --log-error=/var/log/mysql.err
This allows me to run mysql
I can see my databases and the tables in them, but if I try a query I get "Table 'x.x' doesn't exist....even though I see it with the show tables command!?!?
If I try to start the system service, I get this error:
- Code: Select all
systemctl start mysqld
Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -n' for details.
[root@localhost multi-user.target.wants]# systemctl status mysqld.service
mysqld.service - MySQL database server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)
Active: failed (Result: start-limit) since Thu, 2013-10-17 14:27:35 CDT; 5s ago
Process: 3334 ExecStartPre=/usr/sbin/mysqld-prepare-db-dir (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/mysqld.service
Oct 17 14:27:35 localhost systemd[1]: Failed to start MySQL database server.
Oct 17 14:27:35 localhost systemd[1]: Unit mysqld.service entered failed state
Oct 17 14:27:35 localhost mysqld-prepare-db-dir[3334]: chown: changing ownership of ‘/home/brett/...ed
Oct 17 14:27:35 localhost mysqld-prepare-db-dir[3334]: chown: changing ownership of ‘/home/brett/...ed
Oct 17 14:27:35 localhost mysqld-prepare-db-dir[3334]: chown: changing ownership of ‘/home/brett/...ed
Oct 17 14:27:35 localhost mysqld-prepare-db-dir[3334]: chown: changing ownership of ‘/home/brett/...ed
Oct 17 14:27:35 localhost systemd[1]: Stopping MySQL database server...
Oct 17 14:27:35 localhost systemd[1]: Starting MySQL database server...
Oct 17 14:27:35 localhost systemd[1]: Failed to start MySQL database server.
Oct 17 14:27:35 localhost systemd[1]: Unit mysqld.service entered failed state
This is killing me because this is a production machine and I need mysql for some work I am doing.