mysql初始密码是空,其修改初始密码的方法:1、使用空的初始密码登录mysql账号;2、通过“SETPASSWORD = PASSWORD(‘123456’);”等语句修改root密码即可。
mysql初始密码是什么?
mysql初始密码是空。
MySQL修改初始密码三种方法:
方法一:
1、使用空的初始密码登录mysql账号:
mysql-uroot -p
2、修改root密码:
SETPASSWORD = PASSWORD('123456');
方法二:
1、使用空的初始密码登录mysql账号:
mysql-uroot -p
2、修改root密码:
mysqladmin -u root password '123456'
方法三:
1、使用空的初始密码登录mysql账号:
mysql-uroot -p
2、修改root密码:
mysql> update user set Password=password("123456") where User='root';
Query OK, 4 rows affected (0.01 sec)
Rows matched: 4 Changed: 4 Warnings: 0
mysql> flush privileges;
Query OK, 0 rows affected (0.04 sec)
mysql> select Host,User,password from user where user='root';
+-----------------------+------+-------------------------------------------+
| Host | User | password |
+-----------------------+------+-------------------------------------------+
| localhost | root | *5626ED34B75C6C508BA2A3D0A4F6E4C58823138C |
| localhost.localdomain | root | *5626ED34B75C6C508BA2A3D0A4F6E4C58823138C |
| 127.0.0.1 | root | *5626ED34B75C6C508BA2A3D0A4F6E4C58823138C |
| ::1 | root | *5626ED34B75C6C508BA2A3D0A4F6E4C58823138C |
+-----------------------+------+-------------------------------------------+
4 rows in set (0.00 sec)
未经允许不得转载:任鹏个人博客 » mysql初始密码是什么
最新评论
Forex wiki. https://lt.forex-stock-bitcoin-brokers.com
Magnificent items from you, man. I have take note your stuff
Following on from the 3rd March Meetings held by economic de
It is remarkable, rather valuable message dfgdlfg2131.32
一般都会有一个沙盒期的,过了沙盒期就会慢慢放出来
百度不收录是应为是新站的原因吗?
The spike in consumer prices that left inflation at a four-d