-
Create an
.envfile and place it inside the.devcontainerfolder.MYSQL_ROOT_PASSWORD=1234 MYSQL_PASSWORD=1234 MYSQL_USER=ladygaga MYSQL_DATABASE=gagadbReplace
ladygaga,gagadb, and1234with desired values. -
Reopen the project in a dev container.
-
Run the following in order to connect:
mysql -u root -p -h mysql
-
Set up your database, (replacing
gagadbwith the actual database):USE gagadb; SOURCE northwind_ddl.sql; SOURCE northwind_data.sql;
-
Have fun!
SHOW tables;