Kenneth,
Did that. Finally fixed all the tables and got a complete mysqldump of all databases (took 21 tries).
Also made a backup copy of the /var/lib/mysql directory.
Then ran the mysql_upgrade
# mysql_upgrade -u root -p
Enter password:
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
Running 'mysqlcheck with default connection arguments
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
FATAL ERROR: Upgrade failed
Fails miserably...
So now what?
The mysql_upgrade utility is run automatically during the upgrade (and updates) when the MySQL version is 5.1 or newer.
For your current situation you may want to make a physical copy of /var/lib/mysql; fix all the crashed tables; run mysql_upgrade.
Having the physical copy of /var/lib/mysql will ensure you still have something incase data is lost when fixing tables or running the upgrade utility.
- - - Updated - - -
Kenneth,
Did that. Finally fixed all the tables and got a complete mysqldump of all databases (took 21 tries).
Also made a backup copy of the /var/lib/mysql directory.
Then ran the mysql_upgrade
# mysql_upgrade -u root -p
Enter password:
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
Running 'mysqlcheck with default connection arguments
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
FATAL ERROR: Upgrade failed
Fails miserably...
So now what?
The mysql_upgrade utility is run automatically during the upgrade (and updates) when the MySQL version is 5.1 or newer.
For your current situation you may want to make a physical copy of /var/lib/mysql; fix all the crashed tables; run mysql_upgrade.
Having the physical copy of /var/lib/mysql will ensure you still have something incase data is lost when fixing tables or running the upgrade utility.