logo       

Problem connecting: msg#00011

db.mysql.perl

Subject: Problem connecting

Hello everybody!

I have a problem, I wrote a program in perl and I can't connect to the
database, then I try connecting via mysql command and it works fine...

Here is the script.

$db="planos";
$host="localhost";
$userid="web";
$passwd="secret";
$connectionInfo="dbi:mysql:$db;$host";
$dbh = DBI->connect($connectionInfo,$userid,$passwd) or die print "Error
connecting\n\n\n";

And I get

DBI connect('planos;localhost','web',...) failed: Access denied for user
'web'@'localhost' (using password: YES) at ./planos.pl line 25

I use:

mysql -u web -h localhost -p planos
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 38 to server version: 4.1.10a-Max-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

and I get in ok! Any ideas?

TIA

Héctor S. Mendoza Ortiz


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:
http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise