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
MySQL syntax HELP please
Re: MySQL syntax HELP please
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.
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.
--
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
-
- Power Poster
- Posts: 444
- Joined: Wed Dec 27, 2006 5:15 pm
Re: MySQL syntax HELP please
Thanks but this does not work either. I am still getting the message to check the syntax.
Re: MySQL syntax HELP please
Remove PRIVILEGES from the statement
-
- Power Poster
- Posts: 444
- Joined: Wed Dec 27, 2006 5:15 pm
Re: MySQL syntax HELP please
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
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