mysql ERROR 3680 (HY000): Failed to create schema directory

Viewed 10119

enter image description here

Im trying to create database using mysql but getting this error

ERROR 3680 (HY000): Failed to create schema directory 'XXX' (errno: 2 - No such file or directory)

2 Answers

Try to reboot your computer and use(systemctl) this to start mysql :

sudo systemctl start mysql

You could ps -ef and list all PID, found the mysql PID and sudo kill -9 [mysql_pid]

Related