当前位置:网站首页>Solve the problem that the remote host cannot connect to the MySQL database
Solve the problem that the remote host cannot connect to the MySQL database
2022-07-26 13:20:00 【xiongpursuit88】
Problem description
Installed on this machine mysql After the service side , There is no problem with the client access of this machine , however , Due to the need of the project , Today, it is used on another host navicat visit mysql On the server side , An error is as follows :
Through the command mysql -h192.168.3.22 -uroot -p The visit also reported such errors .
Cause analysis
mysql By default, only local clients are allowed to access , Which does not allow remote client access , If you want to turn on , Need modification mysql/user In the table Host List from localhost by %.
Solution
modify mysql On the server mysql library /user In the table Host Column , take localhost Change it to % that will do . As shown in the figure below .
such , Access through the remote host again mysql The server can be successfully connected .
边栏推荐
猜你喜欢

A college archives management system based on asp.net
![[flower carving hands-on] interesting and fun music visualization series small project (13) -- organic rod column lamp](/img/d4/7b9c7c99d46661e1be2963a342dd18.jpg)
[flower carving hands-on] interesting and fun music visualization series small project (13) -- organic rod column lamp

How to face scientific and technological unemployment?

《Kotlin系列》之MVVM架构封装(kotlin+mvvm)

学习pinia 介绍-State-Getters-Actions-Plugins

HCIP第十一天比较(BGP的配置、发布)

一笔画问题(中国邮递员问题)

牛客刷SQL---2

MVVM architecture encapsulation of kotlin series (kotlin+mvvm)

多线程使用不当导致的 OOM
随机推荐
Why do you want to make "secret comments"?
Leetcode 263. ugly number
B+ tree index use (6) leftmost principle -- MySQL from entry to proficiency (18)
B+ tree selection index (1) -- MySQL from entry to proficiency (22)
LeetCode 1523. 在区间范围内统计奇数数目
1312_适用7z命令进行压缩与解压
Kubelet CRI container runtime
二叉树的初阶笔记
Activity.onStop() 延迟10秒?精彩绝伦的排查历程
Unicode文件解析方法及存在问题
Flutter dart generates a list of random numbers that are not repeated in n intervals
Create EOS account action
File upload and download performance test based on the locust framework
postgresql官网下载出错
Flutter integrated Aurora push
Flutter multi-channel packaging operation
B+树索引使用(8)排序使用及其注意事项(二十)
Sword finger offer (VII): Fibonacci sequence
[upper computer tutorial] Application of integrated stepping motor and Delta PLC (as228t) under CANopen communication
【TypeScript】TypeScript常用类型(下篇)