Page 1 of 1

Errcode: 13

PostPosted: 23. March 2006 17:29
by cs02sc
I have XAMPP set up on a mandriva 2006 installation.
I have installed it fine but i have a problem that when i go into phpmyadmin and look at a table is gives the following error:

Error

SQL query: Edit

SHOW FULL FIELDS FROM `customers` ;

MySQL said: Documentation
#1 - Can't create/write to file '/root/tmp/#sql_2c9c_1.MYI' (Errcode: 13)

Anyone got any ideas, becuase we really are in tears over this

PostPosted: 24. March 2006 13:10
by Oswald
Dear cs02sc!

Did you made any changes to /opt/lampp/etc/my.cnf?

Greetings
Oswald

PostPosted: 24. March 2006 14:22
by cs02sc
No should I have?

PostPosted: 25. March 2006 13:20
by Oswald
Dear cs02sc!

Good. Please call the following two commands:

echo $TMPDIR
echo $TMP

What output do you get?

Greetings
Oswald

PostPosted: 28. March 2006 10:36
by cs02sc
for both of them i get

"root/tmp"

is this correct?

PostPosted: 28. March 2006 10:44
by Oswald
Dear cs02sc!

That's the problem. In this case please edit /opt/lampp/etc/my.cnf and search for this line:

#tmpdir = /tmp/

Now, remove the # in front of the line:

tmpdir = /tmp/

Restart XAMPP and everything should work now.

Greetings and good luck
Oswald

PostPosted: 28. March 2006 12:20
by cs02sc
it works

I love you very much :wink: