Preface I recently encountered a problem at work. After creating the database, an error occurred when connecting to the database. The error code was Access denied for user 'root'@'%' to database 'xxx'. I finally solved this problem by searching for relevant information. So I thought of summarizing it and sharing it with friends in need for reference and study. Let's take a look together. Solution process 1. Create a database create database mytest; 2. Connect to the database and report the following error: Access denied for user 'root'@'%' to database 'mytest' Reason: After creating the database, authorization is required. This problem generally does not occur when accessing locally. 3. Authorize database operations grant all on xxx.* to 'root'@'%' identified by 'password' with grant option; Among them: xxx represents the created database; password is the user password, which is the root password in this case. Summarize The above is the full content of this article. I hope that the content of this article can bring some help to your study or work. If you have any questions, you can leave a message to communicate. Thank you for your support of 123WORDPRESS.COM. You may also be interested in:
|
<<: Implementing Binary Search Tree in JavaScript
>>: Solution to uninstalling Python and yum in CentOs system
Table of contents 1. What is Function Anti-shake?...
Mysql5.7.19 version is a new version launched thi...
1. Introduction The ls command is used to display...
Table of contents Two modules for using nginx for...
Table of contents Preface keep-avlive hook functi...
How to change the image hyperlink when the mouse p...
1. Problem The project developed using Eclipse on...
When I wrote the Redis book and the Spring Cloud ...
Temporary tables and memory tables A memory table...
MySQL master-slave setup MySQL master-slave repli...
Table of contents 0x01 Failed to load the driver ...
Achieve resultsRequirements/Functionality: How to...
Section Course content Hours 1 Web Design Overvie...
background: Since the company's projects seem...
Operating system win10 MySQL is the 64-bit zip de...