php - Unable to create database by cake bake db_config -


i'm creating database.php file cake bake db_config

database configuration: --------------------------------------------------------------- name: [default] > datasource: (mysql/postgres/sqlite/sqlserver) [mysql] > persistent connection? (y/n) [n] > database host: [localhost] > port? [n] > user: [root] > password: > database name: [cake] > testdb table prefix? [n] > table encoding? [n] >  --------------------------------------------------------------- following database configuration created: --------------------------------------------------------------- name:         default datasource:   mysql persistent:   false host:         localhost user:         root pass:         **** database:     testdb --------------------------------------------------------------- okay? (y/n) [y] > y wish add database configuration? [n] >  wrote `/applications/mamp/htdocs/linda/app/config/database.php` 

it create database.php file, when test in browser, i'm getting message

cake not able connect database. database connection "mysql" missing, or not created. 

only, when create database manually phpmyadmin starts working fine.

what should fix/do able create database cake bake db_config

using mamp , cakephp 2.4.0

doesn't errors when trying create database.php, have no errors in log files:

apache_error.log     mysql_error_log.err  php_error.log 

cake bake doesn't create database you, need create manually before create database configuration file.


Comments