当前位置:网站首页>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
边栏推荐
- word样式和多级列表设置技巧(二)
- 基于Caffe ResNet-50网络实现图片分类(仅推理)的实验复现
- Selenium uses -- XPath and analog input and analog click collaboration
- Visualize the training process using tensorboard
- 2022河南萌新联赛第(三)场:河南大学 I - 旅行
- 2.1.2 application of machine learning
- Interviewer: "classmate, have you ever done a real landing project?"
- 【九】坐标格网添加以及调整
- Pytorch visualization
- 3.2.1 what is machine learning?
猜你喜欢

Selenium use -- installation and testing

【AI4Code】《InferCode: Self-Supervised Learning of Code Representations by Predicting Subtrees》ICSE‘21

什么是CI/CD?
软件测试流程包括哪些内容?测试方法有哪些?

Clickhouse notes 03-- grafana accesses Clickhouse

零基础学习CANoe Panel(16)—— Clock Control/Panel Control/Start Stop Control/Tab Control

cmake 学习使用笔记(二)库的生成与使用
What does the software testing process include? What are the test methods?

2022.07.24(LC_6126_设计食物评分系统)

2022.07.24(LC_6125_相等行列对)
随机推荐
【8】 Clever use of color finder
Introduction to the scratch crawler framework
Spirng @Conditional 条件注解的使用
mysql实现一张表数据插入另一张表
交换机链路聚合详解【华为eNSP】
Jenkins configuration pipeline
Use of hystrix
Lu MENGZHENG's "Fu of broken kiln"
[shutter -- layout] stacked layout (stack and positioned)
[high concurrency] deeply analyze the execution process of worker threads in the thread pool through the source code
Script set random user_ agent
Implementation of recommendation system collaborative filtering in spark
【九】坐标格网添加以及调整
logstash
吕蒙正《破窑赋》
If you want to do a good job in software testing, you can first understand ast, SCA and penetration testing
1.1.1 welcome to machine learning
微软提出CodeT:代码生成新SOTA,20个点的性能提升
卷积核越大性能越强?一文解读RepLKNet模型
Kyligence 入选 Gartner 2022 数据管理技术成熟度曲线报告