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
Table of contents Preface Step 1: Setup and front...
Table of contents Preface: accomplish: Summarize:...
As a tester, you may often need to install some s...
When making some pages, in order to make the page...
The query data in the xml price inquiry contains ...
The project interacts with the server, accesses t...
Create a database Right click - Create a new data...
Here is a brief summary of the installation and c...
I finished learning SQL by myself not long ago, a...
Date type differences and uses MySQL has five dat...
I. Strict Mode Explanation According to the restr...
Node.js solves the problem of Chinese garbled cha...
Table of contents 1. What is a calculated propert...
During today's lecture, I talked about the di...
This article uses examples to illustrate the usag...