Results 1 to 4 of 4
Hi folks,
On typing following lines granting privilege;
mysql> GRANT SELECT ON mailserver.*
-> TO mailuser@localhost
-> IDENTIFIED BY 'password; [Enter]
Query OK, 0 rows affected (0.00 sec)
I discovered ...
- 09-04-2008 #1Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
Question about mysql command
Hi folks,
On typing following lines granting privilege;
mysql> GRANT SELECT ON mailserver.*
-> TO mailuser@localhost
-> IDENTIFIED BY 'password; [Enter]
Query OK, 0 rows affected (0.00 sec)
I discovered later miss-typing "mailuser" as "maluser". Please advise how can I rectify it. Or how to delete that privilege and then recreate another one.
Besides what command shall I run to show virtual users
mysql> show virtual_user
doesn't work.
TIA
B.R.
satimis
- 09-10-2008 #2
It doesn't look like we have that many sql experts here, so I'll give the only advice I can.
I've played about with MySQL and I've always ended up putting a tool like phpmyadmin on the SQL server so I can tweak stuff properly. It's far too much hard work to go doing this by hand through the command line.
Just don't put phpmyadmin on a server that faces the internet - there are some rather thick script kiddies around that will try to use it to gain entry.Linux user #126863 - see http://linuxcounter.net/
- 09-10-2008 #3Just Joined!
- Join Date
- Nov 2005
- Location
- kolkata
- Posts
- 11
You got to drop the user from the user table. And receate the user from mysql shell. And more importantly you got to type flush peiviledges; To take the grant table take effect of that.
Thanks
BhaskarLast edited by unixbhaskar; 09-10-2008 at 01:15 PM. Reason: typos
- 09-10-2008 #4Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
Hi Roxoff and unixbhaskar,
Thanks for your advice.
I got my problem fixed by running;
mysql > USE mysql;
mysql > update user set User = "mailuser" where User = "maluser";
mysql > flush privileges;
A side question;
If typing;suddenly I discover a mistake on line 2. Can I jump back to line 2 making correction? If YES, please advise how. TIACode:mysql > line 1 > line 2 > line 3 > line 4 etc.
B.R.
satimis


Reply With Quote