Home  >  Article  >  Backend Development  >  How to modify php 3306 port

How to modify php 3306 port

藏色散人
藏色散人Original
2022-01-20 09:47:192703browse

How to modify php 3306 port: 1. Find and open the my.ini file; 2. Find the "port= 3306" part; 3. Modify 3306 to 3307.

How to modify php 3306 port

The operating environment of this article: Windows 7 system, wampserver version 3.1.7, DELL G3 computer

How to modify the php 3306 port?

wampserver modify the mysql port number and start PHP

Open my.ini, find the following places, modify 3306 to 3307

[client]
#password    = your_password
port        = 3306
socket        = /tmp/mysql.sock
default-character-set=utf8
[wampmysqld]
port        = 3306
socket        = /tmp/mysql.sock
key_buffer = 16M
max_allowed_packet = 1M
[mysqlhotcopy]
interactive-timeout
[mysqld]
port=3306

After the modification is completed, open php. ini finds mysqli.default_port = 3306, and changes the port number to 3307.

After completing the above modifications, start the service!

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to modify php 3306 port. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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