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!