mysql root user cannot be authorized and solve the problem of navicat remote authorization prompt 1044

mysql root user cannot be authorized and solve the problem of navicat remote authorization prompt 1044

Look at the solution first

#------------The problem of mysql root user being unable to be empowered is solved--------
1. Log in to mysql -u root -p
2. Use mysql; Select mysql database 3. Perform the following operations (query the user's authorization permissions, change the authorization permissions, and refresh to take effect)
mysql> select user,host,grant_priv from user;
+---------------+-----------+------------+
| user | host | grant_priv |
+---------------+-----------+------------+
| root | localhost | Y |
| mysql.session | localhost | N |
| mysql.sys | localhost | N |
| root | % | N |
| xc_admin | % | N |
+---------------+-----------+------------+
5 rows in set (0.00 sec)
mysql> update user set grant_priv='Y' where user = 'root';'
Query OK, 1 row affected (0.00 sec)
Rows matched: 2 Changed: 1 Warnings: 0
mysql> flush privileges;#Refresh privileges Query OK, 0 rows affected (0.00 sec)
mysql> select user,host,grant_priv from user;
+---------------+-----------+------------+
| user | host | grant_priv |
+---------------+-----------+------------+
| root | localhost | Y |
| mysql.session | localhost | N |
| mysql.sys | localhost | N |
| root | % | Y |
| xc_admin | % | N |
+---------------+-----------+------------+
5 rows in set (0.00 sec)

Analysis: From the first query statement, we can see that the default root grant_priv (grant permission) in non-local permissions is disabled.

It can be understood as: the root user can be empowered on the local machine (the machine where MySQL is installed). Other IP authorizations are not allowed by default. Maybe for safety reasons

If we use the tool to remotely create a user, code 1044 will appear. This problem can be solved by re-updating the permissions.

Summarize

The above is what I introduced to you about the root user of mysql being unable to be authorized and solving the problem of navicat remote authorization prompting 1044. I hope it will be helpful to everyone, and thank you very much for your support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Detailed explanation of the idea of ​​installing mysql8.0.11 and changing the root password and connecting navicat for mysql
  • Solution to 1045 error when navicat connects to mysql
  • Navicat for MySQL garbled code problem solution
  • Solution to Navicat's inability to remotely connect to MySQL
  • Solution to 1044/1045 error when installing Navicat in MySQL
  • Detailed explanation of Navicat's remote automatic backup method for MySQL (picture and text)

<<:  Ubuntu 19.10 enables ssh service (detailed process)

>>:  js Promise concurrent control method

Recommend

CSS3 achieves cool sliced ​​image carousel effect

Today we will learn how to use CSS to create a co...

VMware installation of Centos8 system tutorial diagram (command line mode)

Table of contents 1. Software and system image 2....

Detailed explanation of MySQL custom functions and stored procedures

Preface This article mainly introduces the releva...

CocosCreator general framework design resource management

Table of contents Problems with resource manageme...

Solution to the data asymmetry problem between MySQL and Elasticsearch

Solution to the data asymmetry problem between My...

Detailed explanation of several storage methods of docker containers

Table of contents Written in front Several storag...

Pure CSS3 to achieve mouse over button animation Part 2

After the previous two chapters, do you have a ne...

CSS container background 10 color gradient Demo (linear-gradient())

grammar background: linear-gradient(direction,col...

How to solve the timeout during pip operation in Linux

How to solve the timeout problem when pip is used...

About the problem of writing plugins for mounting DOM in vue3

Compared with vue2, vue3 has an additional concep...

Nginx uses the Gzip algorithm to compress messages

What is HTTP Compression Sometimes, relatively la...

Writing methods that should be prohibited in native JS

Table of contents Block-level functions Directly ...

Detailed explanation of the function and usage of keepAlive component in Vue

Preface During the interview, many interviewers m...

Implementing WeChat tap animation effect based on CSS3 animation attribute

Seeing the recent popular WeChat tap function, I ...