I was attempting to use phpMyAdmin to restore a table into a database but phpMyAdmin was choking on the 45MB sql dump file.
So I FTPed the SQL file up to my webspace and upon someone's advice, and SSH to root with
mysql -u[databasename] -p[password] < /home/httpd/vhosts/mydomain.com/httpdocs/database_table.sql
For anything I try I get the following error.
ERROR 1045: Access denied for user: '[databasename]@localhost' (Using password: YES)
What am I doing wrong here?