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. Oracle is a large database while MySQL is a sm...
vue+element UI encapsulates a public function to ...
This article shares with you a special effect mes...
Table of contents Preface How to solve Sudoku Fil...
Here is a common one-click performance test scrip...
What can Arthas do for you? Arthas is Alibaba'...
Rendering After looking up relevant information o...
Table of contents 1. MySQL join buffer 2. JoinBuf...
1. Mathematical Functions ABS(x) returns the abso...
When we use TypeScript, we want to use the type s...
This article uses an example to describe how to u...
1. px px is the abbreviation of pixel, a relative...
Table of contents Preface: Specific operations St...
Vulnerability Details VSFTP is a set of FTP serve...
Table of contents introduction 1. MySQL master-sl...