i want to import a very large sql file.So I am using the following command
mysql -u username -p dbname < something.sql
and when it prompts for password i give the password...
then it throws an error like this
ERROR 1044 (42000) at line 21: Access denied for user 'username'@'localhost' to database 'db'
I used the grant command and gave permissions using control panel too...still getting the same error..
any idea why it is throwing this error??Please help me..