In case MySQL Server is up but you are still getting the error:
For anyone who still have this issue, I followed awesome tutorial http://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-9-mavericks/
However i still got #1045 error. What really did the trick was to change localhost
to 127.0.0.1
at your config.inc.php
. Why was it failing if locahost points to 127.0.0.1? I don’t know. But it worked.
===== EDIT =====
Long story short, it is because of permissions in mysql. It may be set to accept connections from 127.0.0.1 but not from localhost.
The actual answer for why this isn’t responding is here: https://serverfault.com/a/297310
Related Posts:
- How do I import an SQL file using the command line in MySQL?
- Mysql: Setup the format of DATETIME to ‘DD-MM-YYYY HH:MM:SS’ when creating a table
- Setting up foreign keys in phpMyAdmin?
- #1045 – Access denied for user ‘root’@’localhost’ (using password: YES)
- MySQL Error #1133 – Can’t find any matching row in the user table
- How to create a foreign key in phpmyadmin
- importing a CSV into phpmyadmin
- MySQL said: Documentation #1045 – Access denied for user ‘root’@’localhost’ (using password: NO)
- What specific database privileges does WordPress need?
- “#1067 – Invalid default value for ‘post_date'” when trying to reset AI after backup
- How to copy post titles to post slug in phpmyadmin
- How to do a MySQL dump from production site without using a search and replace script for local development?
- How to Create a Admin User for A WordPress Site via MySQL (PHPMyAdmin)?
- SQL error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’ [closed]
- Set meta_key and meta_value for all registered user in wordpress using sql query [closed]
- Can’t find my wordpress DB in phpmyadmin
- Backing up and restoring multiple sites efficiently
- $wpdb to insert html form information
- Setting up WordPress Locally on WAMP for a new site (with one already)
- Getting Error Trying to Create Table
- Export Yoast Keywords from MySQL/phpMyAdmin
- Editing mysql tables/database with wordpress or other app/cms
- List users with the most posts in the last 30 days
- Export SQL query based on custom field?
- Mysql Server keeps crashing
- How to bulk delete a certain part of all wordpress posts
- When I add metadata, metavalue length is added in to the value in some cases
- WordPress fails to install with “Can’t Select Database” Error (WAMPServer)
- Find locations of all featured images of draft posts via SQL
- SQL query to change custom field in WordPress database
- An SQL query to find orphaned image attachments and their meta
- cannot log in to the mysql server (wamp and wordpress)
- SQL command to export post_content from wp_posts using phpMyAdmin
- Need SQL query to find&replace image URL
- Cannot add or update a child row: a foreign key constraint fails
- Cannot delete or update a parent row: a foreign key constraint fails
- ERROR 2003 (HY000): Can’t connect to MySQL server on localhost (10061)
- Rename a column in MySQL
- Not unique table/alias
- Install mysql-python (Windows)
- #1055 – Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this is incompatible with sql_mode=only_full_group_by
- Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
- Disable ONLY_FULL_GROUP_BY
- MySQL WHERE IN ()
- How to export a mysql database using Command Prompt?
- How can I prevent SQL injection in PHP?
- Best way to store an array in MySQL database?
- mysqld: Can’t change dir to data. Server doesn’t start
- How to solve “Error: MySQL shutdown unexpectedly”?
- Can you do a For Each Row loop using MySQL?
- Drop all databases in MySQL
- How to properly create composite primary keys – MYSQL
- MySQL – count total number of rows in php
- How to get the count of each distinct value in a column?
- Moving WordPress from MAMP to WAMP, can’t access pages
- How to run WordPress across 2 VMs for high availability
- How to disable `SQL_CALC_FOUND_ROWS` [duplicate]
- Export only pages and posts with mysql dump
- WordPress Deadlock Error
- How to bulk edit canonical url’s in SQL?
- Concurrent / simultaneous MySQL connections
- How to check for empty and not a failure
- How many ‘wp_insert_post’ calls can be performed in one shot, in a very long ‘for’ loop?
- Keeping database within limits, please help!
- HTML Entities in Post Title
- Deprecated: mysql_connect():
- WordPress database import: Row size too large
- $wpdb select all meta for each post
- Replacing link URL ending strings via MySQL
- Many slow queries post_type = ‘attachment’;
- Problem with admin login after deployment
- Find out how many times the user has logged in
- Is it possible to create a WordPress table using array and loop?
- Can’t run database query
- How to stop $wpdb from prepending database name
- Match tag names with form titles
- Best approach for a custom database filling in WP custom post types
- Why doesn’t custom mysql query return results? Is syntax correct?
- How Do I Delete WordPress Posts Older Than 400 Days, From A WordPress Category
- Insert two row in wordpress database
- Installing local to live WP into subdirectory
- SQL statement using placeholder is not returning results
- How to Bulk find and replace MySQL for post image url
- Wpdb query with dynamic table name
- I imported an restore an database and It shows #1067 – Invalid default value for ‘user_registered’
- update multiple rows in mysqli table base on two values
- SQL query to bulk change short code in all posts
- How can I verify WordPress nonce from the following code?
- How to write in MySQL more characters in user_nicename
- $wpdb->get_var not returning count
- How to get Attachments(image) with specific width\height ratio
- What is the cron doing?
- Apache Redirect based on WordPress permissions
- SQL error on restoring database
- MySQL database gives blank page (white screen of death)
- Datatabase error: Commands out of sync
- why is $wpdb->update() causing a DB error from within wp_set_password()
- Global MySQL replacing of text patterns/matches
- Where other than wp-config can database access details be defined?
- Changing host permissions for MySQL users