当前位置:网站首页>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边栏推荐
- JS reverse question 100 - question 1
- [explain in detail how to realize Sanzi chess step by step]
- Dynamic memory management function of C language
- What is a linear table?
- Gerapy use
- Technology sharing | how to do Assertion Verification in interface automated testing?
- 测试面试题集锦(五)| 自动化测试与性能测试篇(附答案)
- Technology sharing | common proxy tools for interface testing
- Elastic common high frequency commands
- Create, traverse and search nodes as required for single linked list
猜你喜欢

File operation in C language

DNS域名解析服务

技术分享 | 如何模拟真实使用场景?mock 技术来帮你

技术分享 | 接口测试价值与体系

技术分享 | 服务端接口自动化测试, Requests 库的这些功能你了解吗?

What is the good brand of air conduction Bluetooth headset and the best brand recommendation of air conduction headset

cocos2d-x 学习笔记——瓦片地图TiledMap

网络——传输层(详细版)

技术分享 | 接口测试常用代理工具

KVM hot migration
随机推荐
手把手教你三步完成测试监控系统搭建
Test interview questions collection (II) | test tools (with answers)
Scratch command
Mongo SSL configuration practice
技术分享 | 使用postman发送请求
iptables防火墙
[realize the simple version of minesweeping games]
数组转链表
It is recommended to wear air conduction earphones, which do not need to wear in ear
archery数据库审核平台部署
单项链表的创建、遍历以及按要求查找结点
What's a good gift for Tanabata? Niche and advanced product gift recommendation
Implementation of simple address book in [c language]
TCP/IP五层模型
OSI seven layer model
[the beginning of self redemption]
HDU-5806-NanoApeLovesSequenceⅡ(尺取法)
软件测试的生命周期(流程)
测试面试题集锦(一)| 软件测试常见必考问题与流程篇(附答案)
Test interview questions collection (I) | common required questions and procedures of software testing (with answers)