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]
|