MySQL Installation test error
Fatal error:call to undefined function mysql_connect () inch C:\myenv\apache\htdocs\test.php on line 3
1: I checked that MySQL has been started
Extension=php_mysql.dll
Extension=php_mysqli.dll front semicolon has been removed
2: Path has changed
Extension_dir = "C:/myenv/php/ext"
3:php5ts.dll
Libmysql.dll file has been pasted under system under Windows
The PHP module for 4: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", "1985032468root");
if ($conn) {
echo "Linked to database Success";
}else{
echo "link database failed";
}
?>
Please enlighten!!! Grateful!!!
Reply to discussion (solution)
Fatal error:call to undefined function mysql_connect ()
That's very clear! You did not load the php_mysql extension
Add a piece to the httpd.conf
LoadFile "C:/myenv/php/php5ts.dll"
Look
Restart Apache after the same error Ah .... What's the problem?
Phpinfo (); See if the Loaded Configuration File loaded php.ini is the php.ini you modified.
These changes are done to restart the server.
Hit!!! Phpinfo () shows how c:/windows solves the great God.
jordan102
Mix it up.
Big God one words hit, now connected success. Grateful!!!
.........