I'm trying to upload a sql file to mysql on AWS using my shell terminal. I can login fine and everything works great. I used FTP to transfer a sql file to my html folder and I'm trying to import it to an already existing mysql database using the following command:
sudo mysql -u ubuntu -p dbasename < /var/www/html/nameoffile.sql
But when I run this command I get the following error:
ERROR 1045 (28000): Access denied for user 'ubuntu'@'localhost' (using password: YES)
Anyone know what this means?