当前位置:网站首页>MySql数据库root账户无法远程登陆解决办法
MySql数据库root账户无法远程登陆解决办法
2022-07-06 03:53:00 【Terence全栈开发】
最近换了新的腾讯云服务器后,通过宝塔面板安装了mysql 数据库,之后使用root用户通过navicat远程连接登录不了。
解决办法如下 两行代码ok
MySQL5.7和MySql8 开启root 用户远程访问
mysql> create user 'root'@'%' identified by '1234';
Query OK, 0 rows affected (0.02 sec)
mysql> grant all on *.* to 'root'@'%';
Query OK, 0 rows affected (0.02 sec)
边栏推荐
- Flask learning and project practice 8: introduction and use of cookies and sessions
- Image super resolution using deep revolutionary networks (srcnn) interpretation and Implementation
- [Key shake elimination] development of key shake elimination module based on FPGA
- Codeforces Global Round 19
- 1.16 - check code
- Hashcode and equals
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- UDP reliable transport protocol (quic)
- 在 .NET 6 中使用 Startup.cs 更简洁的方法
- mysql从一个连续时间段的表中读取缺少数据
猜你喜欢
ESP32_ FreeRTOS_ Arduino_ 1_ Create task
Network security - Security Service Engineer - detailed summary of skill manual (it is recommended to learn and collect)
Ethernet port &arm & MOS &push-pull open drain &up and down &high and low sides &time domain and frequency domain Fourier
[introduction to Django] 11 web page associated MySQL single field table (add, modify, delete)
Cubemx transplantation punctual atom LCD display routine
No qualifying bean of type ‘......‘ available
Interface idempotency
Remote Sensing Image Super-resolution and Object Detection: Benchmark and State of the Art
Proof of Stirling formula
C#(三十一)之自定义事件
随机推荐
简易博客系统
Ks003 mall system based on JSP and Servlet
Exchange bottles (graph theory + thinking)
Do you know cookies, sessions, tokens?
使用JS完成一个LRU缓存
[prediction model] difference method model
1. New project
2.2 STM32 GPIO操作
C (thirty) C combobox listview TreeView
Data analysis Seaborn visualization (for personal use)
Facebook等大廠超十億用戶數據遭泄露,早該關注DID了
有条件地 [JsonIgnore]
WPF effect Article 191 box selection listbox
判断当天是当月的第几周
Flask learning and project practice 9: WTF form verification
Custom event of C (31)
Ybtoj coloring plan [tree chain dissection, segment tree, tarjan]
SSTI template injection explanation and real problem practice
在 .NET 6 中使用 Startup.cs 更简洁的方法
关于非虚函数的假派生