{"id":3224,"date":"2019-04-04T17:29:25","date_gmt":"2019-04-04T17:29:25","guid":{"rendered":"https:\/\/209.235.70.100\/?p=3224"},"modified":"2021-05-12T17:50:53","modified_gmt":"2021-05-12T17:50:53","slug":"mysql-error-1-hy000-cant-create-write-to-file","status":"publish","type":"post","link":"https:\/\/www.navisite.com\/blog\/mysql-error-1-hy000-cant-create-write-to-file\/","title":{"rendered":"MySQL ERROR 1 (HY000): Can’t create\/write to file"},"content":{"rendered":"\n
In my first post on the RDX Blog, I’ll be describing a common permissions error DBAs receive (Errcode: 13 – Permission denied) and how to address it.
<\/p>\n\n\n\n
> desc foo_table;<\/code><\/pre>\n\n\n\nERROR 1 (HY000): Can't create\/write to file '\/tmp\/#sql_3ff6_0.MYI' (Errcode: 13 - Permission denied)<\/code><\/pre>\n\n\n\nThe error is documented here: https:\/\/dev.mysql.com\/doc\/refman\/5.6\/en\/cannot-create.html<\/a>
<\/p>\n\n\n\nWhat happened to the permissions on the \/tmp folder? It is not allowing writes. First, we have to fix that then start looking into what or who changed permissions in the directory.<\/p>\n\n\n\n
chmod 1777 \/tmp\n\ufeff<\/code><\/pre>\n\n\n\nI will use this error as an example..
<\/p>\n\n\n\n
First, look at the entire error message and do not focus on the first error you see. For example, if you have an Errcode:<\/p>\n\n\n\n
do not focus on ERROR 1\ndo not focus on HY000<\/code><\/pre>\n\n\n\nYou would be wasting your time since the Errcode gives you all the information you need. If that happened to be the only error message information that was passed along to you, then you do have resources available to look up errors:
<\/p>\n\n\n\n
- https:\/\/dev.mysql.com\/doc\/refman\/5.6\/en\/error-messages-server.html<\/a><\/li>
- https:\/\/dev.mysql.com\/doc\/internals\/en\/<\/a><\/li><\/ul>\n\n\n\n
I would also stress that you should double check the error log to confirm all error messages. Just because someone sends you an error does not mean it is the entire story. Always check your logs.
<\/p>\n\n\n\n
If you do run across an error that gives you little description, it is true that you have the ability to learn more about the error.
<\/p>\n\n\n\n