博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Navicat 连接mysql8.0时报错
阅读量:6604 次
发布时间:2019-06-24

本文共 2550 字,大约阅读时间需要 8 分钟。

命令

mysql -u root -puse mysqlselect user,host,plugin from user;alter user 'haidragon'@'%' identified with mysql_native_password by 'pass123';select user,host,plugin from user;exitmysql.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.51cto.com/haidragon/2349084

你可能感兴趣的文章
你必须知道的HTTP基本概念
查看>>
当下拉列表数据过大时,该如何应对?
查看>>
使用OpenGrok搭建 可搜索可跳转的源码 阅读网站
查看>>
HTML5开发中的javascript闭包
查看>>
Android ContentProvider调用报错"Bad call:..."及相关Binder权限问题分析
查看>>
ionic3 教程(二)登录页制作
查看>>
Python正则表达式初识(四)
查看>>
不明恶意攻击致<搜狗搜索><搜索结果>跳转<百度搜索>技术原理分析
查看>>
不务正业的前端之SSO(单点登录)实践
查看>>
配置通过VLANIF实现跨设备VLAN内通信
查看>>
一站式计费解决方案——腾讯计费首次亮相昆明
查看>>
Linux-正则表达式
查看>>
文字转语音转换的方法有哪些?
查看>>
linux系统电视盒子到底是什么
查看>>
MySQL的root用户密码忘了 , 该怎么办?
查看>>
一次性可以导入多少首歌曲到NoteBurner Spotify Music Converter中?
查看>>
基本shell脚本的编辑及变量
查看>>
$ORACLE_HOME/bin/oracle执行文件
查看>>
免密码登陆
查看>>
加密和解密 tar
查看>>