MySQL problem - server cannot start
The following version is installed on my system:
Code:
mysql-server: After attempting to run "mysqld" it gives the following error: Code:
070514 18:35:16 InnoDB: Started; log sequence number 0 43655 PS: Problems started only after I changed testing to etch and did a dist-upgrade |
try something like mysqld --skip-grant to have mysql start without the grant table. At least the server should start now. Then just to a repair of the tables and you should be set.
|
How do you repair tables? Do you mean grant permision?
My Server started fine thanks. But how do I repair the tables. Is it the grant permissions?
|
Now start the mysql console with
mysql then select the database where the broken tables are and do repair table tablename_to_repair In your case it would be use mysql; repair table user; If more then one table is broken you could write a php script that loops through all databases then loops through all tables and does a repair. Pseudo code starts here Code:
mysql_connect(); Edit: By the way a dist-upgrade does a version upgrade to the newest version. Mosttimes this is the unstable developer version. If you just want to keep uptodate do a apt-get upgrade |
All times are GMT -5. The time now is 01:38 AM. |