当前位置:网站首页>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)

边栏推荐
猜你喜欢

C language -- structs, unions, enumerations, and custom types

Error 1045 (28000): access denied for user 'root' @ 'localhost' (using password: no/yes

Remote Sensing Image Super-resolution and Object Detection: Benchmark and State of the Art

【按键消抖】基于FPGA的按键消抖模块开发

MySQL about self growth

After five years of testing in byte, I was ruthlessly dismissed in July, hoping to wake up my brother who was paddling

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

1.16 - check code

JS music online playback plug-in vsplayaudio js

RT-Thread--Lwip之FTP(2)
随机推荐
Quick sort function in C language -- qsort
After five years of testing in byte, I was ruthlessly dismissed in July, hoping to wake up my brother who was paddling
Facebook and other large companies have leaked more than one billion user data, and it is time to pay attention to did
Canvas cut blocks game code
Mapping between QoE and KQI
Chinese brand hybrid technology: there is no best technical route, only better products
Multi project programming minimalist use case
Exchange bottles (graph theory + thinking)
Blue Bridge Cup - day of week
Ybtoj coloring plan [tree chain dissection, segment tree, tarjan]
How to modify field constraints (type, default, null, etc.) in a table
Ks003 mall system based on JSP and Servlet
Why do you want to start pointer compression?
The Research Report "2022 RPA supplier strength matrix analysis of China's banking industry" was officially launched
3分钟带你了解微信小程序开发
Facebook等大厂超十亿用户数据遭泄露,早该关注DID了
Mathematical modeling regression analysis relationship between variables
Schnuka: 3D vision detection application industry machine vision 3D detection
【FPGA教程案例11】基于vivado核的除法器设计与实现
User experience index system