Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

#1 - Can't create/write to file '/var/folders/

I get the following error(see. figure) in my Xampp and can not access mySQL through XAMPP and phpMyAdmin. In this link-1 and link-2 possible solution is given; but none of them woks in Mac OS 10.9

I assume the problem is with configuration file my.cnf which is located in the /Applications/XAMPP/xamppfiles/etc/my.cnf.

Any suggestion will be appreciate. Thanks.

enter image description here

like image 818
J4cK Avatar asked Dec 07 '22 04:12

J4cK


1 Answers

  1. Completely stop XAMPP, this means stop apache, ftp and mysql.

  2. Open the program called Terminal.

  3. Type in sudo -i to become root (or do su root if the first doesn’t work for you).

  4. You are most probably asked for a password which you have to enter while no characters are displayed.

  5. Execute chmod 600 /Applications/XAMPP/xamppfiles/etc/my.cnf .

  6. Exit your root shell with exit or just close Terminal.

  7. Restart XAMPP (apache, ftp and mysql).

From: http://slopjong.de/2009/08/31/houston-i-cant-write-to-file/

like image 195
Nicola Avatar answered Dec 11 '22 09:12

Nicola