Keep It Simple, Stupid | |
PerlMonks |
DBI module not using new mysql.sockby rbholder (Initiate) |
on Feb 15, 2015 at 17:35 UTC ( [id://1116794]=perlquestion: print w/replies, xml ) | Need Help?? |
rbholder has asked for the wisdom of the Perl Monks concerning the following question: Greetings, I am using MySQL 5.1 and my ibdata file got too big, so I moved it from /var/lib/mysql to /data/mysql. I shut down mysql, then changed /etc/my.cnf and /etc/init.d/mysqld to reflect the dir change, then restarted mysql. I was able to connect to the database through the mysql client, but my perl cgi web pages return this error - DBI connect('SPIT:localhost:3306','spit',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Thoughts ???
Back to
Seekers of Perl Wisdom
|
|