Merge "Install link to mysql unix socket"
This commit is contained in:
commit
29a5a1c82f
|
@ -31,3 +31,10 @@ register-state-path /var/log/mysql
|
|||
if [ "$DIB_INIT_SYSTEM" == "systemd" ]; then
|
||||
systemctl enable mysqld.service
|
||||
fi
|
||||
|
||||
DISTRO=`lsb_release -si` || true
|
||||
if [[ "RedHatEnterpriseServer CentOS Fedora" =~ "$DISTRO" ]]; then
|
||||
# mysql clients on redhat expect the socket at /var/lib/mysql/mysql.sock
|
||||
mkdir -p /var/lib/mysql
|
||||
ln -s /var/run/mysqld/mysqld.sock /var/lib/mysql/mysql.sock
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue