★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum4/HTML/000650.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  MySQL
  authenication help on local win32 box

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   authenication help on local win32 box
sano
Member
posted June 30, 2000 06:48 PM     Click Here to See the Profile for sano   Click Here to Email sano     Edit/Delete Message Reply w/Quote
I'm having trouble with my mySQL server on my local computer --

Whenever I type mysql -h localhost -u sano -p
and it asks for the password, and I type it in, it returns with:

error 1045: Access denied for user: 'sano@localhost' (Using password: YES)

My questions:

1. Why does this happen?
2. How can I tell if I ever set a password for this account (I can also access by just using -h and -u without the -p flag)
3. What's the command to change my password?
4. How do I add additional usernames?

Thanks in advance!

Chris

lhallusa
Member
posted June 30, 2000 11:41 PM     Click Here to See the Profile for lhallusa   Click Here to Email lhallusa     Edit/Delete Message Reply w/Quote
Access denied for user error
If you get the error Access denied for user: 'some-user@unknown' to database 'mysql' when accessing a MySQL server on the same machine, this means that MySQL can't resolve your host name properly. To fix this, you should create a file `\windows\hosts' with the following information:
127.0.0.1 localhost

Here are some URL if you care to read them I believe the MySQL manual will answer all your questions.
http://src.doc.ic.ac.uk/packages/mysql/Manual_chapter/manual_Privilege_system.html#Privilege_system

http://src.doc.ic.ac.uk/packages/mysql/Manual_chapter/manual_Installing.html#Win32_vs._Unix
http://src.doc.ic.ac.uk/packages/mysql/Manual_chapter/manual_Installing.html#Win32_running

All times are MST (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.