Re: MySQL on Windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



S. Buffn wrote:
Hello,

I have encountered the problem with running MySQL Server 5.0 with PHP 5 and
Apache2 on Windows XP.
Everrything seems to be ok, so  Apacheh is running, also together with php.
If I run php -m it shows the library for MySQL is included. Even if I run
php.exe -f index.php
it run in console.

But as for web browser it shows error:

PHP is running
Fatal error: Call to undefined function mysql_connect() in C:\Program
Files\Apache Group\Apache2\htdocs\index.php on line 6

As for the php.ini file the lines regarding this are:

extension_dir="C:\php\ext\"
...
extension=php_mysql.dll

Please if someone knows where did I go wrong let me know. Thanks a lot for
any hints.

Do you have MySQL running on windows?
Are you sure you have php_mysql.dll and not php_mysqli.dll loaded. They have different commands.
What shows in phpinfo against mysql?
Just a few ideas - I don't use mysql myself but most of the same rules apply to ever database engine ;)

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux