MySQL, copying tables files gives rise to “ERROR 1017 (HY000): Can't find file:” even though its there there

前端 未结 7 2214
时光说笑
时光说笑 2020-12-14 04:41

I want to copy the database tables from my production server to a local test machine so I can perform test om (copies of) the real data.

I stopped mysql and deleted

7条回答
  •  無奈伤痛
    2020-12-14 04:43

    I changed permissions for the mysql-data-directory as well as the

    .frm file.
    If using as root user:

    • chmod 600 mysql-data-directory chmod 600
    • mysql-data-directory/tableOfData.frm

    If using as non-root user:

    • chmod 660 mysql-data-directory
    • chmod 660 mysql-data-directory/tableOfData.frm

    提交回复
    热议问题