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
I started configuring various environments this a...
Two methods to implement Mysql remote connection ...
Using cutecom for serial communication in Ubuntu ...
I searched the entire web and found all kinds of ...
Written in front Nginx is not just a reverse prox...
Preface The string types of MySQL database are CH...
This article shares the specific code of jQuery t...
How to make tomcat support https access step: (1)...
In web front-end development, it is inevitable to ...
The Drag and Drop API adds draggable elements to ...
Create a container [root@server1 ~]# docker run -...
Table of contents MySQL delete syntax alias probl...
Definition of Generics // Requirement 1: Generics...
The code looks like this: <!DOCTYPE html> &...
1. Percentage basis for element width/height/padd...