服务器之家:专注于服务器技术及软件下载分享
分类导航

Mysql|Sql Server|Oracle|Redis|MongoDB|PostgreSQL|Sqlite|DB2|mariadb|

服务器之家 - 数据库 - Mysql - 更改Mysql root用户密码

更改Mysql root用户密码

2020-06-02 15:02baozhengw Mysql

这篇文章主要介绍了更改Mysql root用户密码的相关资料,需要的朋友可以参考下

新下载了mysql,口令为空,如何修改root口令:

首先登陆mysql

?
1
2
3
use mysql;
update user set password=password('new_password') where user='root';
flush privileges;

注意需要

flush privileges;

更改Mysql root用户口令的内容小编就给大家介绍到这里,希望对大家有所帮助!

延伸 · 阅读

精彩推荐