S
S
s-serg2018-06-04 17:13:55
linux
s-serg, 2018-06-04 17:13:55

How to fix MySQL error (Errcode: 13 - Permission denied) when creating a table with DATA DIRECTORY = 'path'?

Variable value datadir = /var/lib/mysql/ Trying to create a table specifying a different data storage location (on a different disk partition) using DATA DIRECTORY = 'path' gives error
#1 - Can't create/write to file 'path' /table_name.MYD' (Errcode: 13 - Permission denied)
follow the instructions https://dev.mysql.com/doc/refman/8.0/en/tablespace...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Konyukhov, 2018-06-04
@heahoh

Give the user running the mysqld process read/write permissions on this directory
chown + chmod

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question