Question
How do you configure MySQL to use block storage on Ubuntu 14.04?
Within /etc/mysql/my.conf
, you can easily set datadir=/mnt/your_block/mysql
, but there are some deeper issues with apparmor
. How do I reconfigure apparmor
to acknowledge my new datadir
?
I’ve followed directions at this StackOverflow post, but upon completion I get ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/mnt/volume-nyc1-01/mysql/mysqld.sock'
I can’t find mysqld.sock
.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×