I'm on a Debian host, and dropped a database from a Django project and then tried to re-create it. I've tried variations on a same basic theme from mysqladmin and mysql to create a database, and (after an initial success creating a first database before I dropped the database) I am trying things like:
[as root]
mysqladmin create foo -uroot -p
and always getting a response like:
ERROR 1006 (HY000): Can't create database 'foo' (errno: 28)
Searching a little has suggested that the error message can be a permissions / ownership issue. I've looked briefly, and my.cnf points to /var/lib/mysql. /var/lib/mysql is owned by mysql:mysql; all directories are mode 700 and there are files inside the root at 660 and 644.
What do I need to do so that the database I dropped, now nonexistant AFAICT, is replaced by a fresh new database at the same name?
(I tried to create databases with completely new names, and got the same error.)
I am running:
mysql Ver 14.14 Distrib 5.5.49, for debian-linux-gnu (x86_64) using readline 6.3
Linux www 4.5.0-x86_64-linode65 #2 SMP Mon Mar 14 18:01:58 EDT 2016 x86_64 GNU/Linux