import - Uploading small .sql file to MySQL database file returns error (XAMPP on OS X) -


i running fresh install of xampp 1.8.2 osx , trying upload exported database 171kb in size.

getting hit error warning: file upload error - unable create temporary file in unknown on line 0

from have discovered may have write permissions /tmp file doesn't seem exist on system.

trying set can make changes locally on clients website without breaking live site.

cheers , taking look.

solved

within file uploads section of php.ini there resides this:

;upload_tmp_dir =

to allow uploads uncomment , give tmp dir home:

upload_tmp_dir = "/tmp"

the recent default installation of xampp on lion has couple of important lines commented out (in regards phpmyadmin/mysql). not sure why, love learn reasoning behind it.


Comments