Error Removing Anonymous Accounts
am 11.03.2010 17:21:00 von Carlos Williams
I installed MySQL 5 today and started by setting up root passwords for
all three root accounts:
mysql> select User, Password, Host, Create_priv from user;
+------+-------------------------------------------+-------- ---+-------------+
| User | Password | Host | Create_priv |
+------+-------------------------------------------+-------- ---+-------------+
| root | *3B657EF5C969760D3CF4E42931FDCE507F26D2A1 | localhost | Y |
| root | *3B657EF5C969760D3CF4E42931FDCE507F26D2A1 | ghost | Y |
| root | *3B657EF5C969760D3CF4E42931FDCE507F26D2A1 | 127.0.0.1 | Y |
| | | localhost | N |
| | | ghost | N |
+------+-------------------------------------------+-------- ---+-------------+
Now my question is when I follow this 'Anonymous Account Removal' guide:
http://dev.mysql.com/doc/refman/5.0/en/default-privileges.ht ml
I get the following error:
mysql> DROP USER '';
ERROR 1396 (HY000): Operation DROP USER failed for ''@'%'
Any help is greatly appreciated!
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org
RE: Error Removing Anonymous Accounts
am 11.03.2010 17:29:20 von Rolando Edwards
REVMRVRFIEZST00gbXlzcWwudXNlciBXSEVSRSB1c2VyPScnOw0KRkxVU0gg UFJJVklMRUdFUzsN
Cg0KUm9sYW5kbyBBLiBFZHdhcmRzDQpNeVNRTCBEQkEgKENNREJBKQ0KDQox NTUgQXZlbnVlIG9m
IHRoZSBBbWVyaWNhcywgRmlmdGggRmxvb3INCk5ldyBZb3JrLCBOWSAxMDAx Mw0KMjEyLTYyNS01
MzA3IChXb3JrKQ0KMjAxLTY2MC0zMjIxIChDZWxsKQ0KQUlNICYgU2t5cGUg OiBSb2xhbmRvTG9n
aWNXb3J4DQpyZWR3YXJkc0Bsb2dpY3dvcmtzLm5ldA0KaHR0cDovL3d3dy5s aW5rZWRpbi5jb20v
aW4vcm9sYW5kb2Vkd2FyZHMNCg0KDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2Ut LS0tLQ0KRnJvb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ICB8DQp8 ICAgICAgfCAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IGxvY2Fs aG9zdCB8IE4gICAg
ICAgICAgIHwNCnwgICAgICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgIHwgZ2hvc3QgICAgIHwgTiAgICAgICAgICAgfA0KKy0tLS0tLSstLS0t LS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tKy0tLS0tLS0tLS0tKy0tLS0t LS0tLS0tLS0rDQoN
Ck5vdyBteSBxdWVzdGlvbiBpcyB3aGVuIEkgZm9sbG93IHRoaXMgJ0Fub255 bW91cyBBY2NvdW50
IFJlbW92YWwnIGd1aWRlOg0KDQpodHRwOi8vZGV2Lm15c3FsLmNvbS9kb2Mv cmVmbWFuLzUuMC9l
bi9kZWZhdWx0LXByaXZpbGVnZXMuaHRtbA0KDQpJIGdldCB0aGUgZm9sbG93 aW5nIGVycm9yOg0K
DQpteXNxbD4gRFJPUCBVU0VSICcnOw0KRVJST1IgMTM5NiAoSFkwMDApOiBP cGVyYXRpb24gRFJP
UCBVU0VSIGZhaWxlZCBmb3IgJydAJyUnDQoNCkFueSBoZWxwIGlzIGdyZWF0 bHkgYXBwcmVjaWF0
ZWQhDQoNCi0tIA0KTXlTUUwgR2VuZXJhbCBNYWlsaW5nIExpc3QNCkZvciBs aXN0IGFyY2hpdmVz
OiBodHRwOi8vbGlzdHMubXlzcWwuY29tL215c3FsDQpUbyB1bnN1YnNjcmli ZTogICAgaHR0cDov
L2xpc3RzLm15c3FsLmNvbS9teXNxbD91bnN1Yj1yZWR3YXJkc0Bsb2dpY3dv cmtzLm5ldA0KDQo=
Re: Error Removing Anonymous Accounts
am 11.03.2010 17:32:10 von Carlos Williams
On Thu, Mar 11, 2010 at 11:29 AM, Rolando Edwards
wrote:
> DELETE FROM mysql.user WHERE user='';
> FLUSH PRIVILEGES;
That worked and I thank you however I am wondering why the MySQL guide
was incorrect? Perhaps it's right but I did something wrong. Any
thoughts?
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org
RE: Error Removing Anonymous Accounts
am 11.03.2010 21:56:14 von Gavin Towey
DQpEUk9QIFVTRVIgJydAJ2xvY2FsaG9zdCc7DQoNCklmIHlvdSB1c2UgdGhl IGNvcnJlY3QgR1JB
TlQvUkVWT0tFIGFuZCBDUkVBVEUvRFJPUCBjb21tYW5kcyBpdCdzIG5vdCBu ZWNlc3NhcnkgdG8g
dXBkYXRlIHRoZSB0YWJsZXMgYW5kIHJ1biBGTFVTSCBQUklWSUxFR0VTLiAg SU1PIG1hbmlwdWxh
dGluZyB0aG9zZSB0YWJsZXMgZGlyZWN0bHkgaXMgYSBiYWQgaGFiaXQuDQoN Ci0tLS0tT3JpZ2lu
YWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBDYXJsb3MgTWVubmVucyBbbWFpbHRv OmNhcmxvc3dpbGxA
Z21haWwuY29tXQ0KU2VudDogVGh1cnNkYXksIE1hcmNoIDExLCAyMDEwIDg6 MzIgQU0NClRvOiBN
eVNRTA0KU3ViamVjdDogUmU6IEVycm9yIFJlbW92aW5nIEFub255bW91cyBB Y2NvdW50cw0KDQpP
biBUaHUsIE1hciAxMSwgMjAxMCBhdCAxMToyOSBBTSwgUm9sYW5kbyBFZHdh cmRzDQo8cmVkd2Fy
ZHNAbG9naWN3b3Jrcy5uZXQ+IHdyb3RlOg0KPiBERUxFVEUgRlJPTSBteXNx bC51c2VyIFdIRVJF
IHVzZXI9Jyc7DQo+IEZMVVNIIFBSSVZJTEVHRVM7DQoNClRoYXQgd29ya2Vk IGFuZCBJIHRoYW5r
IHlvdSBob3dldmVyIEkgYW0gd29uZGVyaW5nIHdoeSB0aGUgTXlTUUwgZ3Vp ZGUNCndhcyBpbmNv
cnJlY3Q/IFBlcmhhcHMgaXQncyByaWdodCBid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