High score !! Php, apache, and mysql configuration problems in win7 are explained first. I have installed these three, and I have tried phpinfo (). but when I connect to the database, when running on the browser, Fatalerror: Calltoundefinedfunctionmysql_connect () occurs. I am in urgent need of it. ------ solution --------------- High Score !! Php, apache, and mysql configuration problems in win7
First, I have installed all three of them, and I have tried it with phpinfo (), but when I connect to the database, I will run it on the browser, fatal error: Call to undefined function mysql_connect () is in urgent use,
------ Solution --------------------
Can I find mysql or mysqli in phpinfo?
------ Solution --------------------
In a hurry, install an xampp.
------ Solution --------------------
Paste all the error messages ..
------ Solution --------------------
I should describe more
------ Solution --------------------
Integration Environment
Xampp
Appserv can also be used.
You need to use this to check if php. ini does not comment on mysql.
Extension = php_mysql.dll
Extension = php_mysqli.dll mainly includes the following two items:
Is mysql output by phpinfo?
If not, try again. I think this is the most possible.
Set 1, x: \ php \ ext \ php_mysql.dll 2, x: \ php \ libmysql. dll
These two files are copied to the c: \ windows folder.
------ Solution --------------------
You can directly install XAMPP. this is integrated and does not need to be manually configured. it is very convenient and will not cause such a problem. I am using this, and on win7, contact me if necessary.
------ Solution --------------------
Open the php. ini file and enable these two items:
Extension = php_mysql.dll
Extension = php_mysqli.dll
If not, install XAMPP directly. this is integrated and does not need to be manually configured.
------ Solution --------------------
You said that phpinfo () is normal. at least the block description of php apache and mysql should be provided above. it is normal if there is data.
Mysql_connect () is not defined, that is, mysql is not associated. do you have to unbind the extended extension as mentioned above, or restart apache?
Check whether Port netstat-an 3306 is enabled. if Port netstat-an is not enabled, mysql is not started.
The integration package is fast and convenient. I also recommend the integration package.
Install xampp, phpNow, and configure the environment within three minutes
The premise is: you have to unmount your installed items because the ports may conflict and may even fail to run.
------ Solution --------------------
This error indicates that the mysql_connect function is not found in php, but you need to use this function now, so an error is returned.
Are you sure there are mysql module extensions in phpinfo? If no, open the php. ini file and set the following two items:
; Extension = php_mysql.dll
; Extension = php_mysqli.dll
To:
Extension = php_mysql.dll
Extension = php_mysqli.dll
In addition
Extension_dir = "C: \ Program Files \ ApacheDir \ phpdir \ ext \";
Make sure that your extension_dir path is correct,
Restart apache and check that mysql extensions are available in phpinfo.
------ Solution --------------------
Upstairs !!!!!!! 1