Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Linux, Apache, MySQL > MySQL Help

MySQL Help Post any question relating to MySQL here and hopefully someone can help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2004-12-08, 12:46 AM
Junior Member
 
Join Date: Nov 2004
Posts: 4
binarydumb
Default

Hello all.

I need a little help. I am installing on Win XP Pro, MySQL 4.1.7, PHP 5.0.2, and IIS 5.1 (comes with XP Pro). I can view plain HTML's through my browser but am having trouble with MySQL and PHP5 communicating.

When I execute "<?php phpinfo(); ?>" from my browser, I get the PHP version and info, etc. So I gather that my PHP5 installation is OK.

But when I try to connect to my SQL via PHP5 with:
"<?php $connection = mysql_connect( "localhost", "root", "pass+word" )
or die( "Sorry - unable to connect to MySQL" );
echo( "Congratulations - you connected to MySQL" );"

I get the following error:

" Sorry - unable to connect to MySQLPHP Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\WWW\mysqltest.php on line 11"

What am I doing wrong?

Help, please.........

:blink: :unsure:

Thanks in advance.

Tony
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2004-12-22, 02:54 AM
Senior Member
 
Join Date: Dec 2004
Posts: 199
strasm is an unknown quantity at this point
Default

If this is not solved there is some things you need to check. First of all let me say that I hate running php on windows, we do it at work on a server, but i didnt set it up. When installing PHP on Linux, it checks to see if you have mysql installed and will install it's self with support for mysql. In other words you must install mysql before you install php. To check to see if you have mysql support in your php installation, check the page genrated by phpinfo();.

Let me know if this is still an issue.
Reply With Quote
  #3 (permalink)  
Old 2005-01-07, 03:19 AM
Junior Member
 
Join Date: Jan 2005
Posts: 19
nicedreams242
Default

You need to make sure the MySQL client DLL libraries on your system. If you downloaded the ZIP files and not the self extractor. There will be a file named libmysql.dll place this in your SYSTEM32 directory.
Reply With Quote
  #4 (permalink)  
Old 2006-12-22, 12:55 AM
Junior Member
 
Join Date: Dec 2006
Posts: 1
littlesix is on a distinguished road
Default you need to run this command after create a new account

Please run this command after you create an account for your MySQL Server:
mysql> SET PASSWORD FOR 'USER_NAME_YOU_DEFINE'@'localhost' = OLD_PASSWORD('USER_PASSWORD_YOU_IDENTIFY');

Because the authentication protocol which used by MySQL4.1 and later version does not support the older client.
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:40 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.