Database connection “Mysql” is missing, or could not be created in Linux. I am using Cakephp 2.7.8. I am running the below command to update my ACO. It is working fine in my local system(Windows) but is not working on the production Server(Linux)
I have installed all the drivers like Pdo,php5-mysql. I am running the below command.
Did u try to put connection at other cake project at nameofcakeproject/config/app.php ?
if not, u need to see this part at app.php:
/* * CakePHP will use the default DB port based on the driver selected * MySQL on MAMP uses port 8889, MAMP users will want to uncomment * the following line and set the port accordingly */ //'port' => 'non_standard_port_number', 'username' => 'username of connection to database', 'password' => '', 'database' => 'name of database at phpmyadmin or other?',
that’s the thing works on Cakephp 3.7 and newer.
I dont know if Cakephp 2 it will works with composer for creating projects of cakephp 2 (the version of 3 always works better), just try it.
Have a good day!