Hi all, I am trying to connect to my mysql database with a perl script... I can connect from commnad line both passing a password or at password prompt... I can connect successfully with the following line in my script.. my $dbh = DBI->connect("DBI:mysql:database=mysql;host=localhost", "root", "password", {'RaiseError' =>1});
But the following line fails.. with a Memory fault but no core dump my $dbh = DBI->connect("DBI:mysql:database=mysql;host=localhost" . ";mysql_read_default_file=$ENV{HOME}/.my.cnf", $user, $password); DBI->trace(9); outputs the following imp_dbh->mysql_dr_connect: host = localhost, port =0, uid = NULL, pwd = NULL .my.cnf file looks like... [client] user=root password=passwd Any ideas or anything blatenly obvious as to what is wrong? Thanks, Taylor Taylor Lewick Unix System Administrator Fortis Benefits 816 881 6073 "Help Wanted. Seeking Telepath..." "You Know where to apply." **************************************************************** Please Note The information in this E-mail message is legally privileged and confidential information intended only for the use of the individual(s) named above. If you, the reader of this message, are not the intended recipient, you are hereby notified that you should not further disseminate, distribute, or forward this E-mail message. If you have received this E-mail in error, please notify the sender. Thank you ***************************************************************** --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php