Home > Backend Development > PHP Problem > How to modify php 3306 port

How to modify php 3306 port

藏色散人
Release: 2023-03-14 21:38:01
Original
2782 people have browsed it

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
Copy after login

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!

Related labels:
php
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