in reply to Re: DBI module not using new mysql.sock
in thread DBI module not using new mysql.sock
Thanks for your reply -
I like the mysql_read_default file option best so I can safely remove the files in /var/lib/mysql, but it is still not working. I get -
DBI connect('SPT:localhost:3306;mysql_read_default_file=/etc/my.cnf','spt',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
My dbi connection code looks like this -
$dsn="DBI:mysql:SPT:localhost:3306;mysql_read_default_file=/etc/my.cnf +"; $dbh = DBI->connect($dsn, $db_user, $db_pass) or die ;
Any ideas ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBI module not using new mysql.sock
by afoken (Chancellor) on Feb 17, 2015 at 22:05 UTC | |
by rbholder (Initiate) on Feb 17, 2015 at 23:08 UTC | |
by afoken (Chancellor) on Feb 18, 2015 at 16:37 UTC | |
by rbholder (Initiate) on Feb 18, 2015 at 15:47 UTC |