Mysql debugging error: please help mysql installation and testing with Fatal & nbsp; error: & nbsp; Call & nbsp; to & nbsp; undefined & nbsp; function & nbsp; mysql_connect () & nbsp; in & nbsp; C: myenvapachehtdocstest. php & nbsp; on & nbsp; line & mysql debugging error: please help me
Mysql installation test error
Fatal error: Call to undefined function mysql_connect () in C: \ myenv \ apache \ htdocs \ test. php on line 3
1: I checked that mysql has been started.
Extension = php_mysql.dll
The semicolon before extension = php_mysqli.dll has been removed.
2: The path has been changed.
Extension_dir = "C:/myenv/php/ext"
3: php5ts. dll
The libmysql. dll file has been pasted to the system under WINDOWS.
4: The php module of apache has been loaded.
LoadModule php5_module C:/myenv/php/php5apache2_2.dll
PHPIniDir "C:/myenv/php"
AddType application/x-httpd-php. php. phtml
5 Test Code
$ Conn = mysql_connect ("localhost", "root", "1985032468 root ");
If ($ conn ){
Echo "succeeded in linking to the database ";
} Else {
Echo "failed to connect to database ";
}
?>
Thank you !!! Zero !!!
Mysql apache php
Share:
------ Solution --------------------
Phpinfo (); check whether the php. ini File Loaded by Loaded Configuration File is your modified php. ini.
After these modifications, restart the server.