How to chroot MySQL client for users ?




  • Avatar
    Rico Rothenburger (Edited )

    That's not a good idea. Logged-in users can delete the file, which terminates the entire MySQL server.

    better: mount -o bind,ro /var/run/mysqld /var/www/vhosts/

    In general, however, the mount causes Plesk to delete the file and the MySQL server is no longer working. For example, if you delete the client, then all files will be deleted and also the mysqld.sock file.

    Is this workaround only for Plesk 12.5?

  • Avatar
    Bulat Tsydenov

    @Rico This workaround is applicable for all currently supported Plesk versions for Linux

Please sign in to leave a comment.

Have more questions? Submit a request