It's insane. I have tried all the methods but it still throws the same error.
I have a database, want it to run on MySQL-Server
. At the beginning of the Database:
DROP SCHEMA IF EXISTS someDB;
CREATE SCHEMA someDB;
USE someDB;
When I tried SHOW DATABASES LIKE 'someDB';
it confirms the existence of it.
I tried:
chmod
for the full path to it/var/lib/mysql/someDB/someDB.sql
- Stopping
MySQL-Server
, Deleting the thesomeDB
folder and starting the Server again. - I removed the entire
MySQL-Server
and reinstalled it again.
After hours of trying, I really need you help.
EDIT:
Answering Y. Collin Comment, when I run sudo ls -la ./someDB
, it returns:
total 20
drwxrwxr-x 2 ubuntu ubuntu 4096 Nov 14 16:53 .
drwxrwxrwx 5 mysql mysql 4096 Nov 14 16:53 ..
-rwxrwxrwx 1 ubuntu ubuntu 12243 Nov 14 16:53 someDB.sql