Mysql8.0.18版本与可视化工具SQLyog连接问题(已解决)

萝らか妹 提交于 2019-12-14 01:07:28

最新版Mysql与可视化工具SQLyog连接问题

最新版Mysql与可视化工具SQLyog连接问题

出现如下图错误时:第二种第一种错误

这两种错误时

在这里插入图片描述

然后:

G:\17\zzzzzzzzzzzzzzzzzzzzzzz\mysql-8.0.18-winx64\bin>mysql -u root -p
Enter password: ************
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 21
Server version: 8.0.18

Copyright © 2000, 2019, 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.

mysql> use mysql;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement befo
re executing this statement.
mysql> set password=PASSWORD(‘123456’);
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 ‘PASSW
ORD(‘123456’)’ at line 1
mysql> use mysql
ERROR 1820 (HY000): You must reset your password using ALTER USER statement befo
re executing this statement.
mysql> set global validate_password_policy=0;
ERROR 1193 (HY000): Unknown system variable ‘validate_password_policy’
mysql> Query OK, 0 rows affected (0.00 sec)
-> set global validate_password_length=1;
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 ‘Query
OK, 0 rows affected (0.00 sec)
set global validate_password_length=1’ at line 1
mysql> Query OK, 0 rows affe
-> exit;
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 ‘Query
OK, 0 rows affe
exit’ at line 1
mysql> set global validate_password_policy=0;
ERROR 1193 (HY000): Unknown system variable ‘validate_password_policy’
mysql> set global validate_password_length=1;
ERROR 1193 (HY000): Unknown system variable ‘validate_password_length’
mysql> alter user ‘root’@‘localhost’ identified by ‘123456’;
Query OK, 0 rows affected (0.05 sec)

mysql>

然后就登录成功了。
然后打开可视化工具。
在这里插入图片描述
然后如图密码输入123456就可以连接上。
问题还解决不了,可以询问 扣扣:27285久久八3八;

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!