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

边栏推荐
- Introduction to data types in MySQL
- [Qt5] QT QWidget immediately appears and disappears
- WPF效果第一百九十一篇之框选ListBox
- WPF effect Article 191 box selection listbox
- 【按鍵消抖】基於FPGA的按鍵消抖模塊開發
- 自动化测试怎么规范部署?
- Quick sort function in C language -- qsort
- Containerization Foundation
- How to modify field constraints (type, default, null, etc.) in a table
- 简易博客系统
猜你喜欢

Thread sleep, thread sleep application scenarios

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

SAP ALV cell level set color

1.16 - check code

Exchange bottles (graph theory + thinking)

C language circular statement

如何修改表中的字段约束条件(类型,default, null等)

Blue Bridge Cup - day of week

【按鍵消抖】基於FPGA的按鍵消抖模塊開發

ESP32(基于Arduino)连接EMQX的Mqtt服务器上传信息与命令控制
随机推荐
Cubemx transplantation punctual atom LCD display routine
登录mysql输入密码时报错,ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO/YES
Ks008 SSM based press release system
C#(三十一)之自定义事件
Remote Sensing Image Super-resolution and Object Detection: Benchmark and State of the Art
Detailed explanation of serialization and deserialization
Pointer written test questions ~ approaching Dachang
C (thirty) C combobox listview TreeView
MySQL reads missing data from a table in a continuous period of time
有条件地 [JsonIgnore]
A brief introduction to symbols and link libraries in C language
[Qt5] QT QWidget immediately appears and disappears
Recommended papers on remote sensing image super-resolution
[practice] mathematics in lottery
Microkernel structure understanding
[American competition] mathematical terms
/usr/bin/gzip: 1: ELF: not found/usr/bin/gzip: 3: : not found/usr/bin/gzip: 4: Syntax error:
潘多拉 IOT 开发板学习(HAL 库)—— 实验9 PWM输出实验(学习笔记)
BUAA magpie nesting
ESP32_ FreeRTOS_ Arduino_ 1_ Create task