MySQL user grants

In this article, you will find the procedure of restoring MySQL grants.

The /usr/local/cpanel/bin/restoregrants script restores database users grants from the data in the /var/cpanel/databases/grants_* files.

One can restore the grants using the following command:

/usr/local/cpanel/bin/restoregrants [--cpuser=cpuser] [--db=mysql|pg] [--dbuser=dbuser|--all]

The above-discussed method is the basic and easiest way for restoring your MySQL user grants using the command line interface. For more details, you can visit bodHOST today.

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

Execute CGI outside CGI-bin

By default, many web servers (like Apache) are configured to run CGI scripts only inside…

Advantages and Disadvantages of Shared Hosting

Advantages and Disadvantages of Shared Hosting (Pros & Cons Explained)

If you’re new to web hosting, shared hosting is probably the first option you’ve come…

Intel Xeon E3-1230V2 3.3 GHz Server Specifications and Features

Intel Xeon processor E3-1230V2 3.3 GHz server platform for Intel Ivy Bridge offers a professional…