Perl-mysql
- From: SivaChaitanya.Manne@xxxxxxxxxxxxx (Siva Chaitanya Prasad Manne)
- Date: Wed, 30 Aug 2006 20:15:45 +0530
Hi,
I would like to connect to a database stored at linux
machine from my Windows machine. But I am unable to connect to the
mysql
server.
The error I am getting is
"DBI connect('employee:xxx.xxx.xxx.xx','root',...) failed: Unknown MySQL
server host 'xxx.xxx.xxx.xx' (11001) at
d:\pras\webshare\common\siva\mysql\mysql.pl line 2"
--
I have used the exact ip address of the machine instead of
xxx.xxx.xxx.xx
,the database "employee" is created properly and mysql is running
Please help me regarding this issue.
************************************************************************
use DBI;
$dbh = DBI->connect("DBI:mysql:employee:xxx.xxx.xxx.xx", 'root',
'abc123',{ RaiseError => 1 });
#do something here
$dbh->disconnect();
***********************************************************************
Thanks
siva
.
- Follow-Ups:
- Re: Perl-mysql
- From: Jm
- Re: Perl-mysql
- References:
- Re: Perl-mysql
- From: Jm
- Re: Perl-mysql
- Prev by Date: Re: Perl-mysql
- Next by Date: Re: Perl-mysql
- Previous by thread: Re: Perl-mysql
- Next by thread: Re: Perl-mysql
- Index(es):
Relevant Pages
|
|