Error 'access Denied For User 'root'@'localhost' (using Password No)' Mac
Apr 20, 2017 How to solve Access denied for user 'root'@'localhost' using password: YES or Access denied for user 'root'@'localhost' (using password: NO) or reseting the mysql password.
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upHave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
commented May 15, 2015
I was able to create a new napa project and install the dependencies. Now when I do it throws the following error. So, I prepend But this time throws the following error The above error is quite weird because inside the project in the As seen the username is |
commented May 17, 2015
I also ran into this issue, but it has been fixed. Looks like the gem hasn't been updated. To resolve, update your Gemfile. Replace with Then run |
commented May 23, 2015
Napa 0.5.0 was released to rubygems on 5/19, so this fix is now in the release as well - https://rubygems.org/gems/napa. |
- Just downloaded mysql community server and mysql workbench
- Followed along in the video (this is clearly an outdated video but you can follow along well enough)
- When connecting to the server i get error 'Cannot connect to database server'. access is denied for user root @ localhost (using password: YES).
- From lots of googling i think i need to reset the password
How do I reset the root password? (Mac latest OX)
Hi.
Unfortunately I use Linux, so this instruction may not help.
Yet you can try it.
I had the same problem, and here is the post that solved all my problems
There is suggested to run the following commands:
I. Stop Mysql.
As a note here, i should add, that if you won't probably have mysql
at /etc/init.d/mysql
, so judging from this post:
Try to executed this one
II. Start Mysql Safe:
Wacom bamboo driver. normally mysqld_safe
program should be on your $PATH, which means you can execute it just like that without a problems. If it is not, let me know. May be mysqld_safe
can be in /usr/local/mysql/bin/mysqld_safe
. This I can only guess from this post:
III. Start Mysql.
Again you are on Mac so instead you probably should use :
IV. Login as root.
This command on Mac again probably should be somewhat like, if simply typing mysql
won't work..
This last command asks you finally to RESET password to the one you like, and you finally be able to use MySQL server and Workbench properly
I have tried those steps and some variations on those steps and its not working. I keep getting invalid command. Please help! This is so frustrating :(
I'm sorry, yeah I know, I spend whole day digging how to do it ..Unfortunately It is very hard to help you remotely.. The worst thing also that I have Linux, and not Mac ..
So if you have anyone that can help you locally, that would be the best solution..
I would you recommend you to remove MySQL and try to re-install it.Here for example instructions to remove MySQL i found
After doing that, install MySQL using following Guide on official MySQL pagehttp://dev.mysql.com/doc/refman/5.7/en/osx-installation-pkg.html
According to it, at the step 7, temporary password will be shown
Try to follow those instructions, may be that will work. They look pretty straightforward to me ..
Of course you also can write me exactly what commands are you writing and its output, and we can try to debug where the problem is, but because Mac has such a nice GUI installator, I think you should to try to reinstall
I appreciate all your help on this. It is really good to know that treehouse is so supportive. Unfortunately it still isnt working. I think when I first downloaded it, I copied the files to some other location and can't uninstall it completely. I think I am just going to have to sit down for a couple hours and figure this all out or maybe go to a tech night around here
I understand..
But before you go, I wanted to advice you one more thing.
MySQL workbench is not the only tool around to create Databases.
Check out this site
There plenty of SQL programs out there .. If I were you I would have tried others
For example I really like JetBrains company, and if I ever need database creation tool, I'm going to try 'DataGrip' solution.
It has 30-day trial, but still is a definitely a thing to try.
I know it will be a bit more complicated to follow the course, but still.
MySQL it is just a tool, nothing else. And if a tool does not work, you use another one that does.
Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.