1. Use the mysql/mysql-server:latest image to quickly start a MySQL instance docker run --name ilink_user_01 -e MYSQL_ROOT_PASSWORD=123456 0d 0p 3307:3306 mysql/mysql-server:latest
2. Enter the instance to modify the mysql configuration information docker exec -it ilink_user_01 bash
3. View all users in the MYSQL database SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user; 4. Modify the root user of mysql to allow login from any ip update mysql.user set host='%' where user='root'; flush privileges; 5. Test the connection using navicat The authentication plugin 'caching_sha2_password' appears because the MySQL image is encrypted using caching_sha2_password, and Navicat does not support the caching_sha2_password encryption method. 6. Solve the authentication plugin 'caching_sha2_password' ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456'; 7. Re-use navicat connection The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: How to query json in the database in mysql5.6 and below
>>: Solve the problem of garbled Chinese characters in Mysql5.7
We live in a visual world and are surrounded by m...
Table of contents Preface Introduction to Session...
Table of contents MySQL Index Optimization Paging...
ins and del were introduced in HTML 4.0 to help au...
Table of contents 1. The role of watch in vue is ...
background Recently, a leader wanted us to build ...
Preface Hello everyone, this is the CSS wizard - ...
1. Review The Buffer Pool will be initialized aft...
This article example shares the specific code of ...
There are many ways to write and validate form fi...
The css technique for changing the color of an im...
Front-end project packaging Find .env.production ...
This article shares with you how to use bootstrap...
Table of contents introduction Why bother? Commun...
When working on a recent project, I found that th...