MySQL data backup out of opening file error

Source: Internet
Author: User
Tags mysql in

Today, using the command to export the database for recovery on the new VPS, a situation occurs:

Error message:

Mysqldump:got error:23:out of opening file './zrblog_dfhghdt/pre_ucenter_settings. MyD ' (errcode:24) when using LOCK TABLES

First use the Ulimit-n command to view the number of open file limits:

ROOT@ZR [~]# Ulimit-n
1024

We need to adjust the value of Open_files_limit in the MySQL configuration file

Edit my.cnf (instruction Vi/etc/my.cnf), I have no open_files_limit here,

Just increase the value of it.

My original is Open_files_limit = 600

Later to be modified into open_files_limit = 1024

Save it when you are done, restart MySQL, and then try the backup of our initial command.

OK, it's done.

Of course, there is another way to backup, such as we use the Professional Backup tool or package MySQL in the Data directory files

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.