mysql server restart
Last modified on July 24, 2026 • 1 min read • 57 wordsMy mysqld runs on Ubuntu Hardy and after replacing the complete mysql data with a dump from another server the “/etc/init.d/mysql stop” command fails, because the system administration account doesn’t work anymore.
GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;The password can be obtained from /etc/mysql/debian.cnf.