Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > MySQL passwords

MySQL passwords
Thread Tools
Junior Member
Join Date: May 2001
Status: Offline
Reply With Quote
Jun 6, 2001, 11:17 AM
 
I already had MySQL installed on my system (10.0.3 client) and went to try to actually use it today.

Well I can't log into it using the 'mysql' command, likely because I changed passwords and can no longer remember them...

I reinstalled MySQL using the package and instructions at http://www.entropy.ch/software/macosx/ and everything went fine until i ran 'mysql test' at which point I get a permission denied error:

ERROR 1045: Access denied for user: 'jstys@localhost' (Using password: NO)

I also can't get in using 'mysql -u root' which should work fine because by default the root user has no password...

Is there password file that I can delete to fix this, or is there a way to completely unistall everything so that a fresh install will be back to normal?

Thanks for any help, I'm fairly new to this.
     
Junior Member
Join Date: May 2001
Status: Offline
Reply With Quote
Jun 6, 2001, 01:14 PM
 
If anyone is interested, I fixed my own problem by deleting the following directory and then reinstalling the mysql package:

/usr/local/var/mysql

now everything works as expected.
     
Dedicated MacNNer
Join Date: Aug 1999
Status: Offline
Reply With Quote
Jun 6, 2001, 01:35 PM
 
You can also start mySQL without the grant tables and then change your password manually. The procedure is detailed in the mySQL manual.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:48 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2