当前位置:网站首页>Ubuntu MySQL setting remote access permissions
Ubuntu MySQL setting remote access permissions
2022-07-28 06:54:00 【Phantom seven illusions】
ubuntu mysql Set remote access rights
First step : Modify the port binding of the configuration file
The open directory may be based on MySQL The version of is slightly different , You can try to open /etc/mysql/my.cnf This configuration file , If the file does not exist or the file content is empty , Then try the following file path .
sudo vim /etc/mysql/mysql.conf.d/mysqld.cnfAdd #, Comment out the line , Then save to exit vim:
bind-address = 127.0.0.1The second step : Modify access rights
Get into mysql, Enter the following command , Input password , Get into mysql Command line
mysql -u root -p
to grant authorization root User access rights , And refresh permissions , Here root Other available MySQL User replacement ,pwd Part needs to be replaced with the corresponding password of the user
grant all privileges on *.* to [email protected]"%" identified by "pwd" with grant option;flush privileges;exit;
The third step : restart mysql service
service mysql restart边栏推荐
- QT uses MSVC compiler to output Chinese garbled code
- OSI seven layer model
- 设计测试用例的方法
- HDU-2036-改革春风吹满地(多边形面积模板)
- Build php7 private warehouse
- Which brand of air conduction earphones is better? These four should not be missed
- Using C language to realize three piece chess games
- What is a linear table?
- Initializingbean interface and examples
- HDU-5805-NanoApe Loves Sequence(思维题)
猜你喜欢
随机推荐
Dynamic memory management function of C language
Ubuntu18.04+Centos7配置redis主从【学习笔记】
HDU-5783 Divide the Sequence(贪心水题)
Insertion and deletion of nodes in linked list
prometheus监控nacos
How about air conduction Bluetooth headset? It's the most worthwhile air conduction headset to start with
Array to linked list
ISO 3.0-server three power separation configuration
HDU-1159-CommonSubsequence(LCS最长公共子序列)
Skimming records -- sequence traversal of binary tree
Test interview questions collection (V) | automated testing and performance testing (with answers)
PKU-2524-Ubiquitous Religions(并查集模板)
Ten thousand words summarize and realize the commonly used sorting and performance comparison
Array solution script
Analysis of the semaphore source code of AQS
技术分享 | 使用 cURL 发送请求
浅谈Cookie和Session
Common models in software development
Network - network layer
Pku-2739-sum of constructive prime numbers








