Quantcast
Channel: MySQL Forums - Install & Repo
Viewing all articles
Browse latest Browse all 7239

Disaster, dropped the "mysql" database (1 reply)

$
0
0
Messed up big time....

I was attempting to recover some diskspace as described here:

How to shrink/purge ibdata1 file in MySQL
http://stackoverflow.com/questions/3456159/how-to-shrink-purge-ibdata1-file-in-mysql

So I did a mysqldump for all datanbases.

Then I dumped the databases.

The bad news is that deleted the database named "mysql" too :-(

Now I can not reconnect to the server, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' " so I can not restore the dump.
I suppose I have deleted account info etc?!?

The good news is that I have the dump of "--all-databases"

So what are my options? Re-Install MySQL and then import the dump? The MySQL accounts I had where simple so I can easily re-create them.

Viewing all articles
Browse latest Browse all 7239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>