Mysql8.0.18版本与可视化工具SQLyog连接问题(已解决)
最新版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八;