当前位置:网站首页>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
边栏推荐
- Comparative analysis of MVC, MVP and MVVM, source code analysis
- 花一个星期时间呕心沥血整理出高频软件测试/自动化测试面试题和答案
- Which kind of sports headphones is easier to use? The most recommended sports headphones
- Spend a week painstakingly sorting out the interview questions and answers of high-frequency software testing / automated testing
- CSDN insertion directory in 1 second
- Provincial election + noi Part IV graph theory
- An analysis of circuit for quick understanding
- Leetcode face T10 (1-9) array, ByteDance interview sharing
- 2022低压电工考试题模拟考试题库模拟考试平台操作
- How to hide the scroll bar of scroll view in uniapp
猜你喜欢
[graduation season] graduate seniors share how to make undergraduate more meaningful
Spend a week painstakingly sorting out the interview questions and answers of high-frequency software testing / automated testing
What is the MySQL column to row function
No programming code technology! Four step easy flower store applet
MySQL constraints and multi table query example analysis
JVM interview
【带你学c带你飞】3day第2章 用C语言编写程序(练习 2.3 计算分段函数)
Sword finger offer 62 The last remaining number in the circle
Connected block template and variants (4 questions in total)
Types of exhibition items available in the multimedia interactive exhibition hall
随机推荐
Query word weight, search word weight calculation
Sword finger offer 31 Stack push in and pop-up sequence
QT uses sqllite
Infix expression to suffix expression (computer) code
Build a modern data architecture on the cloud with Amazon AppFlow, Amazon lake formation and Amazon redshift
LeetCode刷题(十)——顺序刷题46至50
MySQL constraints and multi table query example analysis
Spend a week painstakingly sorting out the interview questions and answers of high-frequency software testing / automated testing
How to turn off debug information in rtl8189fs
leetcode373. Find and minimum k-pair numbers (medium)
【读书笔记】程序员修炼手册—实战式学习最有效(项目驱动)
Is bone conduction earphone better than traditional earphones? The sound production principle of bone conduction earphones is popular science
花一个星期时间呕心沥血整理出高频软件测试/自动化测试面试题和答案
New programmer magazine | Li Penghui talks about open source cloud native message flow system
Software testing learning notes - network knowledge
RTL8189FS如何关闭Debug信息
[technology development -21]: rapid overview of the application and development of network and communication technology -1- Internet Network Technology
Kibana controls es
how to come in an investnent bank team
What style of Bluetooth headset is easy to use? High quality Bluetooth headset ranking