ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_4188_1.MYI' (Errcode: 28)

mysql Errcode 28

磁盘还可以但是inode表没有了

dd if=/dev/zero of=tmpforinde count=1024 bs=1024KB
mke2fs -N 5000000 -b 1024 -I 128 tmpforinde #格式化成ext2分区(因为ext3有日志系统,会消耗空间),制定inode大小为
mount -o loop tmpforinde /var/tmp

[email protected]:/var# df -h
Filesystem Size Used Avail Use% Mounted on
none 7.9G 184K 7.9G 1% /dev
/dev/mapper/eccubuntu-root
                      129G 100G 22G 82% /
none 7.9G 0 7.9G 0% /dev/shm
none 7.9G 64K 7.9G 1% /var/run
none 7.9G 0 7.9G 0% /var/lock
none 7.9G 0 7.9G 0% /lib/init/rw
/dev/sda1 228M 113M 103M 53% /boot
/dev/loop0 388M 3.3M 334M 1% /var/tmp

[email protected]:/var# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
none 2055913 641 2055272 1% /dev
/dev/mapper/eccubuntu-root
                     8536064 8534320 1744 100% /
none 2057128 1 2057127 1% /dev/shm
none 2057128 39 2057089 1% /var/run
none 2057128 3 2057125 1% /var/lock
none 2057128 1 2057127 1% /lib/init/rw
/dev/sda1 124496 243 124253 1% /boot
/dev/loop0 5003712 11 5003701 1% /var/tmp

ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_4188_1.MYI' (Errcode: 28)

时间: 2024-08-15 08:13:56

ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_4188_1.MYI' (Errcode: 28)的相关文章

ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_830_0.MYI' (Errcode: 13)

mysql操作时,出现报错. 执行describe 命令时, 临时文件目录没有创建或者无写入权限:于是: cd /var/lib/mysql/ #进入mysql数据目录 mkdir tmp #创建需要的临时目录 chown mysql.mysql /var/lib/mysql/tmp #给临时目录分配mysql权限用户及群组 ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_830_0.MYI' (Errcode: 13)

ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_909_0.MYI' (Errcode: 13)

mysql> desc tablename; ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_909_0.MYI' (Errcode: 13) 两种解决办法:方法一:1.chmod 777 /tmp[[email protected] /]# chmod 777 /tmpchmod: 更改"/tmp" 的权限: 只读文件系统 --遇到这种情况,tmp权限无法更改. 2./etc/init.d/mysqld start

ERROR 1 (HY000): Can‘t create/write to file ‘/data

使用非DBA用户进行load data 操作,发现报错. MariaDB [temp_archive]> select * from t1 into outfile '/data/test.sql'; ERROR 1 (HY000): Can't create/write to file '/data/test.sql' (Errcode: 13 "Permission denied") 提示报错. 报错原因权限不足. 分析: 权限有系统权限和数据库权限. /data 目录权限

编译安装mysql ERROR: 1 Can't create/write to file '/tmp/#sql_86b_0.MYI'

之前安装一个5.1版本,试了一个5.5版本,useradd -s /sbin/nologin -M mysql   创建一个mysql用户mkdir -p /data/mysql chmod -R /data/mysql cd /usr/local/mysqlscripts/mysql_install_db --user=mysql --datadir=/data/mysql出现报错:ERROR: 1  Can't create/write to file '/tmp/#sql_86b_0.MY

ERROR 1005 (HY000): Can't create table'matrix.system_log' (errno: 150)

CREATE TABLE `user` (`id` bigint(32) NOT NULL AUTO_INCREMENT ,`name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,`erp` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' ,`email` varchar(32) CHARACTER SET

Mysql错误问题:ERROR 1005 (HY000): Can't create table 'crm_1.tbl_client' (errno: 150)

MySQL外键创建条件: 1.两个表必须是InnoDB数据引擎2.外键表的外键字段必须是主键3.字段类型必须一致 创建表时创建外键: create table tbl_client(userName varchar(255) not null, address varchar(255), createDate timestamp not null default now(), createUserName varchar(255), foreign key(createUserName) ref

ERROR 1005 (HY000): Can't create table 'sakila.book2' (errno: 150)

mysql> create table user2(     -> id int,     -> name varchar(10),     -> primary key(id))     -> engine=innodb; Query OK, 0 rows affected (0.02 sec) mysql>  create table book2(     ->  id int,     ->  bookname varchar(10),     -&g

mysql报Can't create/write to file '/tmp/ib0n3frL' (Errcode: 13 - Permission denied)

初始化数据库报错 [[email protected] mysql-5.6.24]# /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data Installing MySQL system tables...2017-04-03 19:52:21 0 [Warning] TIMESTAMP with implicit DEFA

Unable to use slave's temporary directory /tmp - Can't create/write to file '/tmp/SQL_LOAD-' (Errcode: 17)

这个错误时在Mysql主从配置产生的,最后找到这个Mysql的一个bug http://bugs.mysql.com/bug.php?id=62055 bug的主要原因是:打开文件的函数中指定打开模式时,如果O_CREAT和O_EXCL同时指定,那么当文件存在时会导致打开文件出错,这个使用方法本来也没有什么错误,但是当使用Mysql主从备份机制,在一台服务器上安装多个mysqld实例时,就会出问题,代码在Mysql源码中/sql/slave.cc文件中,Mysql5.1.68是在2904行 /*