You might try something like the following in the site shell first.
SOCKET=$(mysqld --verbose --help | grep ^socket | awk '{print $2, $3, $4}');ln -sv $SOCKET /tmp/mysql.sock
I have tested this. The first part should get the socket and then symlink it to the expected location.