Skip to content

diddado/docker-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Mysql

You need a .env file to set the required parameters. It should look like this:

COMPOSE_PROJECT_NAME=mysql5.7 # this should be unique for every version of mysql since the data volume will be persisted and will be named based on this value.
MYSQL_VERSION=5.7 # the container version you want to use
MYSQL_ROOT_PASSWORD=YourRootPasswordHere
MYSQL_USER=YourRegularUserNameHere
MYSQL_PASS=YourRegularUserPasswordHere
MYSQL_DATABASE=YourDatabaseNameHere

Run docker-compose up to start the container.

The configuration will default to version 5.7 if a .env file isn't created.

You will run into data conflicts if you run multiple versions and don't set COMPOSE_PROJECT_NAME in the .env file.

The best way to access the server is with Sequel Pro https://sequelpro.com/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •