... | ... | @@ -22,7 +22,7 @@ the database server needs 3 things: |
|
|
2. a table called `pyblog_contents` in `pyblog`
|
|
|
3. a table called `pyblog_users` in `pyblog`
|
|
|
|
|
|
to set them up go into the container first: `sudo docker exec -ti blog_blogdb_1` if this doesnt work figure out how the container is called on your system
|
|
|
to set them up go into the container first: `sudo docker exec -ti blog_blogdb_1 bash` if this doesnt work figure out how the container is called on your system
|
|
|
then go into the database with `mariadb -uroot -p(yourpassword of the docer-compose.yml file)`
|
|
|
then add the user: `CREATE USER 'username''@'%' identified by 'password';`
|
|
|
create the database: `CREATE DATABASE pyblog;`
|
... | ... | |