You cannot (absolutely cannot) replace the pipe of the /var/run/mysqld/mysql.sock file system /var/run/mysqld/mysql.sock a regular file. You must use mkfifo(1) to create the pipe(7) that clients use to communicate with the mysql server.
(13) probably also means that you have a denial of access denial, EACCES (which usually has a decimal value of 13 - yes, I saw a lot of it).
If the file system permissions are configured correctly, you may have access denied by mandatory access control , such as AppArmor , SELinux , TOMOYO, or SMACK .
AppArmor is installed by default on Ubuntu devices and may deny access to the channel. The output of /var/log/syslog , /var/log/audit/audit.log or dmesg(1) for messages that look something like this:
type=AVC msg=audit(1320723925.179:45115): apparmor="DENIED" operation="open" parent=1 profile="/usr/sbin/ntop" name="/usr/share/ntop/html/PlotKit/excanvas.js" pid=1835 comm="ntop" requested_mask="r" denied_mask="r" fsuid=122 ouid=0
(But instead of name=/var/run/mysqld/mysql.sock .)
If you have such error messages, run aa-logprof as root and answer the questions. More information on AppArmor configuration can be found in the apparmor.d(5) man page or some of the various wiki pages .
sarnold
source share