MySQL: Can't create/write to file '/tmp/#sql_3c6_0.MYI' (Errcode: 2) - What does it even mean?

后端 未结 14 1001
忘掉有多难
忘掉有多难 2020-12-02 14:00

For some reason my production DB decided to spew out this message. All application calls fail to the DB with the error:

PreparedStatementCallback; SQL [ /*lo         


        
14条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 14:49

    I meet this error too when I run a wordpress on my Fedora system.

    I googled it, and find a way to fix this.

    Maybe this will help you too.

    1. check mysql config : my.cnf

       cat /etc/my.cnf | grep tmpdir
      

      I can't see anything in my my.cnf

    2. add tmpdir=/tmp to my.cnf under [mysqld]

    3. restart web/app and mysql server

      /etc/init.d/mysqld restart

提交回复
热议问题