MySQL syntax HELP please

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

MySQL syntax HELP please

Post 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
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: MySQL syntax HELP please

Post 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.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

Re: MySQL syntax HELP please

Post by burlington »

Thanks but this does not work either. I am still getting the message to check the syntax.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: MySQL syntax HELP please

Post by velden »

Remove PRIVILEGES from the statement
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

Re: MySQL syntax HELP please

Post 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
Post Reply

Return to “The Lounge”