Magento Error: SQLSTATE [HY000]: General Error: 1

I hope this issue is approved for. If this does not fit, let me know and I will remove if this happens.

Magento recently gave me the following error when I visit a store on a Windows machine:

SQLSTATE [HY000]: General error: 1 Cannot create / write to file "C: \ WINDOWS \ TEMP # sql_ac0_0.MYI (Errcode: 17)

I guaranteed that I am using a database user with all permissions.

What puzzles me about the error is a link to C: \ WINDOWS \ TEMP ... as a local file on a Windows machine. May I add that the problem only occurs when Im testing on Windows machines and not on my Mac.

The machines I'm testing on have cookies.

What feature of Magento requires users to write to the PC besides leaving a cookie? (and even if it's just a cookie, why should it break the site?)

+3
source share
2 answers

You may have installed Magento in a folder without write permission. This is a mySQL error, not PHP.

People from Magento have a forum post about this. The solution is to change permissions, although MAMP or any other server that you use to read and write to folders and files.

+1
source

For those who found this topic, I experienced the same thing and found that none of the answers on the Internet solved the problem.

, , , ( ) , .

( ) , .

+1

Source: https://habr.com/ru/post/1721709/


All Articles