Start the mysql container in docekr Use command: docker run -p 3306:3306 --name mysql01 -e MYSQL_ROOT_PASSWORD=xxx -d mysql:5.7 -p 3306:3306 means mapping port 3306 in docker to port 3306 on the host. –name mysql01 means the container is named mysql01 Results after successful operation Open the server port 3306 for access Configure inbound rules in the security group to allow remote access to port 3306. Navcat Visits The connection name is the server IP address. The password is the password used to enable the Docker container configuration above. Click OK to connect. This is the end of this article about Navicat connecting to the docker database on the server side. For more information about Navicat connecting to the docker database, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Basic HTML directory problem (difference between relative path and absolute path)
>>: CSS scroll-snap scroll event stop and element position detection implementation
1. Key points for early planning of VMware vSpher...
[LeetCode] 196.Delete Duplicate Emails Write a SQ...
Introduction: The disadvantages of storing all da...
The temperament of a web front-end website is a fe...
Table of contents Before transformation: After tr...
Table of contents Conclusion first question Solut...
Overview In zabbix version 5.0 and above, a new f...
Table of contents 1. Customize plan tasks 2. Sync...
This article mainly introduces the process of imp...
If there are files that are being used by a proce...
Table of contents Preface 1.1 Function 1.2 How to...
I've been researching some things about linke...
Preface Recently, I encountered a requirement. Du...
The MySQL server is running with the --skip-grant...
Table of contents 1. Switch between production en...