设置方法:1、使用“set password =password('你的密码');”命令;2、使用“update user set password=password('你的密码') where user='root';”命
设置方法:1、使用“set password =password('你的密码');”命令;2、使用“update user set password=password('你的密码') where user='root';”命令。
mysql设置密码
有很多方法:
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;
推荐教程:mysql视频教程
免责声明:本文内容由互联网用户自发贡献自行上传,本网站不拥有所有权,也不承认相关法律责任。如果您发现本社区中有涉嫌抄袭的内容,请发送邮件至:operations@xinnet.com进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。