[英]mysqldump: Couldn't execute 'show fields from `': Got error 28 from storage engine (1030)
I transferred over my mysql database from one hard drive partition to another after the original partition was apparently full. 在原始分区显然已满后,我将我的mysql数据库从一个硬盘分区转移到另一个硬盘分区。 Afterwards, I modified the my.cnf file so that the data directory points to the new partition.
之后,我修改了my.cnf文件,以便数据目录指向新分区。 This new partition does indeed have extra space, but when I try to dump the mysql database, or even show the columns of a table, I'm left with the following error:
这个新分区确实有额外的空间,但是当我尝试转储mysql数据库,甚至显示表的列时,我留下了以下错误:
Got error 28 from storage engine (1030)
My df -h command gives the following: 我的df -h命令给出以下内容:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/isw_jiajcifaa_SecureDatap1 880G 873G 0 100% /
tmpfs 12G 0 12G 0% /lib/init/rw
udev 12G 236K 12G 1% /dev
tmpfs 12G 140K 12G 1% /dev/shm
/dev/sdc1 917G 257G 615G 30% /data
I moved the files from the original /var/lib/mysql to /data/mysql and changed the my.cnf as follows: 我将文件从原始的/ var / lib / mysql移动到/ data / mysql并更改了my.cnf,如下所示:
user = mysql
pid-file = /data/mysql/mysqld.pid
socket = /data/mysql/mysqld.sock
port = 3306
basedir = /usr
datadir = /data/mysql
tmpdir = /tmp
Does anyone have an idea of the error? 有没有人知道错误?
The problem wasn't the location of the database, which I moved to the correct partition, but rather the sockets that MYSQL uses to transfer the data. 问题不在于数据库的位置,我将其移动到正确的分区,而是MYSQL用于传输数据的套接字。 The sockets are defined in both the my.cnf and debian.cnf (for Ubuntu), and since the partition was full, absolutely no data could be read from MYSQL.
套接字在my.cnf和debian.cnf(对于Ubuntu)中定义,并且由于分区已满,绝对没有数据可以从MYSQL中读取。 I also had to change the temporary directory initiative in my.cnf.
我还必须更改my.cnf中的临时目录计划。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.