Dockr image error
After successfully pulling and building the docker image I get the following:
mysql:host=127.0.0.1;dbname=dtw
/var/www/site/lib/utils/Database.php:52:
object(PDOException)[427]
protected 'message' => string 'SQLSTATE[HY000] [1698] Access denied for user 'dtw'@'localhost'' (length=63)
... (omitted)
private 'previous' (Exception) => null
public 'errorInfo' => null
public 'xdebug_message' => string '<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> PDOException: SQLSTATE[HY000] [1698] Access denied for user 'dtw'@'localhost' in /var/www/site/lib/util/Database.php on line <i>43</i></th></tr><tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr> <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left''... (length=4701)
Furthermore, it seems like no database called 'dtw' was ever created:
MariaDB [mysql]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
+--------------------+
3 rows in set (0.001 sec)