mysql> set password for 'root'@'localhost' = password('1234');
mysql> flush privileges;
mysql> UPDATE mysql.user SET Password = PASSWORD('newpwd') -> WHERE User = 'root';mysql> FLUSH PRIVILEGES;
UPDATE mysql.user SET Password = PASSWORD('newpwd')
newpwd
WHERE User = 'root';
FLUSH PRIVILEGES;
張貼留言
沒有留言:
張貼留言