The credentials for your database are located in the wp-config.php file. Make sure those settings are correct.
In particular, non-ASCII characters may be causing a problem. Or an extra space in any value (especially the password).
Look at the user/pass/dbname in your host also. An extra space at the end of the password in wp-config or on the host, for example, can cause authentication errors.
I’d reset the user/pass via your hosting cPanel, making sure no extra spaces or non-ascii characters in those fields. Then make the wp-config.php file match exactly.
Related Posts:
- Restoring WordPress posts from database only
- How to move existing WordPress wp-content folder along with database to new server and new domain name?
- How do I copy a wordpress database?
- “Error establishing a database connection” – Intermittent error on GoDaddy
- Best host for running large mem and processor intensive WordPress sites?
- restore a db after bad backup
- Is my way to change WordPress server is correct?
- Migrated to Namecheap, now Trouble with Database & wp-config [closed]
- trying to install wp but i have no clue on hosting and servers [closed]
- Can I connect WordPress website with an external database?
- How to resolve ORA-011033: ORACLE initialization or shutdown in progress
- Oracle SQL query for Date format
- Failed to connect to mysql at 127.0.0.1:3306 with user root access denied for user ‘root’@’localhost'(using password:YES)
- Can I have multiple primary keys in a single table?
- Using wpdb to connect to a separate database
- Database connection close
- How to stop WordPress using utf8mb4_unicode_520_ci collation?
- How to create bulk page and content? [closed]
- Importing posts from old website to new conflicting post ID’s?
- Exporting revisions
- WP_Options ID high
- The revisions table in my database is at 70% capacity and growing. What should I do?
- WordPress for a very large website
- How to use multiple database in wordpress?
- WP_list_table bulk_action get edit and delete
- How to display data from custom table in wordpress database?
- Is removing orphaned wp_postmeta records safe?
- stdObject stored in database. How does one convert it to usable format?
- I have a table I created, how do I make a form for a user to filter the data?
- What ALL can cause “Another update is currently in progress.”? [closed]
- Error connecting to DB in /wp-includes/wp-db.php on line 1538 [closed]
- Set Display Name to first and last name (phpmyadmin SQL Query)
- Trigger Plugin database update after git pull
- Does WordPress ever need multiple databases?
- Why are no posts showing despite my apparently correct DB restoration?
- How to query the WordPress database to get posts of a certain custom post type, taxonomy and field?
- Cannot update custom database table row
- SQL Error wp_commentmeta – incorrect table definition
- Change WordPress prefix for only one table?
- Two websites one database, administrator not working on second website
- Select two sums with single get_var statement
- How to get the SQL of the changes made to the database from an update or upgrade?
- Merging two wp_posts tables while avoiding duplicates
- How can i add custom fields into the contact form 7 [closed]
- Make an Items attribute searchable (taxonomy using existing attribute)
- Store partial database to an archive database time to time
- Move out of sync posts from one database to another
- MS Access to manage WordPress Database
- Migration: Copying database content to a different server
- Remove empty rows from the database
- Custom WordPress Table wpdb
- Check if post id exist in table than only update instead of inserting new row
- Detail explanation of wordpress database fields and metatag list [closed]
- CreateOrUpdate in WordPress
- $wpdb->get_results($wpdb->prepare(… You have an error in your SQL syntax;
- How to convert srcset links from https to http?
- How to get a list of WordPress default database tables?
- Can local WordPress installs share /wp-content/ folder and database?
- Stringing together content from different databases
- Backing up WordPress database and files
- Safely store code(html/js..) into database
- Creating and Using Tables in the WordPress Database
- Connect a membership plugin to an external database
- Compare User meta_value with Product meta_value
- Storing user’s data on external database on other server
- is it right choose to connect database in template page directly in WordPress site?
- How to insert a value to decimal type field using wpdb->prepare?
- Sql query to get all metadata for a post
- Two separate wordpress installations at one domain
- Is there a way to edit the WP content database in an admin panel or external page?
- Where do I put my create_new_table function()?
- SQL database import #1046 error
- How to import products in host instead of database on wordpress?
- Get all top categories, then only 3 posts for each
- Having all “non-PHP” files on a different server
- syntax error for changing user role from database
- Finding a page holding a specific string/URL that is used in the content
- “wordpress error in establishing database connection” and missing tables
- get_option() does unserialize and don’t remove \
- Set SQL_BIG_SELECTS and MAX_JOIN_SIZE on a WP_Query
- How to optimize wp_option table?
- How can I get $wpdb to show MySQL warnings?
- About wp database hooks (error establishing connection)
- How to display $wpdb->insert_id; value on redirected page
- Database for JQuery Autocomplete field
- Create Tables in WordPress
- Catchable fatal error in formatting.php
- Wrong url for the images while using same database for two WordPress installations
- WordPress Failed to Login (DB Error)
- Sending WordPress database information to cross domain the safe way?
- Database Name Change
- Share WordPress Database
- Where To Find bb_profile_data(); In bbPress?
- ERROR: “Table Prefix” must not be empty
- How do you build a database-centric site in WP?
- WordPress: Interact with Database Query Data and Login
- Attach posts based on category and position
- wp_usermeta key problem
- Database Queries are crashing the server
- Uploading to WordPress Database