I had a similar problem and was able to solve it by addressing my mysql with 127.0.0.1
instead of localhost
.
This probably means I’ve got something wrong in my hosts setup, but this quick fix get’s me going for right now.
More Related Contents:
- Getting links from db and displaying them in another div [closed]
- CodeIgniter: Unable to connect to your database server using the provided settings Error Message
- Cannot connect to MySQL 4.1+ using old authentication
- MySQL Error “Too many connections”
- ini_set, set_time_limit, (max_execution_time) – not working
- php connection pooling mysql [duplicate]
- How to create this type of JSON data from PHP [closed]
- how to write php code for the key press enter button when fill the form?
- Create hyperlink from html table row to open record on a new page
- mysql_fetch_array(): supplied argument is not a valid MySQL result resource [duplicate]
- SELECT COUNT(*) AS count – How to use this count
- How to resolve ambiguous column names when retrieving results?
- Maximum execution time in phpMyadmin
- MySQL – Access denied for user [duplicate]
- Calling stored procedure with Out parameter using PDO
- How to display an BLOB image stored in MySql database?
- How to bind LIKE values using the PDO extension?
- How do I set the selected item in a drop down box
- Fatal error: Call to undefined function mysqli_result()
- access denied for user @ ‘localhost’ to database ” [closed]
- Warning: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///tmp/mysql.sock) in
- WordPress Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /wp-includes/wp-db.php:1570
- PHP 7 RC3: How to install missing MySQL PDO
- How can I employ “if exists” for creating or dropping an index in MySQL?
- PHP MySQL pagination with random ordering
- How to backup MySQL database in PHP?
- Auto Increment skipping numbers?
- Convert Time String to Decimal Hours PHP [closed]
- What is the PDO equivalent of function mysql_real_escape_string?
- Installing PDO driver on MySQL Linux server