Reply to Re: Cannot connect to MySQL through php on WindowsXP

Your name:

Reply:


Posted by chrisv on 08/21/06 16:27

php-newbe wrote:
> I can conntect to mySQL thouth the mySQL monitor, but I cannot access
> it thorugh php script.
>
> After PHP5 installation I had uncommented "extention_php_mysql.dll" in
> php.ini file.
> I copied libmysql.dll from MySQL installation file to php directory
> overriding the pre-installed file.
> I also Edit the PATH in the system path = ;c:/php
>
> I still cannot access mySQL!
>
> Please, help
> THank you
> Vera

Some quick suggestions:

1. you commented "extension_php_mysql.dll". that doesn't help with
PHP5. version 5 utilizes the msyqli.dll. you need to create a line in
php.ini that says "extenstion_php_mysqli.dll".

2. make sure the path to php 'extensions' is correct in the php.ini
file.

3. if you downloaded php5 from php.net, there are two dlls for mysql.
one is the the 'mysql.dll' and the other is 'mysqli.dll'. make sure
you have a copy of the mysqli.dll in your C:/windows/system directory.


just some ideas

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация