当前位置:网站首页>Configure MySQL under Linux to authorize a user to access remotely, which is not restricted by IP
Configure MySQL under Linux to authorize a user to access remotely, which is not restricted by IP
2022-07-02 16:54:00 【Juicy and tasty】
1. Sign in mysql
mysql -u root -p
2. User management
use mysql;
3. To view the user
select host,user from user;
4. Create and authorize users
# (*.* Remote access is allowed IP Value , User name is not recommended root, '%' Express all IP)
grant all privileges on *.* to ' user name '@'%' identified by ' password ' with grant option;
flush privileges;
5. Update user information
# according to user and host Conditions to update host by %
update user set Host = '%' where Host = 'localhost' & user = 'xxxin_999';
flush privileges;
6. Delete user
delete from user where user="xxxin_999" and Host="localhost";
flush privileges;
边栏推荐
- 易语言abcd排序
- How openharmony starts FA of remote devices
- 什么是泛型?- 泛型入门篇
- Which software is good for machine vision?
- 头条 | 亚控科技产品入选中纺联《纺织服装行业数字化转型解决方案重点推广名录》
- Executive engine module of high performance data warehouse practice based on Impala
- jsp 和 servlet 有什么区别?
- Cell:清华程功组揭示皮肤菌群的一种气味挥发物促进黄病毒感染宿主吸引蚊虫...
- Ranger (I) preliminary perception
- ⌈ 2022 ⌋ how to use webp gracefully in projects
猜你喜欢
配置基于接口的ARP表项限制和端口安全(限制用户私自接入傻瓜交换机或非法主机接入)
Mysql database mysqldump why there is no statement to create a database
SSM integration exception handler and project exception handling scheme
Notice on holding a salon for young editors of scientific and Technological Journals -- the abilities and promotion strategies that young editors should have in the new era
Analyzing more than 7million R & D needs, it is found that these eight programming languages are the most needed in the industry!
中国信通院《数据安全产品与服务图谱》,美创科技实现四大板块全覆盖
TCP congestion control details | 2 background
大廠面試總結大全
In MySQL and Oracle, the boundary and range of between and precautions when querying the date
Headline | Asian control technology products are selected in the textile and clothing industry digital transformation solution key promotion directory of Textile Federation
随机推荐
Mysql database mysqldump why there is no statement to create a database
VMware安装win10镜像
jsp 和 servlet 有什么区别?
入行数字IC验证后会做些什么?
Win11应用商店无法加载页面怎么办?Win11商店无法加载页面
john爆破出现Using default input encoding: UTF-8 Loaded 1 password hash (bcrypt [Blowfish 32/64 X3])
Take you ten days to easily complete the go micro service series (I)
SSM integration exception handler and project exception handling scheme
Notice on holding a salon for young editors of scientific and Technological Journals -- the abilities and promotion strategies that young editors should have in the new era
LeetCode 3. Longest substring without duplicate characters
PCL least median square method fitting plane
LeetCode 2. Add two numbers
Cloud native cicd framework: Tekton
Serial port controls steering gear rotation
PWM controlled steering gear
TCP server communication process (important)
七一献礼:易鲸捷 “百日会战”完美收官 贵阳银行数据库提前封板
Summary of monthly report | list of major events of moonbeam in June
DigiCert SSL证书支持中文域名申请吗?
学习周刊-总第60期-2022年第25周