MySQL on Ubuntu

debian-sys-maint
If you restore your MySQL database from a backup, you might end up missing grants for the  user. To restore it, you can do this: /etc/init.d/mysql stop dpkg-reconfigure mysql-server-VERSION /etc/init.d/mysql start This will not destroy your current database, just recreate the  user.

The server version can be figured out using this command: dlocate -S /usr/bin/mysqld_safe