Bearing in mind I'm trying to run in a docker environment with php 5.4 due to Kohana PHP MVC being a framework which hasn't been updated and is no longer going to be supported, get following error
mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(2) ["file":protected]=> string(64) "/var/www/html/modules/database/classes/kohana/database/mysql.php
my docker command is
sudo docker run -d -p 8080:80 -p 3307:3306 -p 22:22 -v "/home/me/public_html/project-folder:/var/www/html" ushios/lamp-ubuntu
Am I missing something to make it work with the database, thanks