I took dump of a DB from the production. I want to import into my local database
mysql -u user_name -p db < db.sql
But it shows some error
ERROR 1005 (HY000) at line 25: Can't create table 'table_account' (errno:13)
And I am unable to import the table. This issue is occurring when I try to Import a particular database. Tried to import some other database. It works fine.
Could anybody solve this.
Thanks in Advance.
Check the owner of the database directory, may be its the issue..
try this : chown -R mysql:mysql /var/lib/mysql/database_name.