1

ERROR 2002 (HY000): Can't connect to local MySQL server through socket

view story
linux-howto

http://stackoverflow.com – I am trying to change the data directory for mysql in a LAMP setup. The partition that LAMP is installed in cannot support the size of a .sql dump I am trying to import. I have another hardrive with plenty of room on it that I want all the data to live on. I have changed the datadir to my new directory and moved the /var/lib/mysql folder and content to it. I also updated the /etc/apparmor.d/usr.sbin.mysqld file to the following: #/var/lib/mysql/ r, #/var/lib/mysql/** rwk, /media/myData/dataDirUbuntu/mysql/ r, /media/myData/dataDirUbuntu/mysql/** rwk, Trying to restart MySQL, I get the f (HowTos)