|
Posted by Andy Hassall on 08/22/06 23:44
On 21 Aug 2006 09:27:04 -0700, "chrisv" <nickadeemus2002@gmail.com> wrote:
>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!
>
>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".
That's misinformation; the "old" mysql extension works fine on PHP5. You are
not forced to use mysqli.
You also have to spell extension correctly, and use an equals sign, not more
underscores.
extension=php_mysql.dll
Or:
extension=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.
No, don't copy things to windows/system, use the PATH environment variable.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
[Back to original message]
|