当前位置:网站首页>About how to install mysql8.0 on the cloud server (Tencent cloud here) and enable local remote connection

About how to install mysql8.0 on the cloud server (Tencent cloud here) and enable local remote connection

2022-07-07 11:32:00 Optimistic, medium

Here we use the pagoda , First, find the installation method of pagoda suitable for personal environment on the pagoda official website and install it on the cloud server  Insert picture description here
After installing pagoda, you can install it in the software store of pagoda mysql, And set up mysql After the username and password , You need to open 3306 port , At this time, the remote connection will still appear 1045 Error of , You need to modify the user's permissions later ( I don't know why , There have been many times  Insert picture description here
The problem of , Online search is because the socket file is missing , But I repeatedly checked that I had not done the deletion operation , Finally, the problem can be solved by restarting the server , It's very metaphysical )
First, through CREATE USER 'your username'@'%' IDENTIFIED BY 'your password'; To create a new user ,
Re pass grant all privileges on *.* to 'your username'@'%' with grant option;(mysql8.0 Then use this ,8.0 I used to use grant all privileges on *.* to 'your username'@'%' identified by 'root' with grant option;) Give the user permission ,
After through flush privileges; Refresh the configuration of the database ,
And finally rely on sudo service mysql restart; restart , Finally, it can be used successfully Navicat Remote connection

原网站

版权声明
本文为[Optimistic, medium]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070906310583.html