当前位置:网站首页>关于在云服务器上(这里用腾讯云)安装mysql8.0并使本地可以远程连接的方法
关于在云服务器上(这里用腾讯云)安装mysql8.0并使本地可以远程连接的方法
2022-07-07 09:06:00 【optimistic丶中】
这里采取利用宝塔的方法,首先在宝塔官网上找到宝塔适合于个人环境的安装方式并在云服务器上进行安装
安装完宝塔后在可以宝塔的软件商店中安装mysql,并设置了mysql的用户名和密码后,需要打开防火墙中的3306端口,此时远程连接依旧会出现1045的错误,后续需要通过修改用户的权限解决(这里不知道为什么,出现过多次
的问题,网上查是因为套接字文件缺失,但我反复检查没有做过删除操作,最后通过重启服务器可以解决问题,很玄学)
首先通过CREATE USER 'your username'@'%' IDENTIFIED BY 'your password';来新建一个用户,
再通过grant all privileges on *.* to 'your username'@'%' with grant option;(mysql8.0之后用这个,8.0之前用grant all privileges on *.* to 'your username'@'%' identified by 'root' with grant option;)给该用户权限,
之后通过flush privileges;刷新数据库的配置,
并最后依靠sudo service mysql restart;重启,最终可以成功使用Navicat远程连接
边栏推荐
- Unity downloads files through the server address
- Deconstruction and assignment of variables
- The gun startles the dragon, and the crowd "locks" Zhou Zhi
- JSON format query of MySQL
- Operation method of Orange Pie orangepi 4 lts development board connecting SATA hard disk through mini PCIe
- 90后,辞职创业,说要卷死云数据库
- The opacity value becomes 1%
- Opencv installation and environment configuration - vs2017
- Get pictures through opencv, change channels and save them
- Multithreaded application (thread pool, singleton mode)
猜你喜欢

Using tansformer to segment three-dimensional abdominal multiple organs -- actual battle of unetr

CSAPP bomb lab parsing

Input type= "password" how to solve the problem of password automatically brought in

IDEA快捷键大全

The use of list and Its Simulation Implementation

SQL Server knowledge gathering 9: modifying data

Monai version has been updated to 0.9. See what new functions it has
![[STM32] actual combat 3.1 - drive 42 stepper motors with STM32 and tb6600 drivers (I)](/img/cd/7cd8e2e77419c65d633a2a235b2362.png)
[STM32] actual combat 3.1 - drive 42 stepper motors with STM32 and tb6600 drivers (I)

Static semantic check of clang tidy in cicd

Ping tool ICMP message learning
随机推荐
从色情直播到直播电商
[untitled]
2022.7.6DAY598
How to play video on unityui
Arduino board description
The use of list and Its Simulation Implementation
Unity script visualization about layout code
The concept, implementation and analysis of binary search tree (BST)
滚动踩坑--UNI_APP(八)
Différences entre les contraintes monotones et anti - monotones
请问申购新股哪个证券公司开户是最好最安全的
What are the contents of the intermediate soft test, the software designer test, and the test outline?
A case of compiling QT file qmake compiling script
Unity determines whether the mouse clicks on the UI
通过 Play Integrity API 的 nonce 字段提高应用安全性
Basic knowledge of process (orphan, zombie process)
Unity downloads files through the server address
When initializing 'float', what is the difference between converting to 'float' and adding 'f' as a suffix?
Ping tool ICMP message learning
VIM命令模式与输入模式切换