Re: Problems with mysql
- From: "Gerald I. Evenden" <gerald.evenden@xxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 00:16:04 GMT
Eric Teuber wrote:
Gerald I. Evenden wrote:
I am having a problem with enabling non-root users in
mysql. As and example:
create database xxx;
generates and error:
ERROR 1044 (42000): Access denied for user ''@'localhost' to database
'xxx'
which is interesting because of the empty user field. In the same
session, 'status' shows the user to be 'gie@localhost' and
'mysql -u root' shows 'gie@localhost' to be in the 'mysql.users'
table. The gie user was added with "ALL PRIVELEGES."
I did run the script 'mysql_fix_privilege_tables' mentioned in the
mysql reference manual and rebooted. No difference.
Suggestions greatly appreciated.
i had the same problem a few months ago. If i correctly remember
creating the user in mysql with quotes 'name'@'localhost' instead of
name@localhost solved the problem. Have a try.
HTH
Eric
Basically you are correct but it took me some time to figure
out what was happening in the mysql.user table. One record
had "name@localhost" entirely in the name field. I think they
confused the issue with the odd syntax of the ''@'' rather than
referring to the User and Host fields in a normal manner.
Thanks for the hint.
.
- Follow-Ups:
- Re: Problems with mysql
- From: Eric Teuber
- Re: Problems with mysql
- References:
- Problems with mysql
- From: Gerald I. Evenden
- Re: Problems with mysql
- From: Eric Teuber
- Problems with mysql
- Prev by Date: Re: Home Made SUSE 10 Wireless Router
- Next by Date: Re: FREE Linux ebooks
- Previous by thread: Re: Problems with mysql
- Next by thread: Re: Problems with mysql
- Index(es):
Relevant Pages
|