Re: PHP and MySQL

"Kristen G. Thorson" <[email protected]>
Newsgroups gmane.comp.db.mysql.windows
Message-ID <[email protected]>
Don Lancaster wrote:

>Hi all - here's the story...  I installed MySQL 5 on my Windows XP computer
>and everything seems to work splendidly.  I then installed Apache, and that
>worked wonderfully also.  I added PHP5, and tested it with a simple "echo"
>statement and it worked marvelously.  In a rapture, I tried to connect to a
>MySQL database using mysql_connect and I got an error message that in effect
>said Apache didn't know what the heck the function was.  I remembered that
>PHP5 doesn't automatically include MySQL support, so I went to the PHP
>webpage and did the two things they stated I needed to do (put the php.ini
>file in the c:\windows directory, which it already was, and add it to the
>PATH environmental variable).  I also "uncommented" the extension
>php_mysql.dll in the php.ini file.  But it still doesn't work!  I'm at my
>wit's end.  What am I doing wrong?  One book says that I should put the
>libmysql.dll in the c:\windows directory, but I'm wondering if it should be
>in the extensions folder (c:\php\ext).  Is this correct?  Can someone give
>me some advice (besides "Use ODBC instead")?  
> 
>  
>

This is more of a PHP question.  Ask on that list for more help.

I believe you actually want the extension dir in PATH, not php.ini - you 
shouldn't need to bother placing the mysql dll in the windows directory 
if the extension dir (where the dll is) is in the PATH.  Also, do a 
phpinfo() and make sure that the path it give to php.ini is where you 
think it is.  Make sure the php_mysql.dll is in the extension directory, 
and that you have the correct path for the extension directory in 
php.ini.  (By the way, I believe you want the mysqli library.  The mysql 
library is for versions earlier than 4.1.)


kgt


-- 
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe:    http://lists.mysql.com/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.