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 ???
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI module not using new mysql.sock
by atcroft (Abbot) on Feb 15, 2015 at 18:51 UTC | |
|
Re: DBI module not using new mysql.sock
by jmacloue (Beadle) on Feb 16, 2015 at 09:54 UTC | |
by rbholder (Initiate) on Feb 17, 2015 at 21:36 UTC | |
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 |