You can change the encryption of the user’s password by altering the user with below Alter command :
ALTER USER ‘username’@’ip_address’ IDENTIFIED WITH mysql_native_password BY ‘password’;
OR
We can avoid this error by make it work with old password plugin:
First change the authentication plugin in my.cnf file for Linux / my.ini file in Windows:
[mysqld]
default_authentication_plugin=mysql_native_password
Restart the mysql server to take the changes in affect and try connecting via MySQL with any mysql client.
If still unable to connect and getting the below error:
Unable to load plugin 'caching_sha2_password'
It means your user needs the above plugin. So try creating new user with create user or grant command after changing default plugin. then new user need the native plugin and you will able to connect MySQL.
Thanks
Related Posts:
- Create a new database with MySQL Workbench
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- Access Denied for User ‘root’@’localhost’ (using password: YES) – No Privileges?
- Access Denied for User ‘root’@’localhost’ (using password: YES) – No Privileges?
- String concatenation in MySQL
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- How do I restore a dump file from mysqldump?
- How do I quickly rename a MySQL database (change schema name)?
- Error Code: 2013. Lost connection to MySQL server during query
- How to get size of mysql database?
- Access Denied for User ‘root’@’localhost’ (using password: YES) – No Privileges?
- 1052: Column ‘id’ in field list is ambiguous
- 1052: Column ‘id’ in field list is ambiguous
- difference between primary key and unique key
- MySQL error code: 1175 during UPDATE in MySQL Workbench
- Cannot connect to Database server (mysql workbench)
- How to create a foreign key in phpmyadmin
- importing a CSV into phpmyadmin
- How to check if mysql database exists
- Is there a Profiler equivalent for MySql?
- How to do a batch insert in MySQL
- Is there a naming convention for MySQL?
- How to unblock with mysqladmin flush hosts
- MySQL: Cloning a MySQL database on the same MySql instance
- Error: Duplicate entry ‘0’ for key ‘PRIMARY’
- Data is not constantly loading from custom wordpress table
- What’s a good strategy for planning WordPress DB growth?
- How do I load a sql.gz file to my database? (importing)
- “INSERT IGNORE” vs “INSERT … ON DUPLICATE KEY UPDATE”
- Export Pervasive to MySQL (C#)
- Host ‘xxx.xx.xxx.xxx’ is not allowed to connect to this MySQL server
- PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
- how to drop partition without dropping data in MySQL?
- Difference between VARCHAR and TEXT in MySQL
- MySQL: Invalid use of group function
- Simple Random Samples from a Sql database
- What does SQL clause “GROUP BY 1” mean?
- LAST_INSERT_ID() MySQL
- SQL select only rows with max value on a column
- Trying to perform MINUS operation in MySQL
- How do I find which transaction is causing a “Waiting for table metadata lock” state?
- WordPress site migration – icons missing
- WordPress (MyISAM) database is slow, should I switch to InnoDB?
- WordPress Database lost auto increment
- Set page template for all pages?
- Slow wp_term_relationships query
- Optimize Multiple Taxonomy Term MySQL Query?
- What specific database privileges does WordPress need?
- Slow SQL_CALC_FOUND_ROWS Query
- How is the data stored in the database?
- Using source control with WordPress
- My WordPress site always displays a cached version of its homepage
- How do I write this SQL statement for Posts written in last 24 hours?
- Would manually deleting the dumping data fix a “#1062 – Duplicate entry ‘1’ for key ‘PRIMARY'” phpMyAdmin error?
- WooCommerce – Query for ordered products
- How to find if a post with custom_field == X exists?
- Proper way to work with wpdb to get user’s firstname
- How to change post format from Aside to Image for all posts?
- Tons of Twitter rows in my database
- How to add and SQL query of posts only published
- Slow Mysql Queries
- Find duplicate posts with same slug and author
- Manually removing revision post types
- Select Multiple meta_value from WP DB; Single Query
- What happens if I overwrite the current wp_options table with a backup from a week ago?
- writing inner join in wpdb
- CRUD operations using WordPress database API
- WordPress database error for query INSERT INTO
- How to connect to AWS RDS external database (not for the core WordPress db)
- Unknown collation when I import a dump from an existing site into a development database?
- How to Mirror WordPress database from Remote server to Local server
- When WordPress Default table, Echo Success. When Plugin Table, Echo Blank
- Automatic switch to backup database on fail
- MySQL 5.5 upgrade ‘broke’ WordPress [closed]
- How do I convert a MySQL database from utf8mb4 to utf8 encoding?
- Alternative functions for mysql_free_result and mysql_ping in wordpress functions
- Best practice to limit results in get_row()?
- Trouble running $wpdb->query() with last_insert_id
- External wpdb connections in different plugins on single page
- Having problem creating local instance of wordpress site
- WordPress $wpdb no result
- Integrating Custom Database with WordPress
- WordPress database error: [Query was empty] – using $wpdb->prepare()
- Please help! I have a problem with getting wordpress databas
- edit_user_created_user hook – using to update Groups
- Bulk find & replace on WordPress posts/pages (minus image paths)
- WordPress database problem wp_posts, primary key
- Mysql Error in querying form entries in Gravity Form plugin
- Missing latest posts and options after DB migration via phpMyAdmin
- How to set max users to 17.000
- Saving custom term value to the database in new table
- MySQL errors after a WordPress clone
- “MySQL server has gone away” since update to 3.8
- featured image not showing up with mysql_connect
- Complicated MySQL Query
- problem with quotes on new post
- WordPress database connection failed, while mysql client is working [closed]