diff --git a/Documentation/database-setup.md b/Documentation/database-setup.md new file mode 100644 index 0000000..49af2cc --- /dev/null +++ b/Documentation/database-setup.md @@ -0,0 +1,21 @@ +# Setup MySql Database inside IntelliJ + +## General +- database name = mydatabase +- user = root +- password = root + +## How to Create Docker Container +Make sure to have Docker enabled in IntelliJ. + +From the Services window (bottom right): +- click "images" +- download image ```eduardvalentindumitrescul/mysql-pixelplay:latest``` +- create container from this image +- Modify Options -> Bind Ports -> Press + +![bind ports screenshot](image.png) + +## How to Access Mysql +- from container -> terminal +- write ```mysql -p``` (password is ```root```) +- you are inside mysql \ No newline at end of file diff --git a/Documentation/image.png b/Documentation/image.png new file mode 100644 index 0000000..e6997d7 Binary files /dev/null and b/Documentation/image.png differ