Wampserver modifies the mysql port number and starts PHP

Source: Internet
Author: User
Open my. ini, find the following, and change 3306 to 3307 [client] # passwordyour_passwordport3306sockettmpmysql.sockdefault-character-setutf8 [wampmysqld] port3306sockettmpmysql. sockkey_buffer16Mmax_allowed_packet1M [mys

Open my. ini, find the following places and change 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 = 16 M max_allowed_packet = 1 M [mys

Open my. ini, find the following places, and change 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 = 16 M
Max_allowed_packet = 1 M

[Mysqlhotcopy]
Interactive-timeout
[Mysqld]
Port = 3306

After the modification, open php. ini and find mysqli. default_port = 3306, and change the port number to 3307.

After completing the preceding changes, start the service!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.