LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-02-2011, 09:47 AM   #1
DennisC31
Member
 
Registered: May 2007
Location: beyond my means
Distribution: Mint 11.04
Posts: 55

Rep: Reputation: 19
Weird mysql revoke problem


I can't seem to remove rights for a remote root connection. Below you can see that the rights are present before and after the successful revoke command. Any ideas? I am using the correct command.

mysql> show grants for root@'192.168.1.103';
+------------------------------------------------------+
| Grants for root@192.168.1.103 |
+--------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'root'@'192.168.1.103' IDENTIFIED BY PASSWORD '091618a251aaff69' |
+----------------------------------------------+
1 row in set (0.00 sec)

mysql> revoke all on *.* from root@'192.168.1.103' identified by password '091618a251aaff69';
Query OK, 0 rows affected (0.00 sec)

mysql> show grants for root@'192.168.1.103';
+----------------------------------------------------------------------------------------+
| Grants for root@192.168.1.103 |
+----------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'root'@'192.168.1.103' IDENTIFIED BY PASSWORD '091618a251aaff69' |
+----------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

mysql> revoke all on *.* from root@'192.168.1.103' identified by password '091618a251aaff69';
Query OK, 0 rows affected (0.00 sec)

mysql> show grants for root@'192.168.1.103';
+----------------------------------------------------------------------------------------+
| Grants for root@192.168.1.103 |
+----------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'root'@'192.168.1.103' IDENTIFIED BY PASSWORD '091618a251aaff69' |
+----------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

mysql>

Last edited by DennisC31; 04-11-2012 at 05:20 PM.
 
Old 04-02-2011, 09:53 AM   #2
DennisC31
Member
 
Registered: May 2007
Location: beyond my means
Distribution: Mint 11.04
Posts: 55

Original Poster
Rep: Reputation: 19
Just use the drop user command to get that last rights statement out.

drop user root@'192.168.1.103';

Last edited by DennisC31; 04-11-2012 at 05:37 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN won't revoke certs ichrispa Linux - Software 5 08-26-2010 01:57 PM
OpenVPN revoke error qwertyjjj Linux - Server 1 01-15-2010 04:24 PM
mysql drop revoke user from specific host ? RedHat123 Programming 0 04-21-2005 02:54 PM
mysql installation weird... Red Squirrel Linux - Software 14 03-08-2004 08:19 AM
what is .REVOKE? box_l Linux - General 4 08-07-2003 05:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration