Click here to get back home

newbie: configuration of MySQL in PHP5 (Windows XP)

 HomeNewsGroups | Search

comp.lang.php - PHP programming language discussions 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
newbie: configuration of MySQL in PHP5 (Windows XP) Andrzej Magdziarz 03-15-2008
Posted by Andrzej Magdziarz on March 15, 2008, 11:16 am
Please log in for more thread options
Hello,
I have installed and configured Apache, PHP5 and MySQL in Windows XP. I need
to configure PHP to use MySQL. So far I added to php.ini:

extension_dir = "c:\windows;c:\Program Files\php\ext"
extension=php_mysql.dll
extension=php_mysqli.dll

but it's not enough (I suspect) because when I open phpinfo.php I see no
information about MySQL.
What else I should do? Please help.
/RAM/



Posted by Rik Wasmus on March 15, 2008, 5:49 pm
Please log in for more thread options
On Sat, 15 Mar 2008 16:16:11 +0100, Andrzej Magdziarz =


show/hide quoted text
I =

show/hide quoted text
no
show/hide quoted text

php.net/mysql sais:
A file named libmysql.dll is included in the Windows PHP distribution an=
d =

in order for PHP to talk to MySQL this file needs to be available to the=
=

Windows systems PATH. See the FAQ titled "How do I add my PHP directory =
to =

the PATH on Windows" for information on how to do this. Although copying=
=

libmysql.dll to the Windows system directory also works (because the =

system directory is by default in the system's PATH), it's not recommend=
ed.

So, locate libmysql.dll and make sure it's available in the PATH. Settin=
g =

the extension_dir will NOT solve it, you really have to hat it in the PA=
TH.
-- =

Rik Wasmus

Posted by Jerry Stuckle on March 15, 2008, 11:05 pm
Please log in for more thread options
Andrzej Magdziarz wrote:
show/hide quoted text
Extension directory is a single directory, not a list. And you must
still have the MySQL client installed and accessible to PHP (i.e.
libraries in the PATH or otherwise accessible and security set to allow
access).

And ensure you're modifying the correct php.ini file - see what
phpinfo() shows PHP is looking for for your php configuration files.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================


Posted by AnrDaemon on April 6, 2008, 11:28 pm
Please log in for more thread options
Greetings, Andrzej Magdziarz.
In reply to Your message dated Saturday, March 15, 2008, 19:16:11,

show/hide quoted text

show/hide quoted text

show/hide quoted text

Not "else", but if You're using PHP as an Apache module, You can preload
required libraries using LoadFile directive in Apache configuration.
And make sure You're using right library, in case of
http://bugs.php.net/bug.php?id=41350


--


Posted by Jerry Stuckle on April 7, 2008, 9:03 am
Please log in for more thread options
AnrDaemon wrote:
show/hide quoted text

There is no need to preload the MySQL library. And even if he did, it
would not solve this problem.



--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================


Similar ThreadsPosted
mysql / php5 configuration October 17, 2007, 11:29 pm
PHP5, Windows Installer and MySQL December 7, 2004, 7:49 pm
how to configure PHP5 to use MySQL in Windows XP February 20, 2008, 5:09 am
PHP5 installation with MySQL, Windows 2000 March 22, 2005, 7:21 pm
PHP5 installation with MySQL, Windows 2000 March 22, 2005, 7:30 pm
Enable soap, mysql PHP5 windows xp March 12, 2006, 2:36 am
PHP5.05, Mysql4.1, Apache on Windows XP - cant get php to talk to mysql October 2, 2005, 12:24 pm
PHP5 Java Bridge Configuration March 31, 2005, 8:43 pm
Is there PHP5 for 64-bit Windows source? July 19, 2005, 10:23 am
"Invalid Access to Memory Location" - PHP and MySQL Configuration Problem September 9, 2007, 8:00 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy