当前位置:网站首页>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#(二十九)之C#listBox checkedlistbox imagelist
- Containerization Foundation
- C#(二十八)之C#鼠标事件、键盘事件
- [American competition] mathematical terms
- How to modify field constraints (type, default, null, etc.) in a table
- 2.2 fonctionnement stm32 GPIO
- Simple blog system
- Introduction to data types in MySQL
- Cf464e the classic problem [shortest path, chairman tree]
- C#(三十一)之自定义事件
猜你喜欢

20、 EEPROM memory (AT24C02) (similar to AD)

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

The Research Report "2022 RPA supplier strength matrix analysis of China's banking industry" was officially launched

An article will give you a comprehensive understanding of the internal and external components of "computer"

2.2 STM32 GPIO操作

Ethernet port &arm & MOS &push-pull open drain &up and down &high and low sides &time domain and frequency domain Fourier

Network security - Security Service Engineer - detailed summary of skill manual (it is recommended to learn and collect)

JVM的手术刀式剖析——一文带你窥探JVM的秘密

MySQL master-slave replication
![[analysis of variance] single factor analysis and multi factor analysis](/img/92/5337d0ef6e487d1af2f56cb3a3268a.jpg)
[analysis of variance] single factor analysis and multi factor analysis
随机推荐
[introduction to Django] 11 web page associated MySQL single field table (add, modify, delete)
Microkernel structure understanding
Overview of super-resolution reconstruction of remote sensing images
WPF effect Article 191 box selection listbox
Simple blog system
Pandora IOT development board learning (HAL Library) - Experiment 9 PWM output experiment (learning notes)
【FPGA教程案例11】基于vivado核的除法器设计与实现
Align items and align content in flex layout
MySQL about self growth
【按键消抖】基于FPGA的按键消抖模块开发
自动化测试怎么规范部署?
MySQL 中的数据类型介绍
[Key shake elimination] development of key shake elimination module based on FPGA
在 .NET 6 中使用 Startup.cs 更简洁的方法
/usr/bin/gzip: 1: ELF: not found/usr/bin/gzip: 3: : not found/usr/bin/gzip: 4: Syntax error:
Chinese brand hybrid technology: there is no best technical route, only better products
Exchange bottles (graph theory + thinking)
Why do you want to start pointer compression?
SAP ALV cell level set color
Remote Sensing Image Super-resolution and Object Detection: Benchmark and State of the Art