数据库
首页 > 数据库> > Mysql 5.6修改root密码的方式

Mysql 5.6修改root密码的方式

作者:互联网

mysql> update user set Password='MyNewPass4!';
Query OK, 6 rows affected (0.00 sec)
Rows matched: 6  Changed: 6  Warnings: 0

mysql> status
--------------
mysql  Ver 14.14 Distrib 5.6.51, for Linux (x86_64) using  EditLine wrapper

Connection id:		9
Current database:	mysql
Current user:		root@localhost
SSL:			Not in use
Current pager:		stdout
Using outfile:		''
Using delimiter:	;
Server version:		5.6.51 MySQL Community Server (GPL)
Protocol version:	10
Connection:		Localhost via UNIX socket
Server characterset:	latin1
Db     characterset:	latin1
Client characterset:	utf8
Conn.  characterset:	utf8
UNIX socket:		/var/lib/mysql/mysql.sock
Uptime:			12 min 39 sec

Threads: 1  Questions: 67  Slow queries: 0  Opens: 48  Flush tables: 1  Open tables: 41  Queries per second avg: 0.088
--------------

标签:tables,5.6,Mysql,characterset,Server,Current,mysql,root
来源: https://blog.csdn.net/qq_35078688/article/details/116736570