Test the PHP script to check the MYSQL character set and port. test the PHP script to check the MYSQL character set and port. ------ solution ------------------ Port: showvariableslikeport; character set: SHOWVARIABLESLIKEcharacter % & nbsp; output in php. ------ Solution -------- test MYSQL character set and port using a PHP script
Evaluate the PHP script to check whether MYSQL character set and port are online.
------ Solution --------------------
Port: show variables like 'port ';
Character Set: show variables like 'character %'
Output in php.
------ Solution --------------------
Can the port be detected?
Although show variables like 'port'
The port is obtained, but it can be executed only after being connected to the database.
When you do not know the port, you cannot connect to the database.
Unless you try it one by one, traverse the entire possible port number until you find the database service.