Venture Lee wrote:
Mysql::Error: Can’t create/write to file
13): SHOW FIELDS FROM products
This area (/var/folders) contains a number of files related to running
applications. In this particular case, it looks like some temporary
storage for MySQL. Was MySQL installed as an admin user? Is it set to
start up on boot or do you start it manually?
The /var/folders area is a protected area and, in general, only
applications running with admin rights will be able to use it so MySQL
must be setup from an admin user account.
My recommendation would be to stop the MySQL service (from System
Preferences), re-install the package as an admin user, setting it
running (from the admin account) and try again.
Some people have had success by just giving all users on the machine
full read/write access to /var/folders (as admin user: sudo chown -R
a+rw /var/folders), but this should be a last resort as it may open up
your machine to other problems.
Try searching the internet for references to this directory (especially
on Apple support sites).