Ubuntu 22.04 Change Mysql root with password without sudo
sudo mysql -u root
> use mysql;
> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '***';
// *** is your password
> FLUSH PRIVILEGES;
sudo mysql -u root
> use mysql;
> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '***';
// *** is your password
> FLUSH PRIVILEGES;
張貼者: Beaktsao 於 上午9:47
沒有留言:
張貼留言