I suppose you moved not only the ibdata structures but the entire MySQL folder under data, didn't you? In this case a safe choice is to add a symlink from /data/mysql to /var/lib/mysql, symlinks are (more or less) transparent so most of the time this works.
Unlike mysql and other client programs DBD::mysql doesn't read /etc/my.cnf and other MySQL configuration files by default (however it has a mysql_read_default_file connection option to circumvent it), so the default values hardcoded into libmysqlclient are used. So it is either to modify your code to point it to the new socket location — or keep the defaults working with a symlink.
In reply to Re: DBI module not using new mysql.sock
by jmacloue
in thread DBI module not using new mysql.sock
by rbholder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |