In linux, php cannot use mysqlFatal & nbsp; error: & nbsp; Call & nbsp; to & nbsp; undefined & nbsp; function & nbsp; mysql_connect () & nbsp; in & nbsp; varwwwhtmlmysql. php & nbsp; on & nbsp; line & nbsp; 7 reports such an error in php. mysql cannot be used by php in linux in ini
Fatal error: Call to undefined function mysql_connect () in/var/www/html/mysql. php on line 7
This error is reported.
Extension = php_mysql.dl in php. ini is also enabled.
------ Solution --------------------
Extension = php_mysql.dll
??
Dll is a linked file in windows. In linux, the so file should be used.
So, are you mistaken for the php package?
------ Solution --------------------
1. run the phpinfo () function to check whether mysql exists.
2. in linux, the extension for enabling mysql is extension = mysql. so.
Window is extension = mysql. dll, please make a difference.