How To Set Up Database Custom Access Rules in Plesk

How To Set Up Database Custom Access Rules in Plesk

Introduction

By default, remote access to Plesk databases is allowed from any computer as long as you specify its IP address. Also, you can disable remote access if the application is running on the Plesk server.

Access controls are specific to individual Plesk database users.For this settings to work, the application must use these database users to access the database.

In this article, we are going to show you how to set up database access rules for database users in Plesk.

Prerequisite;

  • Plesk account
  • Plesk firewall is turned on by hosting provider.

How To Set up Database Custom Access Rules in Plesk

MySQL

MySQL’s remote access is controlled by MySQL native security mechanism – access controlled lists (ACL). When you specify your settings, they are added to the MySQL access control lists. Therefore to specify settings;

Log in to your Plesk account, click Databases. Plesk will list all the databases in your account, so proceed to select the particular database.

After selecting your database, at the upper right of the new page, click User Management.

You should now be able to see a list of all the users who have access to your database account. Select a User.

A new page where you can edit the privileges the chosen user can or cannot have will open. You can ignore everything but the Access control options.

You can now use one of the following options to edit the access rules for the user;

  • Allow local connections only – this option is best suited to allow access to Plesk from all IP addresses.
  • Allow remote connections – use this option whenever you want to allow remote access from any server.
  • Allow remote connections from – you select a hostname or IP addresses which will be given access to the database.

Finally, since Plesk uses a firewall, you can see the message below the access control options.

If the firewall doesn’t allow remote connections to the MySQL database, then custom access won’t work.

PostgreSQL

PostgreSQL’s custom access rules are governed by firewall rather than access control lists (ACL). Thus when you specify custom rules, they are added to the systems firewall rules. To specify the access settings;

Login to your Plesk account click Databases and select a database.

Then proceed to click User Management at the upper right corner.

Afterwards, choose a user, and you can now edit the remote access rules to the database, but instead of the three options like MySQL, you will only see two;

  • Use the system firewall rules – this option will use the rules defined by your hosting provider.
  • Allow remote connections from – just like MySQL, you have to specify IP addresses from which the user can access the database.

Microsoft SQL server

Just like the PostgreSQL, MSQL is also controlled by firewall rules. Your customised rules are added to the system only after your hosting provider has reviewed them. To specify, the rules just follow the PostgreSQL method.

Conclusion

In this article, we covered how to set up custom access rules in Plesk. We started with MySQL; we saw how we can use the user management to set rules for users. We then proceeded to look at PostgreSQL where we learnt that it is controlled by firewall rules. With this article,you can control who has access to your database remotely.

Check out these top 3 Windows hosting services:

Ultahost
$2.90 /mo
Starting price
Visit Ultahost
Rating based on expert review
  • User Friendly
    4.3
  • Support
    4.8
  • Features
    4.5
  • Reliability
    4.0
  • Pricing
    4.8
Kamatera
$4.00 /mo
Starting price
Visit Kamatera
Rating based on expert review
  • User Friendly
    3.5
  • Support
    3.0
  • Features
    3.9
  • Reliability
    4.0
  • Pricing
    4.3
IONOS
$1.00 /mo
Starting price
Visit IONOS
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.0
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.3
  • Want to get top recommendations about best hosting? Just click this link!

How to Set Up Custom Error Pages on Windows Servers for a Site in Plesk

This article covers how to add the custom error pages for a site or a directory
1 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert

How to Manage Databases Within the Plesk Webhosting Panel

In this article, you will find a step by step guide on how to work with database
2 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert

How To Backup and Restore MSSQL on a Windows VPS or Dedicated Server

Database backups crucial for any application and files to safeguard
2 min read
Idan Cohen
Idan Cohen
Marketing Expert

How To Install MySQL on Windows

This how-to article teaches you how to install MySQL on Windows.
4 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top