Re: Trouble connecting to db
Odhiambo Washington <[email protected]> Tue, 23 Feb 2010 20:13:03 +0300
| Newsgroups | gmane.mail.exim.vexim.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Feb 23, 2010 at 8:04 PM, Andreas Westvik < [email protected]> 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@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@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@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 _______________________________________________ Vexim mailing list [email protected] http://silverwraith.com/mailman/listinfo/vexim