How do I grant permissions to a MySQL standalone user?

MySQL standalone users provide additional security in certain advanced applications of database use by restricting the permissions of a certain user to operate on the database. By default a standalone user has no permissions - they must all be granted specifically.

Do note that standalone users are not required for normal use - when MySQL databases are created, a user will full permissions is created with them.

Assuming that you have already created the MySQL database and the standalone user, you then need to login as the original database user (ie, click the 'Now' button under 'Manage' for the databse) and then run the following SQL command:

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES ON `webXX-dbname`.* TO 'n-webXX-user'@'%' WITH GRANT OPTION;

Replacing webXX-dbname with the original database name, and n-webXX-user with the standalone username.

If there are any other privileges that you need granted on a database, that you don't have access to, please get in touch with our support team with your request.

  • 105 Users Found This Useful
Was this answer helpful?

Related Articles

How do I connect to my MySQL database from a Perl CGI script?

Perl's DBI module provides an interface to MySQL databases for CGI scripts. A commented example...

How do I query a MySQL database from a PHP script?

Use the following outline to connect and begin querying the MySQL server from within your PHP...

How do I connect to MySQL with ASP?

This applies to Windows Hosting accounts only.You will need to use a DSNless connection which can...

How do I set up the MySQL connection using Dreamweaver?

1. Open Dreamweaver2. Click File>New3. Choose “Dynamic Page” in left frame and then “PHP” (or...

Can I rename my database getting rid of the 'web-' part of the name?

Unfortunately this isn't possible as the convention is required for backing up the data on the...