Privileges problems

This is a discussion on Privileges problems within the MySQL Database forums, part of the Database Forums category; I'm having trouble with Mysql privileges. If I type mysql from my default account, 'markus', I get the access ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-12-2006
mailpitches@email.com
 
Posts: n/a
Default Privileges problems

I'm having trouble with Mysql privileges. If I type mysql from my
default account, 'markus', I get the access denied error 1045 for user
'markus'@'localhost' (using password:YES)

To my knowledge, I don't have a password on that account. I run su and
run mysql -u root mysql to look at the user table. There I have an
account for 'markus'@'localhost' and 'markus'@'%'. To make sure these
accounts are properly privileged, I delete them from the table and then
run 'grant all privileges on *.* to 'markus'@'localhost' with grant
option;. I also run it for '%'. I try running mysql from 'markus'
again, and it fails.

What am I missing regarding the privileges system?

Thanks

Reply With Quote
  #2 (permalink)  
Old 12-12-2006
Gordon Burditt
 
Posts: n/a
Default Re: Privileges problems

>I'm having trouble with Mysql privileges. If I type mysql from my
>default account, 'markus', I get the access denied error 1045 for user
>'markus'@'localhost' (using password:YES)


If you don't have a password on the account, don't try to log in
with one.

>To my knowledge, I don't have a password on that account. I run su and
>accounts are properly privileged, I delete them from the table and then
>run 'grant all privileges on *.* to 'markus'@'localhost' with grant
>option;. I also run it for '%'. I try running mysql from 'markus'
>again, and it fails.
>
>What am I missing regarding the privileges system?



If you don't have a password on the account, don't try to log in
with one.

Reply With Quote
  #3 (permalink)  
Old 12-13-2006
mailpitches@email.com
 
Posts: n/a
Default Re: Privileges problems


Gordon Burditt wrote:
> >I'm having trouble with Mysql privileges. If I type mysql from my
> >default account, 'markus', I get the access denied error 1045 for user
> >'markus'@'localhost' (using password:YES)

>
> If you don't have a password on the account, don't try to log in
> with one.


I'm trying to login _without_ a password on an account that was created
without a password, but it still requires a password. If I login with
mysql -p and hit enter at the password prompt, it works. For some
reason it's assigning a blank password instead of not requiring a
password at all.

Any ideas on how to fix this?

Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:44 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0