当前位置:网站首页>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
边栏推荐
- Numpy first acquaintance
- Keeping MySQL highly available
- 推荐系统-协同过滤在Spark中的实现
- Synergetic process
- 【8】 Clever use of color finder
- 《富兰克林自传》修身
- 2022.07.24 (lc_6124_the first letter that appears twice)
- If you want to do a good job in software testing, you can first understand ast, SCA and penetration testing
- Maskgae: masked graph modeling meets graph autoencoders
- 感动中国人物刘盛兰
猜你喜欢

485 communication (detailed explanation)

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

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

【问题解决】ibatis.binding.BindingException: Type interface xxDao is not known to the MapperRegistry.

【AI4Code】《CoSQA: 20,000+ Web Queries for Code Search and Question Answering》 ACL 2021

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

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

【运维、实施精品】月薪10k+的技术岗位面试技巧

cmake 学习使用笔记(二)库的生成与使用

【AI4Code】《GraphCodeBERT: Pre-Training Code Representations With DataFlow》 ICLR 2021
随机推荐
Implementation of recommendation system collaborative filtering in spark
Experimental reproduction of image classification (reasoning only) based on caffe resnet-50 network
想要白嫖正则大全是吧?这一次给你个够!
Fiddler packet capturing app
Maskgae: masked graph modeling meets graph autoencoders
Leetcode 0133. clone diagram
深度学习MEMC插帧论文列表paper list
Detailed explanation of flex box
A hard journey
[fluent -- example] case 1: comprehensive example of basic components and layout components
2022.07.24(LC_6125_相等行列对)
flinkcdc可以一起导mongodb数据库中的多张表吗?
【七】图层显示和标注
【11】 Production and adjustment of vector and grid data Legends
想要做好软件测试,可以先了解AST、SCA和渗透测试
A turbulent life
想要做好软件测试,可以先了解AST、SCA和渗透测试
软件测试流程包括哪些内容?测试方法有哪些?
Numpy first acquaintance
Use of Spirng @conditional conditional conditional annotation