mysql cannot find database after dropped of it and restored
From the root account do:


  show grants for data@'localhost';   


If it's empty then re-add the grants. Your dump file probably didn't contact the MYSQL db so it didn't restore the permissions.