当前位置:网站首页>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)
边栏推荐
- 【可调延时网络】基于FPGA的可调延时网络系统verilog开发
- No qualifying bean of type ‘......‘ available
- Pointer for in-depth analysis (problem solution)
- Facebook等大廠超十億用戶數據遭泄露,早該關注DID了
- Factors affecting user perception
- 1. New project
- Conditionally [jsonignore]
- 自动化测试的好处
- MySQL reads missing data from a table in a continuous period of time
- 简述C语言中的符号和链接库
猜你喜欢
2.2 fonctionnement stm32 GPIO
[analysis of variance] single factor analysis and multi factor analysis
Detailed explanation of serialization and deserialization
C mouse event and keyboard event of C (XXVIII)
Svg drag point crop image JS effect
【按鍵消抖】基於FPGA的按鍵消抖模塊開發
An article will give you a comprehensive understanding of the internal and external components of "computer"
在字节做测试5年,7月无情被辞,想给划水的兄弟提个醒
Suggestions for new engineer team members
Microkernel structure understanding
随机推荐
BUAA喜鹊筑巢
关于非虚函数的假派生
Basic concepts of LTE user experience
ESP32_ FreeRTOS_ Arduino_ 1_ Create task
Pointer for in-depth analysis (problem solution)
2.1 rtthread pin device details
BUAA calculator (expression calculation - expression tree implementation)
有条件地 [JsonIgnore]
Exchange bottles (graph theory + thinking)
In Net 6 CS more concise method
Custom event of C (31)
[001] [stm32] how to download STM32 original factory data
KS008基于SSM的新闻发布系统
Pytoch foundation - (2) mathematical operation of tensor
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
3.2 detailed explanation of rtthread serial port device (V2)
Proof of Stirling formula
Factors affecting user perception
BUAA magpie nesting
20、 EEPROM memory (AT24C02) (similar to AD)