First create a MySQL database and user in cPanel, assign ALL PRIVILEGES, then update config/database.php.
config/database.php