> Please Log in to the server via SSH
> Please run the following command to create the database:
uapi --user=exampl3 Mysql create_database name=db_name
Please NOTE: Please make sure to replace exampl3
with your cPanel username and db_name
with the database name,
> Please run the following command to create the database user:
uapi --user=exampl3 Mysql create_user name=db_user password=P@s$w0rd123!
Please NOTE: Please make sure to replace exampl3
with your cPanel username, db_user
with the database username and P@s$w0rd123!
to the password
> Assign the database user privileges to access the database by running the following command:
uapi --user=exampl3 Mysql set_privileges_on_database user=db_user database=db_name privileges=ALL