I'm trying to assign a MySQL database & MySQL user to a cPanel account via SSH.
I believe the correct syntax to be the following.
> create database account_dbname;
> GRANT ALL PRIVILEGES ON account_dbname.* TO 'account_dbuser'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
When I go into the cPanel account to make sure I've done it correctly, the user doesn't seam to be assigned to the database. Have I got something wrong here?



LinkBack URL
About LinkBacks
Reply With Quote






