安装破解我直接上链接了
https://blog.csdn.net/wypersist/article/details/79834490
弄完后打开
要先更新下,因为会碰到这样的1251的错误
1、win+R cmd 输入mysql -uroot -p
C:\Users\23135> mysql -uroot -p
2、输入密码
Enter password: ***********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 17
Server version: 8.0.13 MySQL Community Server - GPL
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
3、接着按步骤
//这是更改密码的加密方式
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; Query OK, 0 rows affected (0.08 sec)
//更改密码,密码为最后引号中的123456
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
Query OK, 0 rows affected (0.05 sec)
//刷新
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)
接下来就是测试下了
mysql> use mysql
Database changed
mysql> select user,host from user
-> select user,host from user;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'select user,host from user' at line 2
mysql> select user,host from user;
+------------------+-----------+
| user | host |
+------------------+-----------+
| mysql.infoschema | localhost |
| mysql.session | localhost |
| mysql.sys | localhost |
| root | localhost |
+------------------+-----------+
4 rows in set (0.00 sec)
然后打开软件
输入一个连接名后,输入密码,我输的是root,然后点测试
然后gg,因为要输入之前设置的,我是123456,才能成功,23333
最后就成功了
到这就结束了 ·
_Genm