phpstudy allows remote access to mysql database setting method

小云云
Release: 2023-03-22 09:56:02
Original
11547 people have browsed it

This article mainly shares with you the setting method of phpstudy allowing remote access to mysql database. I hope it can help everyone.

Recommended mysql video tutorials: "mysql tutorial"

1. First use the command line in the server (open the phpstudy interface->lower right corner Other menu options->MySQL tools->MySQL command line)

Log in to mysql: mysql -u root -p password (if the mysql initial account and password are both root)

2. Execute use mysql;

3. Execute grant all privileges on *.* to root@'%' identified by 'password';

4. Execute flush privileges;

After these steps are set up, we can use mysql management tools, such as navicat, to test the connection. If the connection is unsuccessful, we need to open port 3306 in the security group.

The above is the detailed content of phpstudy allows remote access to mysql database setting method. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!