I have looked through a lot of similar solutions but have been unable to resolve my issue so hopefully someone can help.
I have joined a Rails project and need to pull data via a dump.sh file to enable me to work locally. Whenever I run the required command, I receive this error:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
mysql -u root
mysql -u root -p
I have seen this error before, that was because the database.yml contain some special characters that can't see in normal mode of text editor. I suggest to try to create totally new database.yml file from scratch then input database info again manually, restart the server to check the result.