当前位置:网站首页>MySQL remote connection permission error 1045 problem
MySQL remote connection permission error 1045 problem
2022-07-25 12:49:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
# New installation today mysql in the future , Because it is not checked Enable root access from remote machines The following problems occurred when connecting to the database
Took many detours , Take notes here . A lot of information on the Internet is said to be a password problem , At the beginning, I changed my password on the server according to the online method , Then connect locally , The result is still wrong , It was found that some things were confused . Database root There are two kinds of accounts , One is local , One is remote : What I need to modify is remote root password , Permissions are also remote accounts root: 1. First, the server mysql open cmd Input : mysql -u root -p Next, you will be prompted for the password 2. After entering successfully, find the table user: use mysql Tips database changed It means success 3. Modify the parameters in the table , That is, permission modification mysql> GRANT ALL PRIVILEGES ON . TO ‘root’@’%’ IDENTIFIED BY ‘’ WITH GRANT OPTION; ( This ==%== The number represents any IP Can access the database ) 4. After entering this sentence, you need to add another sentence : flush privileges; ( tell mysql Refresh permissions ) 5. sign out mysql The connection of \q
Okay , Here we are , Permission has been modified , Connect remotely again mysql, That's all right. For remote passwords and localhost The problem that one party cannot connect due to the inconsistent passwords of... Will be added next time .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/127189.html Link to the original text :https://javaforall.cn
边栏推荐
- 零基础学习CANoe Panel(15)—— 文本输出(CAPL Output View )
- Implementation of recommendation system collaborative filtering in spark
- WPF project introduction 1 - Design and development of simple login page
- 【九】坐标格网添加以及调整
- pytorch环境配置及基础知识
- 485 communication (detailed explanation)
- 485通讯( 详解 )
- Alibaba cloud technology expert Qin long: reliability assurance is a must - how to carry out chaos engineering on the cloud?
- mysql实现一张表数据插入另一张表
- LeetCode 0133. 克隆图
猜你喜欢

Jenkins configuration pipeline

Azure Devops (XIV) use azure's private nuget warehouse

2022.07.24 (lc_6124_the first letter that appears twice)

Alibaba cloud technology expert Qin long: reliability assurance is a must - how to carry out chaos engineering on the cloud?

2022.07.24(LC_6124_第一个出现两次的字母)
![Detailed explanation of switch link aggregation [Huawei ENSP]](/img/34/dff118b52404e35f74a8f06b2517be.png)
Detailed explanation of switch link aggregation [Huawei ENSP]

Moving Chinese figure liushenglan

Pytorch visualization

Visualize the training process using tensorboard

ECCV2022 | TransGrasp类级别抓取姿态迁移
随机推荐
Is the securities account opened by qiniu safe? How to open an account
2022.07.24(LC_6124_第一个出现两次的字母)
Synergetic process
Build a series of vision transformer practices, and finally meet, Timm library!
软件测试面试题目:请你列举几个物品的测试方法怎么说?
2022.07.24 (lc_6124_the first letter that appears twice)
【8】 Clever use of color finder
【9】 Coordinate grid addition and adjustment
《富兰克林自传》修身
"Autobiography of Franklin" cultivation
基于JEECG制作一个通用的级联字典选择控件-DictCascadeUniversal
Fiddler packet capturing app
零基础学习CANoe Panel(13)—— 滑条(TrackBar )
pytorch环境配置及基础知识
Jenkins configuration pipeline
【AI4Code】《InferCode: Self-Supervised Learning of Code Representations by Predicting Subtrees》ICSE‘21
Ecological profile of pytorch
word样式和多级列表设置技巧(二)
How to access DMS database remotely? What is the IP address? What is the user name?
公安部:国际社会普遍认为中国是世界上最安全的国家之一