Re: Perl-mysql



first, sharing the error message you get when trying to connect will
help isolate the actual cause of the problem.

second, getting rid of all the extraneous whitespace in your code
fragment will help in reading the code.

as for possible causes of the error:

1. DBI->connect syntax may be incorrect (i haven't looked it up to verify)
2. ip address may no longer be correct if it is a dynamic ip (even on
a home system)
3. networking for mysql may not be active
4. mysql may not be running
5. user "root" may not be allowed to connect via network (ie.
external) connection
6. user "root" may not have the same password you are passing
7. database "employee" may not exist or may be corrupt

there could be other possibilities, these are just the ones that come to mind.



On 8/30/06, Manne, Siva Chaitanya Prasad
<SivaChaitanya.Manne@xxxxxxxxxxxxx> wrote:




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.



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 in advance





--

siva







--
since this is a gmail account, please verify the mailing list is
included in the reply to addresses
.



Relevant Pages

  • Re: Suddenly ODBC driver does not work
    ... > Suddenly the users and I get an error message when trying to open the ... > The page stops and shows "ODBC Drivers error '80040e21' ... I just noticed that you are using MySQL. ... This email account is my spam trap so I ...
    (microsoft.public.inetserver.asp.db)
  • Re: connection with MySQL with Python interface
    ... > When I tried to connect with MySQL database which run on XP from shell. ... Has anyone get similar error message and provide any suggestion? ... You have to know that a client needs to have a mysql-client ...
    (comp.lang.python)
  • Re: Debian MySQL Perl DBI - connection terminates unexpectedly after 100 secs.
    ... I'm updating a MySQL table with about 2 million records. ... If there were an error message, do you know where it would ... perl script could have a time out, or your MySQL server might have a time ... Yes I have now found that error log. ...
    (comp.lang.perl.misc)
  • Re: MySQL vs. DBI/DBD
    ... A simple Google search on the error message: ... > When I run the script I get this error message: ... consider upgrading MySQL client at test.pl line 15 ...
    (perl.dbi.users)
  • Re: [SLE] java is good for windows but it is not for linux
    ... but a friend phoned me today with exactly the same error message. ... He was trying to run his java code on another windows machine. ... I put the command line: ...
    (SuSE)