Ask a Question related to PERL Modules, Design and Development.
-
Louis #1
Error In Using Perl To Connect To MySQL
OS: Windows XP SP2
Perl version : v5.8.7 built for MSWin32-x86-multi-thread
MySQL version : server: 5.0.21-community-nt
MySQL version : client: 5.0.11
Both Perl and MySQL work on my machine. I wanted to test using Perl to
manipulate MySQL data.
I installed DBI and DBD:mysql. And when I try testing to connect to
MySQL inside a perl script, I got the following error:
DBI connect('database=mymusic;host=localhost','root',. ..) failed: Client
does not support authentication protocol requested by server; consider
upgrading MySQL client at mydbi.pl line 24
My problems:
1) I installed MySQL. I couldn't find separate server and client
installations. So I am not sure how to "upgrade client".
Appreciate for any help. Thank you.
Louis Guest
-
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost'(10061)
I've had 4.1 installed for over a year and for all this time have been connecting successfully from Tomcat and Java stand-alone classes.. now just... -
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
When i try to start my mysql server, i get this error ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'... -
MySql connect error
I'm using CF MX7 (developer version) with MySQL 4.1.12 on Mac OSX Tiger. I have followed the instructions here:... -
Mysql_(p)connect error using PHP/Mysql
I am trying to get Dreamweaver to use PHP(5.0.3)/MySQL (4.1) and using an apache web server. Cool, BUT when i try to make my datrabase connection i... -
MySQL on non standard port yields error 111 on connect
I am trying to connect to MySQL running on a port other than 3306. Port 8123 in my case. I have tried this:... -
Sherm Pendley #2
Re: Error In Using Perl To Connect To MySQL
Louis <t051315@hotmail.com> writes:
No need to upgrade, just give 'root' an old-style password. Have a look:> OS: Windows XP SP2
> Perl version : v5.8.7 built for MSWin32-x86-multi-thread
> MySQL version : server: 5.0.21-community-nt
> MySQL version : client: 5.0.11
>
> Both Perl and MySQL work on my machine. I wanted to test using Perl
> to manipulate MySQL data.
>
> I installed DBI and DBD:mysql. And when I try testing to connect to
> MySQL inside a perl script, I got the following error:
>
> DBI connect('database=mymusic;host=localhost','root',. ..) failed:
> Client does not support authentication protocol requested by server;
> consider upgrading MySQL client at mydbi.pl line 24
<http://dev.mysql.com/doc/refman/5.1/en/old-client.html>
sherm--
--
Cocoa programming in Perl: [url]http://camelbones.sourceforge.net[/url]
Hire me! My resume: [url]http://www.dot-app.org[/url]
Sherm Pendley Guest
-
Louis #3
Re: Error In Using Perl To Connect To MySQL
Sherm Pendley wrote:
Hi Sherm,> Louis <t051315@hotmail.com> writes:
>>>> OS: Windows XP SP2
>> Perl version : v5.8.7 built for MSWin32-x86-multi-thread
>> MySQL version : server: 5.0.21-community-nt
>> MySQL version : client: 5.0.11
>>
>> Both Perl and MySQL work on my machine. I wanted to test using Perl
>> to manipulate MySQL data.
>>
>> I installed DBI and DBD:mysql. And when I try testing to connect to
>> MySQL inside a perl script, I got the following error:
>>
>> DBI connect('database=mymusic;host=localhost','root',. ..) failed:
>> Client does not support authentication protocol requested by server;
>> consider upgrading MySQL client at mydbi.pl line 24
> No need to upgrade, just give 'root' an old-style password. Have a look:
>
> <http://dev.mysql.com/doc/refman/5.1/en/old-client.html>
>
> sherm--
>
Thank you for your solution. It works. I am still puzzled by the
explanation though. I have never used MySQL pre 4.1. Whatever works.
Thank you very much.
Louis Guest
-
Sherm Pendley #4
Re: Error In Using Perl To Connect To MySQL
Louis <t051315@hotmail.com> writes:
Are you using ActiveState Perl? If so, and if you're using DBD::mysql> Sherm Pendley wrote:> Hi Sherm,>> Louis <t051315@hotmail.com> writes:
>>>> No need to upgrade, just give 'root' an old-style password. Have a>>> OS: Windows XP SP2
>>> Perl version : v5.8.7 built for MSWin32-x86-multi-thread
>>> MySQL version : server: 5.0.21-community-nt
>>> MySQL version : client: 5.0.11
>>>
>>> Both Perl and MySQL work on my machine. I wanted to test using Perl
>>> to manipulate MySQL data.
>>>
>>> I installed DBI and DBD:mysql. And when I try testing to connect to
>>> MySQL inside a perl script, I got the following error:
>>>
>>> DBI connect('database=mymusic;host=localhost','root',. ..) failed:
>>> Client does not support authentication protocol requested by server;
>>> consider upgrading MySQL client at mydbi.pl line 24
>> look:
>> <http://dev.mysql.com/doc/refman/5.1/en/old-client.html>
>> sherm--
>>
>
> Thank you for your solution. It works. I am still puzzled by the
> explanation though. I have never used MySQL pre 4.1. Whatever works.
from a PPM, then that's using whatever MySQL client library version that
ActiveState built it against. That could very well be a pre-4.1 version.
sherm--
--
Cocoa programming in Perl: [url]http://camelbones.sourceforge.net[/url]
Hire me! My resume: [url]http://www.dot-app.org[/url]
Sherm Pendley Guest
-
John Bokma #5
Re: Error In Using Perl To Connect To MySQL
Sherm Pendley <sherm@dot-app.org> wrote:
Yup, Sherm is right, it has to do with how the library talks with MySQL.> Louis <t051315@hotmail.com> writes:
>>>> Sherm Pendley wrote:>> Hi Sherm,>>> Louis <t051315@hotmail.com> writes:
>>>
>>>> OS: Windows XP SP2
>>>> Perl version : v5.8.7 built for MSWin32-x86-multi-thread
>>>> MySQL version : server: 5.0.21-community-nt
>>>> MySQL version : client: 5.0.11
>>>>
>>>> Both Perl and MySQL work on my machine. I wanted to test using Perl
>>>> to manipulate MySQL data.
>>>>
>>>> I installed DBI and DBD:mysql. And when I try testing to connect to
>>>> MySQL inside a perl script, I got the following error:
>>>>
>>>> DBI connect('database=mymusic;host=localhost','root',. ..) failed:
>>>> Client does not support authentication protocol requested by server;
>>>> consider upgrading MySQL client at mydbi.pl line 24
>>> No need to upgrade, just give 'root' an old-style password. Have a
>>> look:
>>> <http://dev.mysql.com/doc/refman/5.1/en/old-client.html>
>>> sherm--
>>>
>>
>> Thank you for your solution. It works. I am still puzzled by the
>> explanation though. I have never used MySQL pre 4.1. Whatever works.
> Are you using ActiveState Perl? If so, and if you're using DBD::mysql
> from a PPM, then that's using whatever MySQL client library version that
> ActiveState built it against. That could very well be a pre-4.1 version.
If you are going to use MySQL with other programs, like PHP, you might
bump into this issue more often. I am already considering to downgrade to
the MySQL 4.x branch since there might be other issues as well (for
example the handling of defaults IIRC).
--
John Bokma Freelance software developer
&
Experienced Perl programmer: [url]http://castleamber.com/[/url]
John Bokma Guest



Reply With Quote

