Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: DBI with 2nd mysql server, nonstandard port

by dbwiz (Curate)
on Feb 26, 2005 at 22:17 UTC ( #434827=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $dbh=DBI->connect('dbi:mysql:dbname'
            . ';host=127.0.0.1'
            . ';port=3310',
    'user', 'password');
    
  2. or download this
    my $dbh=DBI->connect('dbi:mysql:dbname'
            . ';host=localhost'
            . ';mysql_socket=/var/mysql4.1.9/mysql.sock',
    'user', 'password');
    
  3. or download this
    SET PASSWORD=OLD_PASSWORD('yoursecretpassword');
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://434827]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2014-12-20 18:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (97 votes), past polls