On October 19, 2021, we have enabled single-sign-on for our Plesk Support Center to provide a seamless login/account experience. This implies that you’ll be able to use a single account across any of our web-facing properties.
If you had already registered your account at MyPlesk.com/Plesk360/Platform360 please use one for login. Otherwise please re-register it using the same email address as your existing Zendesk login (support account). It’s essential that you use the same email address on our support center to ensure that your tickets stay attached to the same account.

How to chroot MySQL client for users in Plesk?

Follow

Comments

8 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?

    0
    Comment actions Permalink
  • Avatar
    Bulat Tsydenov

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

    0
    Comment actions Permalink
  • Avatar
    Kingsley Felix

    looks complicated

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello @iamkingsleyf,

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

    0
    Comment actions Permalink
  • Avatar
    Kingsley Felix

    you guys said its not recommended.

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

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

    0
    Comment actions Permalink
  • Avatar
    Fabien F. Dubroca

    Hello Plesk Team,

    Trying to add mysql to a chrooted user on Plesk Obsidian but I'm getting a 404 on the update_chroot tool download.

    Can you please update the URL ?

    Thanks !

    0
    Comment actions Permalink
  • Avatar
    Anton Maslov

    Hi Fabien, updated.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request