Re: connect to MySql
| From: | Jasper Bryant-Greene | Date: | Sun, 23 Oct 2005 22:13:54 +0000 |
| Subject: | Re: connect to MySql | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-224525@lists.php.net to get a copy of this message | ||
On Fri, 2005-10-21 at 12:06 -0700, hassan mahdi wrote:
> 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.
MySQL 1? Really? That's a *very* old version, you should really
upgrade :)
> 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
If you're running PHP 5.0.5 then why is the directory called php-5.0.3?
> iv)i had copied the libmysql.dll in windows\system32 and windows\system i wrote the following
> code:
>
> [snip]
>
> 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.
Confirm that:
a) there exists a file php_mysql.dll in the directory D:\PHP\php-5.0.3
\ext
b) the php.ini file that you have been editing matches the one displayed
if you create a file containing <?php phpinfo(); ?> and view it with
your web browser
--
Jasper Bryant-Greene
General Manager
Album Limited
e: jasper@album.co.nz
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand