Initialize the MySql database configuration.
182
About version information:
Initialize the MySql database configuration, account: root, password: root, container internal port: 3306, allow remote connection. It can be started by the following command:
docker run -di --name mysql_1 -p 3307:3306 ycj520/mysql:1.0.0
After this, you can operate the database, or use a visual tool to connect remotely. Note that the IP address of the remote connection database is the IP address of the host machine, and the port number is the port number mapped externally, here: 3307.
This version mainly optimizes mysql and modifies the related default configuration parameters. In order to avoid port conflicts, the internal port number of mysql is changed to: 3307. Initialize the MySql database configuration, account: root, password: root, container internal port: 3307, allow remote connection.
docker run -di --name mysql_1 -p 3307:3307 ycj520/mysql:1.0.1
After this, you can operate the database, or use a visual tool to connect remotely. Note that the IP address of the remote connection database is the IP address of the host machine, and the port number is the port number mapped externally, here: 3307.
This version mainly adds the automatic execution of the database script when the container is initialized to generate a database named test, which contains data records to facilitate testing. Initialize the MySql database configuration, account: root, password: root, container internal port: 3307, allow remote connection, test database name: test.
docker run -di --name mysql_1 -p 3307:3307 ycj520/mysql:1.0.2
After this, you can operate the database, or use a visual tool to connect remotely. Note that the IP address of the remote connection database is the IP address of the host machine, and the port number is the port number mapped externally, here: 3307.
Content type
Image
Digest
Size
147.3 MB
Last updated
about 6 years ago
docker pull ycj520/mysql:1.0.2