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.

How to Install Clang on Ubuntu 20.04 and 22.04

This article illustrates how to install Clang on Ubuntu 20.04 and 22.04. Clang serves as…

Zen Cart Security Tips

With the help several handy steps we can make a Zen Cart website secure. The…

Administration of Windows Server 2008 R2

A plethora of new features should cause IT pros to adopt this much-improved version. It…