首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

网站搬家SQL导入导出

首先以root身份运行:

从数据库导出数据库

例如:

mysqldump -u root -p sqlroot wordpress > wordpress.sql

从文件导入数据库

例如:

mysql -uabc_f -p abc

期间遇到如下问题:

The mysql error: Out of resources when opening file… (Errcode: 24) indicates that the number of files that msyql is permitted to open has been exceeded.

最终找到解决办法:

This limit is controlled by the variable open_files_limit. You can read this in phpMyAdmin (or the MySQL command line utility) with the statement:

To set this variable to a higher number, edit the /etc/my.cnf file and add the lines:

note:

我的系统版本是Debian7和Centos7.4。

本文修改于180803

  • 发表于:
  • 原文链接https://kuaibao.qq.com/s/20180803G1X1RI00?refer=cp_1026
  • 腾讯「腾讯云开发者社区」是腾讯内容开放平台帐号(企鹅号)传播渠道之一,根据《腾讯内容开放平台服务协议》转载发布内容。
  • 如有侵权,请联系 cloudcommunity@tencent.com 删除。

扫码

添加站长 进交流群

领取专属 10元无门槛券

私享最新 技术干货

扫码加入开发者社群
领券