[vexim] Trouble connecting to db

Odhiambo Washington odhiambo at gmail.com
Tue Feb 23 09:13:03 PST 2010


On Tue, Feb 23, 2010 at 8:04 PM, Andreas Westvik <
andreas_westvik at hotmail.com> wrote:

>  Hi again Odhiambo
>
> Really disturbing to see that you dont know! :D
>
> Anyways, I tried the syntax and that one gave me some errors of course:
>
> mysql> GRANT ALL ON vexim.* TO www-data at localhost IDENTIFIED BY
> 'thebigsecret';
> ERROR 1064 (42000): You have an error in your SQL syntax; check the manual
> that corresponds to your MySQL server version for the right syntax to use
> near '-data at localhost IDENTIFIED BY 'thebigsecret'' at line 1
>

quote the www-data, as in:

mysql> GRANT ALL ON vexim.* TO "www-data"@localhost IDENTIFIED BY
'thebigsecret';
Query OK, 0 rows affected (0.06 sec)

mysql> quit
Bye
[wash at FreeBSD-8 ~]$ mysql -uwww-data -pthebigsecret vexim
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 69193
Server version: 5.1.41 FreeBSD port: mysql-server-5.1.41

Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.

mysql>

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"If you have nothing good to say about someone, just shut up!."
              -- Lucky Dube
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://silverwraith.com/pipermail/vexim/attachments/20100223/728dad4b/attachment.htm>


More information about the Vexim mailing list