mysql如何设置密码_MySQL
来源:动视网
责编:小采
时间:2020-11-09 18:03:58
mysql如何设置密码_MySQL
mysql如何设置密码_MySQL:bitsCN.com 有很多方法:1.用root 进入mysql后mysql>set password =password('你的密码');mysql>flush privileges;2.使用GRANT语句 mysql>grant all on *.* to 'root'@'localhost' IDENTIFIED BY '你的密码'w
导读mysql如何设置密码_MySQL:bitsCN.com 有很多方法:1.用root 进入mysql后mysql>set password =password('你的密码');mysql>flush privileges;2.使用GRANT语句 mysql>grant all on *.* to 'root'@'localhost' IDENTIFIED BY '你的密码'w

bitsCN.com
有很多方法:1.用root 进入mysql后mysql>set password =password('你的密码');mysql>flush privileges;
2.使用GRANT语句 mysql>grant all on *.* to 'root'@'localhost' IDENTIFIED BY '你的密码'with grant option ;mysql>flush privileges;
3.进入mysql库修改user表mysql>use mysql;mysql>update user set password=password('你的密码') where user='root'; mysql>flush privileges;
bitsCN.com
mysql如何设置密码_MySQL
mysql如何设置密码_MySQL:bitsCN.com 有很多方法:1.用root 进入mysql后mysql>set password =password('你的密码');mysql>flush privileges;2.使用GRANT语句 mysql>grant all on *.* to 'root'@'localhost' IDENTIFIED BY '你的密码'w