Cakephp Database Connection "Mysql" Is Missing, or Could Not Be Created

CakePHP Bake Shell Error: Database connection “Mysql” is missing, or could not be created

Maybe a wrong username / password or misspelled database name. I once had a database (name) beginning with a space.

You may want to check the database connection using plain PHP, see.

CakePHP bake Error: Database connection Mysql is missing, or could not be created

Did you enabled pdo module for cli? I think that you can have different php.ini for cli / web (fpm).

CakePHP Bake Error: Database connection Mysql is missing, or could not be created

you could specify the path to the new php.. ?

/path/to/new/php/php script_to_run.php

There may be an alternatives package under osx as well where you can specify which versions of which apps you can use.

Missing Database Connection cakephp

Change host to 127.0.0.1 / localhost



Related Topics



Leave a reply



Submit