If this problem occurs, you can follow the following steps.
1. First of all, you should make sure that you are using the version of PHP. If it’s version 7.x, you should use mysqli_connect(), since mysqli_connect() has been dropped in version 7.x, or you can use PDO instead. The 5.x version of mysql_connect() and mysqli_connect() are both available.
2. If you don’t succeed in the first step, you can do the following:
Mysql> create extension=php_mysqli. DLL with extension=php_mysqli. DLL with extension=php_mysqli. DLL with extension=php_mysqli. DLL with extension=php_mysqli. DLL; ‘removed. Php_mysqli. DLL =php_mysqli. DLL = ‘; ‘and you find that there is no extension=php_mysql. DLL because it has been deprecated.)
(2) Then look for extension_dir = “ext”. ‘Remove it. 5.x is the same as 7.x.
(3) Then restart Apache.
1. First of all, you should make sure that you are using the version of PHP. If it’s version 7.x, you should use mysqli_connect(), since mysqli_connect() has been dropped in version 7.x, or you can use PDO instead. The 5.x version of mysql_connect() and mysqli_connect() are both available.
2. If you don’t succeed in the first step, you can do the following:
Mysql> create extension=php_mysqli. DLL with extension=php_mysqli. DLL with extension=php_mysqli. DLL with extension=php_mysqli. DLL with extension=php_mysqli. DLL; ‘removed. Php_mysqli. DLL =php_mysqli. DLL = ‘; ‘and you find that there is no extension=php_mysql. DLL because it has been deprecated.)
(2) Then look for extension_dir = “ext”. ‘Remove it. 5.x is the same as 7.x.
(3) Then restart Apache.
Read More:
- Call to undefined function mysql_ Connect() solution summary
- Fatal error: Uncaught Error: Call to undefined function mysql_ Connect() problem solving
- PHP connection to MySQL database error: call to undefined function MySQL_ connect()
- Uncaught error: call to undefined function MySQL when building sqli lab environment with phpstudy_ Connect() error
- Call to undefined function oci_ Connect() problem solving
- Connection between PHP 7.4 and MySQL (MariaDB) under Ubuntu (kali Linux)
- mysql ERROR 1025 (HY000): Error on rename of
- Win7 system build PHP + MySQL + Apache environment + deploy ECSHOP project
- Solution to MySQL Error 1130 problem
- The simplest way to completely unload cygwin under Windows
- mysql problem solving: mysqladmin: connect to server at’localhost’ failed
- It can’t connect to local MySQL server through socket ‘/ tmp/ mysql.sock ‘(2) “;
- MySQL Access denied
- The MySQL service suddenly hangs up with the error message can’t connect to MySQL server on ‘localhost’ (10061)
- Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.cj.jdb
- Error: MySQL shutdown unexpectedly
- A PHP Error was encountered Severity: Warning Message: mysqli::real_connect(): Headers and client
- The server just without updating PID file and can’t connect to local MySQL server through socket are solved
- After installing MySQL again under Linux, the solution of ‘MySQL module failed to start’ appears
- Mac installation opencv brew tap homebrew / Science