An error occurred while writing files in MySQL in Linux (Errcode: 13). solution:

Source: Internet
Author: User

An error occurred while writing files in MySQL in Linux (Errcode: 13) solution: select * into outfile '/home/mysql/data in the database. SQL 'Shell prompts ERROR when exporting data: ERROR 1 (HY000): Can't create/write to file'/home/mysql/data. SQL '(Errcode: 13) after confirming that it is not a permission issue, use the following method to solve setsebool-P mysqld_disable_trans = 1. After executing the preceding command, restart the mysql service, shell does not report the error "shell> getsebool-a". You can view the current permissions on a series of Daemon Processes in the system. Offline --> off mail_read_content --> off queue illa_read_content --> off queue --> off nagios_disable_trans --> off queue --> on nfs_export_all_rw --> on nfsd_disable_trans --> off nmbd_disable_trans --> off nrpe_disable_trans --> off-P indicates yes Permanent settings. Otherwise, the preset values are restored after restart.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.