Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mysql logging in problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
metalgeek
n00b
n00b


Joined: 21 Oct 2002
Posts: 13

PostPosted: Tue Jun 03, 2003 3:58 am    Post subject: mysql logging in problems Reply with quote

I'm having problems logging into mysql as a certain user.
They exist in the system, and I can log on as my other user, but when I try with this one, it gives me an error:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'pawprint@localhost' (Using password: YES)'

Not sure where I need to go to start troubleshooting this.
any suggestions?
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Tue Jun 03, 2003 7:26 am    Post subject: Reply with quote

login to a mysql shell

Code:
mysql -u root -p


look at the privileges table

Code:
use mysql;
select * from users;


to see what permissions are granted on the user u are trying to connect with. notice that permissions in mysql are on per-machine-basis - user@somebox is not allowed to log in from localhost, only from somebox... for more details see the privilege system in the mysql manual or ask again...
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Back to top
View user's profile Send private message
metalgeek
n00b
n00b


Joined: 21 Oct 2002
Posts: 13

PostPosted: Tue Jun 03, 2003 2:44 pm    Post subject: Reply with quote

ok I get this error:
mysql> select * from users;
ERROR 1146: Table 'mysql.users' doesn't exist
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Tue Jun 03, 2003 4:30 pm    Post subject: Reply with quote

sorry - typo, the table is called 'user' not 'users' - to see all existing tables u can 'show tables;' for more commands try 'help' ;) ....
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Back to top
View user's profile Send private message
xedx
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2003
Posts: 93

PostPosted: Wed Jun 04, 2003 3:30 am    Post subject: Re: mysql logging in problems Reply with quote

metalgeek wrote:
I'm having problems logging into mysql as a certain user.
They exist in the system, and I can log on as my other user, but when I try with this one, it gives me an error:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'pawprint@localhost' (Using password: YES)'

Not sure where I need to go to start troubleshooting this.
any suggestions?



Just a friendly reminder, a mysql user has nothing to do with a system user. You need to manually add users for mysql.


http://www.mysql.com/doc/en/Adding_users.html
_________________
--+//+
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum