How to chroot MySQL client for users ?

Follow

Comments

6 comments

  • 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/example.com/var/run/mysqld

    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

  • Avatar
    iamkingsleyf

    looks complicated

  • Avatar
    Ivan Postnikov

    Hello @iamkingsleyf,

    Please, let me know which questions do you have when applying the solution from this article?

  • Avatar
    iamkingsleyf

    you guys said its not recommended.

  • Avatar
    Ivan Postnikov

    @iamkingsleyf, indeed, such actions are performed at your own risk.

Please sign in to leave a comment.

Have more questions? Submit a request