Page 1 of 1

MySQL syntax HELP please

Posted: Fri Oct 17, 2014 11:45 pm
by burlington
I have driven myself mad tonight trying to give full privileges to a user on MySQL.
I thought that the following syntax was OK but apparently not:

GRANT ALL PRIVILEGES ON cmsdb TO ‘cppadmin’@'localhost’;

I am not used to working with syntaxes. Can anyone please tell me what I am doing wrong?

Many thanks

Martin

Re: MySQL syntax HELP please

Posted: Sat Oct 18, 2014 4:25 am
by JohnnyB
if 'cmsdb' is the name of your database, I think you have to use:
cmsdb.*
to get all the tables in it.

Next, change the name of the database and user if that is your actual names being used... shouldn't really advertise that information.

Re: MySQL syntax HELP please

Posted: Sat Oct 18, 2014 5:57 am
by burlington
Thanks but this does not work either. I am still getting the message to check the syntax.

Re: MySQL syntax HELP please

Posted: Sat Oct 18, 2014 6:47 am
by velden
Remove PRIVILEGES from the statement

Re: MySQL syntax HELP please

Posted: Sun Oct 19, 2014 7:02 pm
by burlington
Sorry but this does not work either.
However, this site is now going to be mounted on another server with a less obtuse hosting company, which does not need the use of phpMyAdmin to set the permissions.
Thanks everyone for your help.
Martin