I am running MySQL 5.1.49 on FreeBSD 8.1 and I am for some reason unable to delete users from the users table.
hmmm...anyone got a clue?
Code:
mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> DELETE FROM user WHERE user='bluethundr@virt1';
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
mysql> SELECT user, host FROM user;
+------------+--------------------------+
| user | host |
+------------+--------------------------+
| root | 127.0.0.1 |
| bluethundr | 192.168.1.23 |
| root | ::1 |
| | lbsd8-2.example.com |
| bluethundr | lbsd8-2.example.com |
| root | lbsd8-2.example.com |
| | localhost |
| nobody | localhost |
| root | localhost |
| bluethundr | virt1 |
+------------+--------------------------+
10 rows in set (0.00 sec)
mysql> DELETE FROM user WHERE user='bluethundr@lbsd8-2.example.com';
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
mysql> SELECT user, host FROM user;
+------------+--------------------------+
| user | host |
+------------+--------------------------+
| root | 127.0.0.1 |
| bluethundr | 192.168.1.23 |
| root | ::1 |
| | lbsd8-2.example.com |
| bluethundr | lbsd8-2.example.com |
| root | lbsd8-2.example.com |
| | localhost |
| nobody | localhost |
| root | localhost |
| bluethundr | virt1 |
+------------+--------------------------+
10 rows in set (0.00 sec)
hmmm...anyone got a clue?