Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR 3680 (HY000): Failed to create schema directory 'test' (errno: 13 - Permission denied)

I added mysql with homebrew. I try create a table using

$ mysql -uroot

then

mysql> create database test;

I get

ERROR 3680 (HY000): Failed to create schema directory 'test' (errno: 13 - Permission denied)

Edit

enter image description here

like image 718
AlexanderDavidson Avatar asked Nov 28 '25 02:11

AlexanderDavidson


1 Answers

Most likely the permissions in your MySQL data directory are wrong.

Look into your data directory and make sure, that it is owned by the use MySQL is running as.

like image 169
Eugen Rieck Avatar answered Nov 29 '25 17:11

Eugen Rieck



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!