当前位置:网站首页>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
边栏推荐
- JS 将伪数组转换成数组
- 零基础学习CANoe Panel(16)—— Clock Control/Panel Control/Start Stop Control/Tab Control
- 零基础学习CANoe Panel(12)—— 进度条(Progress Bar)
- 阿里云技术专家秦隆:可靠性保障必备——云上如何进行混沌工程?
- Table partition of MySQL
- LeetCode 0133. 克隆图
- 使用TensorBoard可视化训练过程
- 【C语言进阶】动态内存管理
- Maskgae: masked graph modeling meets graph autoencoders
- Leetcode 1184. distance between bus stops
猜你喜欢
软件测试流程包括哪些内容?测试方法有哪些?

Clickhouse notes 03-- grafana accesses Clickhouse
软件测试面试题目:请你列举几个物品的测试方法怎么说?

Interviewer: "classmate, have you ever done a real landing project?"

感动中国人物刘盛兰

【AI4Code】《Contrastive Code Representation Learning》 (EMNLP 2021)

“蔚来杯“2022牛客暑期多校训练营2 补题题解(G、J、K、L)
![SSTI 模板注入漏洞总结之[BJDCTF2020]Cookie is so stable](/img/19/0b943019fe1c959c4b79035a814410.png)
SSTI 模板注入漏洞总结之[BJDCTF2020]Cookie is so stable

Microsoft azure and Analysys jointly released the report "Enterprise Cloud native platform driven digital transformation"

【Flutter -- 布局】层叠布局(Stack和Positioned)
随机推荐
Detailed explanation of switch link aggregation [Huawei ENSP]
想要做好软件测试,可以先了解AST、SCA和渗透测试
【AI4Code】《CoSQA: 20,000+ Web Queries for Code Search and Question Answering》 ACL 2021
logstash
Software testing interview question: Please list the testing methods of several items?
[advanced C language] dynamic memory management
阿里云技术专家秦隆:可靠性保障必备——云上如何进行混沌工程?
基于Caffe ResNet-50网络实现图片分类(仅推理)的实验复现
《富兰克林自传》修身
【AI4Code】《CodeBERT: A Pre-Trained Model for Programming and Natural Languages》 EMNLP 2020
Selenium use -- installation and testing
What does the software testing process include? What are the test methods?
艰辛的旅程
微软提出CodeT:代码生成新SOTA,20个点的性能提升
2022.07.24(LC_6124_第一个出现两次的字母)
吕蒙正《破窑赋》
【六】地图框设置
If you want to do a good job in software testing, you can first understand ast, SCA and penetration testing
想要白嫖正则大全是吧?这一次给你个够!
【问题解决】ibatis.binding.BindingException: Type interface xxDao is not known to the MapperRegistry.