Try adding the socket:
'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock',
More Related Contents:
- How to store repeating dates keeping in mind Daylight Savings Time
- How to override the path of PHP to use the MAMP path?
- Php-intl installation on XAMPP
- PHP Fatal error: Class ‘PDO’ not found
- How to use multiple databases dynamically for one model in CakePHP
- SQLSTATE[HY000] [1045] Access denied for user ‘username’@’localhost’ using CakePHP
- PHP Warning: mysqli_connect(): (HY000/2002): Connection refused
- PHP files are downloaded by browser instead of processed by local dev server (MAMP)
- Mysql password expired. Can’t connect
- UNION syntax in Cakephp
- change the PHP path to MAMPs PHP
- How to avoid to display this error in PHP?
- Disappears \ from db value [closed]
- The requested URL was not found on this server.
- Query with multiple values in a column
- How to create a secure mysql prepared statement in php?
- Preserve Line Breaks From TextArea
- WAMP Cannot access on local network 403 Forbidden
- How to install pdo driver in php docker image?
- Calculating distance between zip codes in PHP
- Access denied for user ‘root’@’localhost’ with PHPMyAdmin
- MySQL retrieve variable from Stored Procedure in PHP PDO
- Warning: mysql_query(): 3 is not a valid MySQL-Link resource
- Can’t insert Chinese character into MySQL
- Send data from android to server via JSON
- Change name of Laravel’s created_at and updated_at
- MySQL Stored Procedure vs. complex query
- Cannot figure out how to run a mysqli_multi_query and use the results from the last query
- PDO and MySQL ‘between’
- PHP add up two time variables