Some spaces are not all-purpose spaces. If you buy one and are not sure whether it supports the database, many webmasters will regret it. You cannot use dynamic websites without database support. Then these two provide a test method for everyone to test whether the space supports mysql database
1. Create a new notepad locally and enter the content in the notepad
<?php phpinfo(); ?>
Then save the notepad.
#2. Then rename the new notepad to ceshi.php.
3. Then use ftp software to log in to the backend of the web space and upload the ceshi.php file to the web space.
4. Then use the web to access the ceshi.php file through the browser.
5. Search for mysql in the browsing results and look at the status display of this port in MySQL Support (mysql excuse) Whether it is enabled.
Notes
The first step is to write code When writing, it must be complete and pay attention to the symbols, which are all in English. Don’t forget to divide it up.
The second step, when renaming, be sure to change the file extension to .php suffix
The above is the detailed content of How to test whether the space supports mysql database?. For more information, please follow other related articles on the PHP Chinese website!