Fatal error: Call to undefined function mysql_connect()

win 下 php + mysql ,Fatal error: Call to undefined function mysql_connect() 出错解决方法。

将 php 目录下的四个 lib*.dll 文件拷贝到 system32 下面,编辑 win 目录下的 php.ini ,将 extension_dir = “../” 修改为 extension_dir = “d:phpext” (假设php安装目录是 d:php ),将 extension = php_mysql.dll 前 ;删去。

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s