in reply to Re: connect_with_option_file
in thread connect_with_option_file
I also moved the option file (.my.cnf) to the following directory on my hosting server: home/gmacfadd/public_html/cgi-bin/dubois When I executed, here is the error I received:sub connect_with_option_file { $dsn .= ";mysql_read_default_file=home/gmacfadd/public_html/cg +i-bin/dubois/.my.cnf"; return (DBI->connect ($dsn, undef, undef, {PrintError => 0, RaiseError =>1})); }
Software error: DBI connect('database=gmacfadd_webdb;host=localhost;mysql_read_default_file=home/gmacfadd/public_html/cgi-bin/dubois/.my.cnf','',...) failed: Access denied for user: 'gmacfadd@localhost' (Using password: NO) at /home/gmacfadd/public_html/cgi-bin/dubois/WebDB.pm line 20
The fact the server thinks I'm gmacfadd@localhost instead of gmacfadd_webdev2 is puzzling...possibly meaning that it can't find my option file - but it is there!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: connect_with_option_file
by graff (Chancellor) on Jul 27, 2005 at 14:53 UTC | |
by gmacfadden (Sexton) on Jul 28, 2005 at 00:59 UTC |