<?xml version="1.0" encoding="windows-1252"?>
<node id="419841" title="Re: Accessing MySQL DB through DBI" created="2005-01-06 04:15:52" updated="2005-08-01 23:55:56">
<type id="11">
note</type>
<author id="152175">
cchampion</author>
<data>
<field name="doctext">
&lt;p&gt;Can you connect using a normal MySQL client? Did you actually try
right before your attempt at a Perl connection?
(If you have root access, perhaps you also have shell
access to that server).&lt;/p&gt;

&lt;p&gt;Anyway, if you can connect from the command line and
not from a script, it could be that you are using a
socket that isn't standard, and from the command line it 
is found thanks to a configuration file or an environment
variable, while in the Perl script it is not seen at all.
&lt;/p&gt;
&lt;p&gt;That was just speculation. Now. If you really have
root access, try creating a normal user, and connect to
your server using an IP address (instead of localhost)
and that user. Try it from the command line first. &lt;br&gt;
This should either solve your problem or give you more information t
about asking for more help.&lt;/p&gt;

&lt;p&gt;In addition to what others have offered you in their answers,
you may look at [id://264485], where you'll find some
useful advice.&lt;/p&gt;</field>
<field name="root_node">
419796</field>
<field name="parent_node">
419796</field>
</data>
</node>
