My connection info (this is from config/console. Fortunately, we can easily resolve it with the following steps: First, stop all active servers and quit the application if the MAMP installation is running. The phpMyAdmin that came with MAMP is running correctly, and I can connect to the database from the command line (it’s in /Applications/MAMP/Library/bin/mysql). #4 /Applications/MAMP/framework/base/CModule.php(387): CDbConnection->init() More specifically, the database connection error in MAMP indicates an incorrect variable or a mismatch between the wp-config.php file and the database. #3 /Applications/MAMP/framework/db/CDbConnection.php(308): CDbConnection->setActive() Host with multiple databases mapped Make sure that the selected host has one database mapped. When an error occurs while trying to establish a connection to the database with MAMP, it’s usually because the wp-config.php file has incorrect database credentials. #2 /Applications/MAMP/framework/db/CDbConnection.php(330): CDbConnection->open() When I try connecting to phpMyAdmin i receive an 'Access denied' error: 'MySQL said: Cannot connect: invalid settings. However after rebooting system and even turning MAMP server off and on the only one service running is Apache. #1 /Applications/MAMP/framework/db/CDbConnection.php(373): CDbConnection->createPdoInstance() After installation Apache and MySQL are running very fine. This may occur if you reinstall MAMP on your computer, or install MAMP on another machine without updating the default settings. Usually, this is because the MAMP phpMyAdmin configuration file has the incorrect settings. #0 /Applications/MAMP/framework/db/CDbConnection.php(423): PDO->_construct() A database connection error means that your phpMyAdmin tool is not able to connect to the MySQL database. PHP Error: PDO::_construct(): No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in file /Applications/MAMP/framework/db/CDbConnection.php at line 423 For solve it: Go on phpMyAdmin and empty the DB, navigate to MAMP installation folder and create a custom configuration file my.cnf under /application/. Yii Migration Tool v1.0 (based on Yii v1.1.13) The first method is using Finder and the TextEditapp, and the second is using the Terminalapp. I am trying to set up yii with MAMP on my macbook pro, but am running into errors when trying to run the "yiic migrate" command:
0 Comments
Leave a Reply. |