当前位置:网站首页>Setting up remote links to MySQL on Linux
Setting up remote links to MySQL on Linux
2022-07-03 13:19:00 【Levi Bebe】
1. Log into the database
Everyone's account password is different , If you don't know the password, please see :
MySQL password
mysql -uroot -p88888888
Enter into MySQL interface :
2. Go in data mysql And delete anonymous users , The operation is as follows
use mysql;
delete from user where user='';
3. Set up root Remote access user
User statements for remote access :
update user set host='%' where user='root' and host='localhost';
Put the account :root Granted on any host (%) All permissions to access any database .
View current account status :
select user,host,plugin from user;
4. Exit database
MySQL Case input :exit ; Press enter again
mysql> exit
5. Restart the database
sudo service mysql restart
Reference resources :
https://www.cnblogs.com/wangwust/p/9765843.html
https://www.cnblogs.com/ashe666/p/11305466.html
边栏推荐
- [Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter III exercises]
- An example of newtonjason
- 显卡缺货终于到头了:4000多块可得3070Ti,比原价便宜2000块拿下3090Ti
- (first) the most complete way to become God of Flink SQL in history (full text 180000 words, 138 cases, 42 pictures)
- Convolution emotion analysis task4
- json序列化时案例总结
- The principle of human voice transformer
- 【数据库原理及应用教程(第4版|微课版)陈志泊】【第五章习题】
- Seven habits of highly effective people
- regular expression
猜你喜欢
Sword finger offer 14- ii Cut rope II
有限状态机FSM
8皇后问题
2022-02-14 analysis of the startup and request processing process of the incluxdb cluster Coordinator
STM32 and motor development (from MCU to architecture design)
【R】 [density clustering, hierarchical clustering, expectation maximization clustering]
Tutoriel PowerPoint, comment enregistrer une présentation sous forme de vidéo dans Powerpoint?
Logseq evaluation: advantages, disadvantages, evaluation, learning tutorial
Comprehensive evaluation of double chain notes remnote: fast input, PDF reading, interval repetition / memory
My creation anniversary: the fifth anniversary
随机推荐
SQL learning notes (I)
Logback log framework
Idea full text search shortcut ctr+shift+f failure problem
Finite State Machine FSM
Tutoriel PowerPoint, comment enregistrer une présentation sous forme de vidéo dans Powerpoint?
Fabric. JS three methods of changing pictures (including changing pictures in the group and caching)
The 35 required questions in MySQL interview are illustrated, which is too easy to understand
Multi table query of MySQL - multi table relationship and related exercises
My creation anniversary: the fifth anniversary
2022-02-09 survey of incluxdb cluster
Oracle memory management
我的创作纪念日:五周年
Flink SQL knows why (VIII): the wonderful way to parse Flink SQL tumble window
Will Huawei be the next one to fall
Task6: using transformer for emotion analysis
Flink SQL knows why (XIV): the way to optimize the performance of dimension table join (Part 1) with source code
Asp.Net Core1.1版本没了project.json,这样来生成跨平台包
Setting up Oracle datagurd environment
Kotlin - improved decorator mode
用户和组命令练习