Re: connect to MySql

From: Date: Sun, 23 Oct 2005 18:53:40 +0000
Subject: Re: connect to MySql
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-224521@lists.php.net to get a copy of this message
I have windows XP sevice pack 1 and 2, PHPv5.0.5, Mysql v1. I am working in web design. I am unable to connect to the mysql server. Althought my php files running fine and my mysql server is also running fine. i) i had changed the php.ini-dist file to php.ini. ii)i uncommented the extensions of php_mysql.dll in php.ini file iii)i set the extensions_dir to extension_dir = "D:\PHP\php-5.0.3\ext\" in php.ini file iv)i had copied the libmysql.dll in windows\system32 and windows\system but after all these i am still getting the error Fatal error: Call to undefined function mysql_connect() in D:\PHP\teknohub\new.php on line 14 please help me to solve this problem out.
You haven't successfully enabled MySQL support. You can confirm this by running a phpinfo() script. Did you restart Apache after editing the php.ini file? And are you certain you are editing the _right_ php.ini file (the one indicated when you run phpinfo())? Larry

« previous php.general (#224521) next »