当前位置:网站首页>Remote connection to MySQL under windows and Linux system
Remote connection to MySQL under windows and Linux system
2022-07-02 02:31:00 【Peach blossom key God】
windows Next remote access linux Medium mysql database
The premise that the database wants to be accessed remotely : The accessed database needs to be opened , Allow remote access .
- One 、 The accessed database is opened to allow remote access
First, enter the command to enter the database to be accessed (root User access )

Get into mysql database 
see user Below the table User and Host The contents of the field 
The user name in the above figure is admin Only local links are allowed , take host Change it to % that will do
change user Table with fields Host=‘host’,User='admin’ The data of , take host Change it to %
Update the permissions 
Test the link on the tool ,host For linked ip, Enter the login user's account and password

Test success 
linux Next remote access windows Medium mysql database
The remote access permission to open the database is the same as the above , close windows The firewall of , Or they'll be intercepted .
Enter the following command to connect to the database , -h The back is ip Address 
Then enter the password 
windows Connect windows and linux Connect linux database
The first step is to open the permission first , Then connect directly .
Windows You can use tools to connect ,linux You can only enter commands on the console . The command also says
边栏推荐
- Query word weight, search word weight calculation
- Leetcode question brushing (10) - sequential question brushing 46 to 50
- [opencv] - comprehensive examples of five image filters
- 剑指 Offer 31. 栈的压入、弹出序列
- [learn C and fly] 2day Chapter 8 pointer (practice 8.1 password unlocking)
- Sword finger offer 62 The last remaining number in the circle
- Realize the code scanning function of a custom layout
- What is the function of the headphone driver
- Infix expression to suffix expression (computer) code
- A quick understanding of analog electricity
猜你喜欢

SAP ui5 beginner tutorial 19 - SAP ui5 data types and complex data binding

Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing

【带你学c带你飞】1day 第2章 (练习2.2 求华氏温度 100°F 对应的摄氏温度

As a software testing engineer, will you choose the bank post? Laolao bank test post

Which brand of sports headset is better? Bluetooth headset suitable for sports

Infix expression to suffix expression (computer) code

LeetCode刷题(十)——顺序刷题46至50

STM32__ 05 - PWM controlled DC motor

【读书笔记】程序员修炼手册—实战式学习最有效(项目驱动)
![[liuyubobobo play with leetcode algorithm interview] [00] Course Overview](/img/1c/c8cab92c74b6658c3ef608c5255f1f.png)
[liuyubobobo play with leetcode algorithm interview] [00] Course Overview
随机推荐
leetcode2309. 兼具大小写的最好英文字母(简单,周赛)
【带你学c带你飞】2day 第8章 指针(练习8.1 密码开锁)
研发中台拆分过程的一些心得总结
[question 008: what is UV in unity?]
Calculation (computer) code of suffix expression
Which kind of sports headphones is easier to use? The most recommended sports headphones
Ar Augmented Reality applicable scenarios
What is the principle of bone conduction earphones and who is suitable for bone conduction earphones
leetcode2310. The one digit number is the sum of integers of K (medium, weekly)
Questions d'entrevue
LeetCode刷题(十)——顺序刷题46至50
[question] - why is optical flow not good for static scenes
Sword finger offer 31 Stack push in and pop-up sequence
连通块模板及变式(共4题)
What kind of good and cost-effective Bluetooth sports headset to buy
Flutter un élément au milieu, l'élément le plus à droite
pytest 测试框架
【带你学c带你飞】1day 第2章 (练习2.2 求华氏温度 100°F 对应的摄氏温度
Kibana controls es
CVPR 2022 | Dalian Institute of technology proposes a self calibration lighting framework for low light level image enhancement of real scenes