当前位置:网站首页>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
边栏推荐
- 【2】 Grid data display stretch ribbon (take DEM data as an example)
- 阿里云技术专家秦隆:可靠性保障必备——云上如何进行混沌工程?
- “蔚来杯“2022牛客暑期多校训练营2 补题题解(G、J、K、L)
- flinkcdc可以一起导mongodb数据库中的多张表吗?
- The first scratch crawler
- A hard journey
- Is the securities account opened by qiniu safe? How to open an account
- Implementation of recommendation system collaborative filtering in spark
- PyTorch进阶训练技巧
- 【Flutter -- 布局】层叠布局(Stack和Positioned)
猜你喜欢

Kyligence 入选 Gartner 2022 数据管理技术成熟度曲线报告

JS 将伪数组转换成数组

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

微软提出CodeT:代码生成新SOTA,20个点的性能提升

基于JEECG制作一个通用的级联字典选择控件-DictCascadeUniversal

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

JS convert pseudo array to array

485通讯( 详解 )
Software testing interview question: Please list the testing methods of several items?

【AI4Code】《GraphCodeBERT: Pre-Training Code Representations With DataFlow》 ICLR 2021
随机推荐
"Autobiography of Franklin" cultivation
SSTI template injection vulnerability summary [bjdctf2020]cookie is so stable
Deep learning MEMC framing paper list
flinkcdc可以一起导mongodb数据库中的多张表吗?
JS convert pseudo array to array
2022.07.24 (lc_6126_design food scoring system)
More accurate and efficient segmentation of organs-at-risk in radiotherapy with Convolutional Neural
【3】 DEM mountain shadow effect
[high concurrency] deeply analyze the execution process of worker threads in the thread pool through the source code
Kyligence was selected into Gartner 2022 data management technology maturity curve report
【AI4Code】《CoSQA: 20,000+ Web Queries for Code Search and Question Answering》 ACL 2021
[problem solving] ibatis.binding BindingException: Type interface xxDao is not known to the MapperRegistry.
启牛开的证券账户安全吗?是怎么开账户的
卷积核越大性能越强?一文解读RepLKNet模型
弹性盒子(Flex Box)详解
Software testing interview question: Please list the testing methods of several items?
请问一下,使用数据集成从postgreSQL导数据到Mysql数据库,有部分数据的字段中出现emoj
Crawler crawls dynamic website
485通讯( 详解 )
Detailed explanation of switch link aggregation [Huawei ENSP]