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 > Fresh install of MySQL denies access to root user

Fresh install of MySQL denies access to root user
Thread Tools
IceLatte
Fresh-Faced Recruit
Join Date: Jun 2007
Status: Offline
Reply With Quote
Jun 24, 2007, 05:05 PM
 
Problem:
With a fresh install of MySQL v5 I cannot log in as root user. Since its a fresh install, there should be no password in existence for root. I try with mysql -u root so I can then assign a password for security, then hit enter. My bash profile is already set up correctly.

Stuff I've done to try to fix it:

MySQL AB :: MySQL 5.0 Reference Manual :: B.1.4.1 How to Reset the Root Password

I've tried both of the ways they suggest for Unix (by nixing the .pid file and starting up my skipping grant tables.

I've tried this:

mysqld_safe --user=mysql --skip-grant-tables &

Then Execute these statements.
mysql -u root mysql
mysql> UPDATE user SET Password = PASSWORD('your_new_password') where USER = 'root';
mysql> FLUSH PRIVILEGES;

Everytime I get permissions denied for any files in my 'data' directory. The data folder is owned by 'mysql' user with a group of 'wheel'. That is the default privileges on install.

While futzing around before I managed to execute the above suggestions by changing the owner to my User name, and the group to mysql. However, even with the UPDATE script setting a new password, I couldn't get in with the one I set.

I know its confusing, but if this looks familiar to anyone, please please help me. A friend of mine mentioned having the same problem and she just gave up, but I'm determined to get this to work.

And I have tried uninstalling with the sudo rm commands and reinstalling several times with the exact same results.

My firstborn goes to anyone who helps solve this... (or maybe just a six pack).
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jun 24, 2007, 06:44 PM
 
Do a ps auxwww | grep mysql and tell us what data dir the process is using. Then, do a tail of your MySQL error log (in your data dir) and tell us what error messages you see there.
     
   
 
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
Top
Privacy Policy
All times are GMT -4. The time now is 05:59 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,