MySQL: Login as Blank User From Command Line
Hi:
Just used a MySQL 'GRANT' statement to give ''@'localhost' privs on a new db. I wanted to run some tests from the mysql command line client before trying via PHP. So I tried: Code:
mysql -u Anyone know the syntax for specifying "user==blank" from the command line? (Note: just leaving out the '-u' won't work; that also defaults to 'joe'.) Thanks. |
Code:
# An important point to note is that this database is created by the root and so will not be accessible to any other user unless permitted by the root. Thus, in order to use this database from my account (called manish), I have to set the permissions by issuing the following command: http://www.webdevelopersnotes.com/tu..._tutorial.php3 |
All times are GMT -5. The time now is 02:20 PM. |