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:
- Fatal error: Uncaught Error: Call to undefined function mysql_ Connect() problem solving
- Uncaught error: call to undefined function MySQL when building sqli lab environment with phpstudy_ Connect() error
- Call to undefined function mysql_ Connect() solution summary
- PHP connection to MySQL database error: call to undefined function MySQL_ connect()
- Uncaught Error: Call to undefined function mysql_select_db()
- Call to undefined function oci_ Connect() problem solving
- PHP connection PostgreSQL error call to undefined function PG_ connect()
- PHP error: call to undefined function curl_ init() window
- Fatal error: Call to a member function bind_param() on a non-object in
- PHP Fatal error: Call to a member function query() on a non-object in
- bug-JAVA call SAP function Connect to SAP gateway failed
- Navicat for MySQL error 1251 failed to connect to MySQL
- C ා connect mysql: fatal error encountered during command execution solution
- It can’t connect to local MySQL server through socket ‘/ tmp/ mysql.sock ‘(2) “;
- The MySQL service suddenly hangs up with the error message can’t connect to MySQL server on ‘localhost’ (10061)
- MySQL: if the remote connection using navicatip fails, prompt “is not allowed to connect to this MySQL server”
- MySQL Workbench Failed to Connect to MySQL at 127.0.0.1:3306 with user root Bad handshake
- php mysqli_ connect_ Error () and mysqli_ connect_ The difference of errno() function
- Solve the problem that dbvisualizer cannot connect to mysql8
- mysql problem solving: mysqladmin: connect to server at’localhost’ failed