Home > Article > Backend Development > How to modify php 3306 port
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.
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!