-
I've seen some of them say that you want to install MySQL PHP extensions, and I'm having the same problem
-
The general prompt header is not found is the lack of development package, mysql has a separate client installed under linux, the server and the development package 3 to install, since it is rpm installation, ** mysql development package, rpm -ivh installation on the line.
-
If you do not need to perform database operations, you do not need to install MySQL. PHP's MySQL extension is a library that PHP uses to operate MySQL databases, and if you need to perform database operations, you need to have not only a library, but also a database.
-
This is a PHP extension.
You take a look at where the file for your php settings is.
This is usually in the Windows directory or somewhere else, depending on how your PHP is configured.
You can create your own PHP file and write a sentence in it:
echo phpinfo();
The location of the file found.
And then this file.
Typically: extension=pdo mysql
Then put the front one; Remove, and then restart the IIS or Apache server, if there is no error, it is loaded successfully, and curl is also a similar operation.
-
The PDO extension defines a lightweight, consistent interface for PHP access to databases, providing a data access abstraction layer so that queries and data can be fetched through consistent functions, regardless of the database used.
In some PHP management systems you need to enable PDO and PDO MySQL extensions, and the method is very simple:
1. Locate the file.
The final configuration of these two lines reads as follows:
extension=php_
extension=php_pdo_
After restarting Apache or IIS, check whether it is enabled in the phpinfo function.
-
Open the configuration file, find extension=php and extension=php pdo, and remove the front"; ", and then save it, and restart the server on it.