Ladrillo/devcontainer-mysql

★ 0Forks 0DockerfileGitHub ↗Compare

README

MySQL DevContainer

  1. Create an .env file and place it inside the .devcontainer folder.

    MYSQL_ROOT_PASSWORD=1234
    MYSQL_PASSWORD=1234
    MYSQL_USER=ladygaga
    MYSQL_DATABASE=gagadb
    

    Replace ladygaga, gagadb, and 1234 with desired values.

  2. Reopen the project in a dev container.

  3. Run the following in order to connect:

    mysql -u root -p -h mysql
  4. Set up your database, (replacing gagadb with the actual database):

    USE gagadb;
    SOURCE northwind_ddl.sql;
    SOURCE northwind_data.sql;
  5. Have fun!

    SHOW tables;
    

Try SQL on w3schools.com

Contributors

Ladrillo

Issues