当前位置:网站首页>Mysql8.0 authorized remote login
Mysql8.0 authorized remote login
2022-07-24 09:40:00 【liuyunshengsir】
problem
Always used before mysql5.7 Remote authorized login , Later, I changed mysql8.0 The original authorization method reported an error
mysql> GRANT ALL ON *.* to [email protected]'%' IDENTIFIED BY 'AAbb1122!!';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED BY 'AAbb1122!!'' at line 1
Cause analysis
8.0 Authorization methods are different , You can't delegate to yourself
First create another user
create user 'user0001'@'%' identified by 'User0001!';
grant all privileges on *.* to 'user0001'@'%' identified by 'User0001!' with grant option;
GRANT ALL PRIVILEGES ON *.* TO 'user0001'@'%';
FLUSH PRIVILEGES;
ALTER USER 'user0001'@'%' IDENTIFIED WITH mysql_native_password BY 'User0001!';
select host, user, authentication_string, plugin from user;
边栏推荐
- Definition and initialization of cv:: mat
- [don't bother with reinforcement learning] video notes (I) 2. Summary of reinforcement learning methods
- Makefile变量及动态库静态库
- We were tossed all night by a Kong performance bug
- Getting started with sorting - insert sorting and Hill sorting
- [example] v-contextmenu right click menu component
- 代码随想录笔记_链表_25K个一组翻转链表
- 《动手学深度学习》(七) -- 边界框和锚框
- Gnuplot software learning notes
- Account 1-2
猜你喜欢

Write a simple memo using localstorage

Hucang integrated e-commerce project (I): introduction to the project background and structure
![[don't bother with intensive learning] video notes (III) 1. What is SARS?](/img/5c/4636db2849ba8514976a5afaf56e38.png)
[don't bother with intensive learning] video notes (III) 1. What is SARS?

What is the cloud native mid platform business architecture?

Dark king | analysis of zego low illumination image enhancement technology

力扣300-最长递增子序列——动态规划

C#/VB. Net: convert word or EXCEL documents to text

gnuplot软件学习笔记

Spark Learning: a form of association in a distributed environment?

Little dolphin "transformed" into a new intelligent scheduling engine, which can be explained in simple terms in the practical development and application of DDS
随机推荐
Get the historical quotation data of all stocks
Account 1-3
Build practical product help documents to improve user satisfaction
Firewalld firewall related commands
JS, the return statement used in the for loop should be placed in the function to terminate the loop, similar to the invalid return problem in break & foreach
Dorissql syntax Usage Summary
Vector control of permanent magnet synchronous motor (I) -- mathematical model
Open source summer interview | learn with problems, Apache dolphin scheduler, Wang Fuzheng
[don't bother to strengthen learning] video notes (II) 2. Write a small example of Q learning
Firewall off and on command
[Luogu p3426] SZA template (string) (KMP)
配置系统环境变量的时候误删了Path怎么办?
Code random notes_ Linked list_ Turn over the linked list in groups of 25K
Spark Learning: a form of association in a distributed environment?
PHP Basics - PHP magic constants
Color recognition of regions of interest in pictures and videos based on OpenCV
[C language] implementation of three versions of address book small project (including source code)
Little dolphin "transformed" into a new intelligent scheduling engine, which can be explained in simple terms in the practical development and application of DDS
Cloud primordial (12) | introduction to kubernetes foundation of kubernetes chapter
ASI-20220222-Implicit PendingIntent