Home > php教程 > php手册 > wampserver修改mysql端口号并启动PHP

wampserver修改mysql端口号并启动PHP

WBOY
Release: 2016-06-06 19:51:06
Original
1767 people have browsed it

打开my.ini,找到以下几处地方,修改3306为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 [mys

打开my.ini,找到以下几处地方,修改3306为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

修改完成后,打开php.ini找到mysqli.default_port = 3306,并将端口号修改为3307.

完成以上修改后,启动服务即可!

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template