Home > Database > Mysql Tutorial > body text

How to modify the default port number of mysql

青灯夜游
Release: 2019-06-01 15:21:08
Original
22504 people have browsed it

How to modify the default port number of mysql

Steps to modify the default port number of mysql:

1. Find my in the MYSQL installation directory .ini

How to modify the default port number of mysql

2. Open the my.ini file and modify the port. Ctrl F directly, search for port, as shown in the picture

How to modify the default port number of mysql

3306 is the default port number of mysql, change it to the port number you want, pay attention to two Modify everything; save and close after modifications are completed.

3. Restart the mysql service

Method to restart the mysql service:

win r start---run---cmd, stop the service: net stop mysql Restart the service: net start mysql

How to modify the default port number of mysql

Or manually restart

right-click my computer-->Manage-->Service And Application-->Service-->mysql-->Right click to restart

How to modify the default port number of mysql

The above is the detailed content of How to modify the default port number of mysql. 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!