Changing the tmp folder of mysql

前端 未结 6 1014
我寻月下人不归
我寻月下人不归 2021-02-01 15:22

Our Mysql queries use temporary tables which creates temporary files in the process. Currently the files are written to /tmp. How exactly can the path of the temp folder to whic

6条回答
  •  情书的邮戳
    2021-02-01 16:01

    if you dont have apparmor or selinux issues, but still get errorcode 13's:

    mysql must be able to access the full path. I.e. all folders must be mysql accessible, not just the one you intend in pointing to.

    example, you try using this in your mysql configuration: tmp = /some/folder/on/disk

    # will work, as user root:
    mkdir -p /some/folder/on/disk
    chown -R mysql:mysql /some
    
    # will not work, also as user root:
    mkdir -p /some/folder/on/disk
    chown -R mysql:mysql /some/folder/on/disk
    

提交回复
热议问题