Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Keeping MySQL connection parameters in a safe place

by gmax (Abbot)
on Dec 27, 2005 at 16:26 UTC ( [id://519356]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # $HOME/.my.cnf
    
    ...
    [myapp]
    user=specialguy
    password=something_different
    
  2. or download this
    my $dbh = DBI->connect("DBI:mysql:test"
        . ";mysql_read_default_file=$ENV{HOME}/.my.cnf"
    ...
        undef, 
        undef
       ) or die "something went wrong ($DBI::errstr)";
    
  3. or download this
    my $profile = shift || 'usage';
    
    ...
        undef, 
        undef
       ) or die "something went wrong ($DBI::errstr)";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-04-24 20:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found