Error while connecting to data base.
Error while connecting to data base.
am 08.05.2008 15:13:43 von mohammed.mustafa
------_=_NextPart_001_01C8B10D.571A3A95
Content-Type: text/plain;
charset="us-ascii"
content-transfer-encoding: quoted-printable
Hi,
I am new to perl and database and trying to connect to the data base,
but getting the below error.
And perl version I am using is 5.8.5.
[wipcafe@testbrix Test]$ perl data.pl
DBI connect('database=3Dmustafa;host=3D10.207.36.108','root',... ) failed:
Client does not support authentication protocol requested by server;
consider upgrading MySQL client at data.pl line 7
can't connect: Client does not support authentication protocol requested
by server; consider upgrading MySQL client at data.pl line 7.
And please find the code here........
use DBI;
# $user =3D "mohammed";
# $pass =3D "mohammed";
#my $dbh =3D DBI->connect
("dbi:mysql:uitest;host=3D10.207.36.119",$user,$pass) or
my $dbh =3D
DBI->connect("DBI:mysql:database=3Dmustafa;host=3D10.207.36. 108","root",
"wipcafe")or
die "can't connect: $DBI::errstr";
# my $dbh =3D
DBI->connect("DBI:mysql:database=3Duitest;host=3D10.207.36.1 19",$user,$pass)
or
# my $dbh =3D
DBI->connect("DBI:mysql:database=3Duitest;host=3Dlocalhost", $user,$pass) or
# die "can't connect: $DBI::errstr";
$dbh->do ("DROP all");
$dbh->disconnect ();
end DBI;
Please guide me for that error. I am very new to perl and data base, so
even basic things will be welcome.
While installing DBI, only I able to install DBI and not other two
modules Data::ShowTable & DBD::mysql
And the error while installing is as below.
The module Data::ShowTable isn't available on CPAN.
Thanks,
Mustafa
Please do not print this email unless it is absolutely necessary. =0A=
=0A=
The information contained in this electronic message and any attachments to=
this message are intended for the exclusive use of the addressee(s) and may=
contain proprietary, confidential or privileged information. If you are not=
the intended recipient, you should not disseminate, distribute or copy this=
e-mail. Please notify the sender immediately and destroy all copies of this=
message and any attachments. =0A=
=0A=
WARNING: Computer viruses can be transmitted via email. The recipient should=
check this email and any attachments for the presence of viruses. The compa=
ny accepts no liability for any damage caused by any virus transmitted by th=
is email. =0A=
=0A=
www.wipro.com
------_=_NextPart_001_01C8B10D.571A3A95--
Re: Error while connecting to data base.
am 08.05.2008 15:41:51 von Patrick Galbraith
Mohammed,
What version of MySQL are you running?
regards,
Patrick
mohammed.mustafa@wipro.com wrote:
>Hi,
>
> I am new to perl and database and trying to connect to the data base,
>but getting the below error.
>
>And perl version I am using is 5.8.5.
>
>
>
>[wipcafe@testbrix Test]$ perl data.pl
>
>DBI connect('database=mustafa;host=10.207.36.108','root',...) failed:
>Client does not support authentication protocol requested by server;
>consider upgrading MySQL client at data.pl line 7
>
>can't connect: Client does not support authentication protocol requested
>by server; consider upgrading MySQL client at data.pl line 7.
>
>
>
>And please find the code here........
>
>
>
> use DBI;
>
>
>
> # $user = "mohammed";
>
> # $pass = "mohammed";
>
> #my $dbh = DBI->connect
>("dbi:mysql:uitest;host=10.207.36.119",$user,$pass) or
>
> my $dbh =
>DBI->connect("DBI:mysql:database=mustafa;host=10.207.36.108 ","root",
>"wipcafe")or
>
> die "can't connect: $DBI::errstr";
>
> # my $dbh =
>DBI->connect("DBI:mysql:database=uitest;host=10.207.36.119" ,$user,$pass)
>or
>
> # my $dbh =
>DBI->connect("DBI:mysql:database=uitest;host=localhost",$us er,$pass) or
>
># die "can't connect: $DBI::errstr";
>
> $dbh->do ("DROP all");
>
> $dbh->disconnect ();
>
>
>
>end DBI;
>
>
>
>Please guide me for that error. I am very new to perl and data base, so
>even basic things will be welcome.
>
>
>
>While installing DBI, only I able to install DBI and not other two
>modules Data::ShowTable & DBD::mysql
>
>And the error while installing is as below.
>
>
>
>The module Data::ShowTable isn't available on CPAN.
>
>
>
>Thanks,
>
>Mustafa
>
>
>
>
>Please do not print this email unless it is absolutely necessary.
>
>The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
>
>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
>
>www.wipro.com
>
>
>
--
Patrick Galbraith, Senior Programmer
Grazr - Easy feed grazing and sharing
http://www.grazr.com
Satyam Eva Jayate - Truth Alone Triumphs
Mundaka Upanishad
--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org
RE: Error while connecting to data base.
am 08.05.2008 15:44:48 von mohammed.mustafa
Hi Patrick,
I am using the same version like 5.8.6 which I downloaded from
cpan.org.
Thanks for your kind attention.
Thanks,
Mustafa
-----Original Message-----
From: Patrick Galbraith [mailto:patg@grazr.com]
Sent: Thursday, May 08, 2008 7:12 PM
To: Mohammed Mustafa (WT01 - Testing Services)
Cc: perl@lists.mysql.com
Subject: Re: Error while connecting to data base.
Mohammed,
What version of MySQL are you running?
regards,
Patrick
mohammed.mustafa@wipro.com wrote:
>Hi,
>
> I am new to perl and database and trying to connect to the data base,
>but getting the below error.
>
>And perl version I am using is 5.8.5.
>
>
>
>[wipcafe@testbrix Test]$ perl data.pl
>
>DBI connect('database=3Dmustafa;host=3D10.207.36.108','root',... ) failed:
>Client does not support authentication protocol requested by server;
>consider upgrading MySQL client at data.pl line 7
>
>can't connect: Client does not support authentication protocol
requested
>by server; consider upgrading MySQL client at data.pl line 7.
>
>
>
>And please find the code here........
>
>
>
> use DBI;
>
>
>
> # $user =3D "mohammed";
>
> # $pass =3D "mohammed";
>
> #my $dbh =3D DBI->connect
>("dbi:mysql:uitest;host=3D10.207.36.119",$user,$pass) or
>
> my $dbh =3D
>DBI->connect("DBI:mysql:database=3Dmustafa;host=3D10.207.36 .108","root",
>"wipcafe")or
>
> die "can't connect: $DBI::errstr";
>
> # my $dbh =3D
>DBI->connect("DBI:mysql:database=3Duitest;host=3D10.207.36. 119",$user,$pass
)
>or
>
> # my $dbh =3D
>DBI->connect("DBI:mysql:database=3Duitest;host=3Dlocalhost" ,$user,$pass) or
>
># die "can't connect: $DBI::errstr";
>
> $dbh->do ("DROP all");
>
> $dbh->disconnect ();
>
>
>
>end DBI;
>
>
>
>Please guide me for that error. I am very new to perl and data base,
so
>even basic things will be welcome.
>
>
>
>While installing DBI, only I able to install DBI and not other two
>modules Data::ShowTable & DBD::mysql
>
>And the error while installing is as below.
>
>
>
>The module Data::ShowTable isn't available on CPAN.
>
>
>
>Thanks,
>
>Mustafa
>
>
>
>
>Please do not print this email unless it is absolutely necessary.
>
>The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
addressee(s) and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately and destroy all copies of this message and any attachments.
>
>WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.
>
>www.wipro.com
>
>
>
--
Patrick Galbraith, Senior Programmer
Grazr - Easy feed grazing and sharing
http://www.grazr.com
Satyam Eva Jayate - Truth Alone Triumphs
Mundaka Upanishad
Please do not print this email unless it is absolutely necessary. =0A=
=0A=
The information contained in this electronic message and any attachments to=
this message are intended for the exclusive use of the addressee(s) and may=
contain proprietary, confidential or privileged information. If you are not=
the intended recipient, you should not disseminate, distribute or copy this=
e-mail. Please notify the sender immediately and destroy all copies of this=
message and any attachments. =0A=
=0A=
WARNING: Computer viruses can be transmitted via email. The recipient should=
check this email and any attachments for the presence of viruses. The compa=
ny accepts no liability for any damage caused by any virus transmitted by th=
is email. =0A=
=0A=
www.wipro.com
--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=3Dgcdmp-msql-mysql-modules @m.gmane.org
Re: Error while connecting to data base.
am 08.05.2008 16:01:24 von Patrick Galbraith
mohammed.mustafa@wipro.com wrote:
>Hi Patrick,
>
> I am using the same version like 5.8.6 which I downloaded from
>cpan.org.
>Thanks for your kind attention.
>
>
Mohammed,
What I mean is the database server - what version of MySQL are you using ?
If you do:
mysql -u mohammed -p mohammed -h 10.207.36.119 uitest
then:
mysql>select version();
What do you get?
Also do this:
perl -e 'use DBI; print "$DBI::VERSION\n"'
perl -e 'use DBD::mysql; print "$DBD::mysql::VERSION\n"'
Also:
locate libmysqlclient
Thanks,
Patrick
>Thanks,
>Mustafa
>
>
>-----Original Message-----
>From: Patrick Galbraith [mailto:patg@grazr.com]
>Sent: Thursday, May 08, 2008 7:12 PM
>To: Mohammed Mustafa (WT01 - Testing Services)
>Cc: perl@lists.mysql.com
>Subject: Re: Error while connecting to data base.
>
>Mohammed,
>
>What version of MySQL are you running?
>
>regards,
>
>Patrick
>
>mohammed.mustafa@wipro.com wrote:
>
>
>
>>Hi,
>>
>> I am new to perl and database and trying to connect to the data base,
>>but getting the below error.
>>
>>And perl version I am using is 5.8.5.
>>
>>
>>
>>[wipcafe@testbrix Test]$ perl data.pl
>>
>>DBI connect('database=mustafa;host=10.207.36.108','root',...) failed:
>>Client does not support authentication protocol requested by server;
>>consider upgrading MySQL client at data.pl line 7
>>
>>can't connect: Client does not support authentication protocol
>>
>>
>requested
>
>
>>by server; consider upgrading MySQL client at data.pl line 7.
>>
>>
>>
>>And please find the code here........
>>
>>
>>
>>use DBI;
>>
>>
>>
>> # $user = "mohammed";
>>
>> # $pass = "mohammed";
>>
>> #my $dbh = DBI->connect
>>("dbi:mysql:uitest;host=10.207.36.119",$user,$pass) or
>>
>> my $dbh =
>>DBI->connect("DBI:mysql:database=mustafa;host=10.207.36.10 8","root",
>>"wipcafe")or
>>
>> die "can't connect: $DBI::errstr";
>>
>># my $dbh =
>>DBI->connect("DBI:mysql:database=uitest;host=10.207.36.119 ",$user,$pass
>>
>>
>)
>
>
>>or
>>
>># my $dbh =
>>DBI->connect("DBI:mysql:database=uitest;host=localhost",$u ser,$pass) or
>>
>># die "can't connect: $DBI::errstr";
>>
>> $dbh->do ("DROP all");
>>
>> $dbh->disconnect ();
>>
>>
>>
>>end DBI;
>>
>>
>>
>>Please guide me for that error. I am very new to perl and data base,
>>
>>
>so
>
>
>>even basic things will be welcome.
>>
>>
>>
>>While installing DBI, only I able to install DBI and not other two
>>modules Data::ShowTable & DBD::mysql
>>
>>And the error while installing is as below.
>>
>>
>>
>>The module Data::ShowTable isn't available on CPAN.
>>
>>
>>
>>Thanks,
>>
>>Mustafa
>>
>>
>>
>>
>>Please do not print this email unless it is absolutely necessary.
>>
>>The information contained in this electronic message and any
>>
>>
>attachments to this message are intended for the exclusive use of the
>addressee(s) and may contain proprietary, confidential or privileged
>information. If you are not the intended recipient, you should not
>disseminate, distribute or copy this e-mail. Please notify the sender
>immediately and destroy all copies of this message and any attachments.
>
>
>>WARNING: Computer viruses can be transmitted via email. The recipient
>>
>>
>should check this email and any attachments for the presence of viruses.
>The company accepts no liability for any damage caused by any virus
>transmitted by this email.
>
>
>>www.wipro.com
>>
>>
>>
>>
>>
>
>
>
>
--
Patrick Galbraith, Senior Programmer
Grazr - Easy feed grazing and sharing
http://www.grazr.com
Satyam Eva Jayate - Truth Alone Triumphs
Mundaka Upanishad
--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org
RE: Error while connecting to data base.
am 08.05.2008 16:15:18 von mohammed.mustafa
Hi Patrick,
Please find the requested message as below, and help me how to
proceed.
[wipcafe@testbrix Test]$ mysql -u mohammed -p mohammed -h
0.207.36.119 uitest
mysql Ver 14.12 Distrib 5.0.22, for unknown-linux-gnu (x86_64) using
readline 5.0
Copyright (C) 2002 MySQL AB
[wipcafe@testbrix Test]$ select version();
-bash: syntax error near unexpected token `('
[wipcafe@testbrix Test]$ perl -e 'use DBI; print "$DBI::VERSION\n"'
1.604
[wipcafe@testbrix Test]$ perl -e 'use DBD::mysql; print
"$DBD::mysql::VERSION\n"'
2.9004
[wipcafe@testbrix Test]$ locate libmysqlclient
warning: locate: could not open database: /var/lib/slocate/slocate.db:
No such file or directory
warning: You need to run the 'updatedb' command (as root) to create the
database.
Please have a look at /etc/updatedb.conf to enable the daily cron job.
Regards,
Mustafa
-----Original Message-----
From: Patrick Galbraith [mailto:patg@grazr.com]
Sent: Thursday, May 08, 2008 7:31 PM
To: Mohammed Mustafa (WT01 - Testing Services)
Cc: perl@lists.mysql.com
Subject: Re: Error while connecting to data base.
mohammed.mustafa@wipro.com wrote:
>Hi Patrick,
>
> I am using the same version like 5.8.6 which I downloaded from
>cpan.org.
>Thanks for your kind attention.
>
>
Mohammed,
What I mean is the database server - what version of MySQL are you
using ?
If you do:
mysql -u mohammed -p mohammed -h 10.207.36.119 uitest
then:
mysql>select version();
What do you get?
Also do this:
perl -e 'use DBI; print "$DBI::VERSION\n"'
perl -e 'use DBD::mysql; print "$DBD::mysql::VERSION\n"'
Also:
locate libmysqlclient
Thanks,
Patrick
>Thanks,
>Mustafa
>
>
>-----Original Message-----
>From: Patrick Galbraith [mailto:patg@grazr.com]
>Sent: Thursday, May 08, 2008 7:12 PM
>To: Mohammed Mustafa (WT01 - Testing Services)
>Cc: perl@lists.mysql.com
>Subject: Re: Error while connecting to data base.
>
>Mohammed,
>
>What version of MySQL are you running?
>
>regards,
>
>Patrick
>
>mohammed.mustafa@wipro.com wrote:
>
>
>
>>Hi,
>>
>> I am new to perl and database and trying to connect to the data base,
>>but getting the below error.
>>
>>And perl version I am using is 5.8.5.
>>
>>
>>
>>[wipcafe@testbrix Test]$ perl data.pl
>>
>>DBI connect('database=3Dmustafa;host=3D10.207.36.108','root',... ) failed:
>>Client does not support authentication protocol requested by server;
>>consider upgrading MySQL client at data.pl line 7
>>
>>can't connect: Client does not support authentication protocol
>>
>>
>requested
>
>
>>by server; consider upgrading MySQL client at data.pl line 7.
>>
>>
>>
>>And please find the code here........
>>
>>
>>
>>use DBI;
>>
>>
>>
>> # $user =3D "mohammed";
>>
>> # $pass =3D "mohammed";
>>
>> #my $dbh =3D DBI->connect
>>("dbi:mysql:uitest;host=3D10.207.36.119",$user,$pass) or
>>
>> my $dbh =3D
>>DBI->connect("DBI:mysql:database=3Dmustafa;host=3D10.207.3 6.108","root",
>>"wipcafe")or
>>
>> die "can't connect: $DBI::errstr";
>>
>># my $dbh =3D
>>DBI->connect("DBI:mysql:database=3Duitest;host=3D10.207.36 .119",$user,$pas
s
>>
>>
>)
>
>
>>or
>>
>># my $dbh =3D
>>DBI->connect("DBI:mysql:database=3Duitest;host=3Dlocalhost ",$user,$pass)
or
>>
>># die "can't connect: $DBI::errstr";
>>
>> $dbh->do ("DROP all");
>>
>> $dbh->disconnect ();
>>
>>
>>
>>end DBI;
>>
>>
>>
>>Please guide me for that error. I am very new to perl and data base,
>>
>>
>so
>
>
>>even basic things will be welcome.
>>
>>
>>
>>While installing DBI, only I able to install DBI and not other two
>>modules Data::ShowTable & DBD::mysql
>>
>>And the error while installing is as below.
>>
>>
>>
>>The module Data::ShowTable isn't available on CPAN.
>>
>>
>>
>>Thanks,
>>
>>Mustafa
>>
>>
>>
>>
>>Please do not print this email unless it is absolutely necessary.
>>
>>The information contained in this electronic message and any
>>
>>
>attachments to this message are intended for the exclusive use of the
>addressee(s) and may contain proprietary, confidential or privileged
>information. If you are not the intended recipient, you should not
>disseminate, distribute or copy this e-mail. Please notify the sender
>immediately and destroy all copies of this message and any attachments.
>
>
>>WARNING: Computer viruses can be transmitted via email. The recipient
>>
>>
>should check this email and any attachments for the presence of
viruses.
>The company accepts no liability for any damage caused by any virus
>transmitted by this email.
>
>
>>www.wipro.com
>>
>>
>>
>>
>>
>
>
>
>
--
Patrick Galbraith, Senior Programmer
Grazr - Easy feed grazing and sharing
http://www.grazr.com
Satyam Eva Jayate - Truth Alone Triumphs
Mundaka Upanishad
Please do not print this email unless it is absolutely necessary. =0A=
=0A=
The information contained in this electronic message and any attachments to=
this message are intended for the exclusive use of the addressee(s) and may=
contain proprietary, confidential or privileged information. If you are not=
the intended recipient, you should not disseminate, distribute or copy this=
e-mail. Please notify the sender immediately and destroy all copies of this=
message and any attachments. =0A=
=0A=
WARNING: Computer viruses can be transmitted via email. The recipient should=
check this email and any attachments for the presence of viruses. The compa=
ny accepts no liability for any damage caused by any virus transmitted by th=
is email. =0A=
=0A=
www.wipro.com
--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=3Dgcdmp-msql-mysql-modules @m.gmane.org