1. 设置口令:
UPDATE user SET Password=PASSWORD('9999') WHERE user='root';
FLUSH PRIVILEGES;
2.登陆 mysql -u root -p
3. 进入数据,创建一个新账号ut_one 密码是 8888
use mydb;
GRANT ALL PRIVILEGES ON *.* TO ut_one@localhost IDENTIFIED BY '8888' WITH GRANT OPTION;
阅读(1505) | 评论(0) | 转发(0) |