Navicat 连接mysql8.0时报错
命令
mysql -u root -p use mysql select user,host,plugin from user; alter user 'haidragon'@'%' identified with mysql_native_password by 'pass123'; select user,host,plugin from user; exit mysql.server restart (mac)
192:etc haidragon$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 18
Server version: 8.0.15 Homebrew
Copyright (c) 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
Database changed
mysql> select user,host,plugin from user;
+------------------+-----------+-----------------------+
| user | host | plugin |
+------------------+-----------+-----------------------+
| haidragon | % | caching_sha2_password |
| mysql.infoschema | localhost | caching_sha2_password |
| mysql.session | localhost | caching_sha2_password |
| mysql.sys | localhost | caching_sha2_password |
| root | localhost | caching_sha2_password |
+------------------+-----------+-----------------------+
5 rows in set (0.00 sec)
mysql> alter user 'haidragon'@'%' identified with mysql_native_password by 'pass123'
-> ;
Query OK, 0 rows affected (0.01 sec)
mysql> select user,host,plugin from user;
+------------------+-----------+-----------------------+
| user | host | plugin |
+------------------+-----------+-----------------------+
| haidragon | % | mysql_native_password |
| mysql.infoschema | localhost | caching_sha2_password |
| mysql.session | localhost | caching_sha2_password |
| mysql.sys | localhost | caching_sha2_password |
| root | localhost | caching_sha2_password |
+------------------+-----------+-----------------------+
5 rows in set (0.00 sec)
mysql> exit
Bye
192:etc haidragon$ sqlite3
Display all 116 possibilities? (y or n)
192:etc haidragon$ sqlit
192:etc haidragon$ my
my_print_defaults mysql_secure_installation mysqldump
myisam_ftdump mysql_ssl_rsa_setup mysqldumpslow
myisamchk mysql_tzinfo_to_sql mysqlimport
myisamlog mysql_upgrade mysqlpump
myisampack mysqladmin mysqlrouter
mysql mysqlbinlog mysqlrouter_plugin_info
mysql.server mysqlcheck mysqlshow
mysql_client_test mysqld mysqlslap
mysql_config mysqld_multi mysqltest
mysql_config_editor mysqld_safe mysqlxtest
192:etc haidragon$ mysql.server restart
Shutting down MySQL
.. SUCCESS!
Starting MySQL
.. SUCCESS!
192:etc haidragon$
参考:
https://blog.csdn.net/myNameIssls/article/details/84031426
- navicat for mysql (10038)如何解决,远程无法连接问题
- Navicat for mysql 远程连接 mySql数据库10061、1045错误
- navicat连接数据库慢,或者连接不上,其他远程连接MySQL正常,是什么原因?
- ECS Navicat for MySQL远程连接报10038的错误
- my SQL下载安装,环境配置,以及密码忘记的解决,以及navicat for mysql下载,安装,测试连接
- Navicat连接mysql 2003 - Can't connect to MySQL server on ' '(10038)
- Navicat连接MySQL数据库时:2003-Cannect to MySQL server on ''localhost(10061)"
- Navicat for Mysql连接mysql数据库时出现 2003-Can't connect to MySql server on 'localhost'(10061)
- 连接数据库 出现1130错误 Navicat for MySQL(phpStudy环境下)
- Windows下Navicat连接虚拟机CentOS中的MySql
- navicat如何连接mysql?navicat 连接mysql Navicat使用教程
- 使用navicat设置mysql允许外部IP连接【1130 - Host'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL serve】
- navicat远程连接mysql,2003 can't connect to mysql server on 10038
- 使用navicat建立与服务器的远程mysql连接
- mysql远程连接错误10038--navicat for mysql (10038)
- Navicat for MySQL连接mysql数据库提示1130错误
- Navicat 远程连接 mysql 报10038的错误
- Navicat 无法远程连接到 MySQL
- 阿里云服务器MySQL(5.7V)数据库用Navicat连接
- 从本地连接MySQL服务器中的数据库_Navicat(新手向)