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.

 
Go Back  dBforums > Database Server Software > MySQL > Post-Installation on a Mac OSX Snow Leopard

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-15-11, 05:44
anjanesh anjanesh is offline
Registered User
 
Join Date: Feb 2005
Location: Mumbai, India
Posts: 161
Post-Installation on a Mac OSX Snow Leopard

I installed MySQL on a Mac OSX Snow Leopard and got the mysql service started but I couldn't login as root to reset the password.

1. ./mysql - logs in with no username and no password but show databases doesnt show a mysql database.

2. Couldn't login as root either.
Code:
$ ./mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO
3. Neither did mysqladmin work
Code:
./mysqladmin -u root password "password"
./mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Is there any other way ?
__________________
MySQL 5.1
Reply With Quote
  #2 (permalink)  
Old 10-17-11, 02:51
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
Hi,

I did put together a video tutorial on how to reset the root password if it became lost. This might be of interest to you: MySQL - changing lost root password - YouTube
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #3 (permalink)  
Old 11-03-11, 08:23
anjanesh anjanesh is offline
Registered User
 
Join Date: Feb 2005
Location: Mumbai, India
Posts: 161
Thanks ! This worked. Yay ! There are some differences though. On my Mac 10.6.6, process usernames dont show up on ps -ef. It shows the userid instead. I had to just figure out the userid (0 being root and the other one being mysql).
__________________
MySQL 5.1
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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