Skip to content

Monster Oasis

  • 浪況預測
  • KML2CSV
  • World Marathon
  • Privacy Policy

[memo] Ubuntu forgot mysql root password

2016/01/17 by Monster

#
sudo /etc/init.d/mysql stop

sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &

mysql -u root

FLUSH PRIVILEGES;
SET PASSWORD FOR root@'localhost' = PASSWORD('password');
FLUSH PRIVILEGES;

sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysql start
#
Categories DATABASE, Service, Software Tags mysql, ubuntu
[memo] Oracle Database 11g Release 2 (11.2) Installation On Oracle Linux 6
[oracle] create user / schema syntax command
© 2025 Monster Oasis • Built with GeneratePress