El 13/01/2011 4:14, SpreadTooThin escribió/wrote:
Quote:
GRANT ALL PRIVILEGES ON *.* TO me @'host.domain' IDENTIFIED BY
'mypassword';
Is giving me a syntax error.. |
Not this query. If the real query you are using is triggering a syntax
error, it's because you have a password like "o'brian" and you aren't
escaping it properly.
Quote:
I'm on mac os x 10.6
I wonder if this has something to do with how I started mysql?
sudo /usr/local/mysql/bin/mysql |
It's a fascinating hypothesis but, as far as I know, the SQL syntax
supported by MySQL is the same for all system users.
Quote:
Can the password be the same for the same user logging in from a
different workstation? |
Why couldn't you repeat passwords? It wouldn't be a safe system if you a
message like "password abcdef is already in use by another user"...
Quote:
Is the space necessary before the @? are the 's necessary around
host.domain if it's not an IP address?
Are 's necessary around the password....
I've tried everything and i just can't get it to work. |
You don't have to guess:
http://dev.mysql.com/doc/refman/5.1/en/grant.html
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--