当前位置:网站首页>关于在云服务器上(这里用腾讯云)安装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远程连接
边栏推荐
- 单调性约束与反单调性约束的区别 monotonicity and anti-monotonicity constraint
- The eighth training assignment
- [pro test feasible] error while loading shared libraries solution
- Wallhaven壁纸桌面版
- vim 的各种用法,很实用哦,都是本人是在工作中学习和总结的
- 從色情直播到直播電商
- Monai version has been updated to 0.9. See what new functions it has
- [installation system] U disk installation system tutorial, using UltraISO to make U disk startup disk
- [untitled]
- Activity生命周期
猜你喜欢

Opencv installation and environment configuration - vs2017

RationalDMIS2022 高级编程宏程序

Unity script generates configurable files and loads

The use of list and Its Simulation Implementation

Transaction rolled back because it has been marked as rollback only

Static semantic check of clang tidy in cicd

China Southern Airlines pa3.1
![[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)
![[untitled]](/img/8e/e968d4629004bb0c3ee70328b6777b.jpg)
[untitled]

【C#】WinForm运行缩放(变糊)的解决方法
随机推荐
Get pictures through opencv, change channels and save them
Unity determines whether the mouse clicks on the UI
[pytorch 07] hands on deep learning chapter_ Preliminaries/ndarray exercises hands-on version
After the uniapp jumps to the page in onlaunch, click the event failure solution
Use of dotween
Long list performance optimization scheme memo
A simple example of delegate usage
How to play video on unityui
Go slice comparison
[installation system] U disk installation system tutorial, using UltraISO to make U disk startup disk
Realize ray detection, drag the mouse to move the object and use the pulley to scale the object
The fifth training assignment
【STM32】实战3.1—用STM32与TB6600驱动器驱动42步进电机(一)
Process control (creation, termination, waiting, program replacement)
Project ERROR: Unknown module(s) in QT: core gui
单调性约束与反单调性约束的区别 monotonicity and anti-monotonicity constraint
在线硬核工具
Deep understanding of Apache Hudi asynchronous indexing mechanism
Mysql的json格式查询
PR Lecture Notes