Last_Error:Unabletouseslave'stemporarydirectory/var/tmp
mysql> SHOW SLAVE STATUSG;
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 192.168.199.151
Master_User: t1
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000001
Read_Master_Log_Pos: 151
Relay_Log_File: t1-relay-bin.000001
Relay_Log_Pos: 4
Relay_Master_Log_File:
Slave_IO_Running: Yes
Slave_SQL_Running: No
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 1
Last_Error: Unable to use slave`s temporary directory /var/tmp | – Can`t read dir of `/var/tmp |/` (Errcode: 2 – No such file or directory)
Skip_Counter: 0
Exec_Master_Log_Pos: 0
Relay_Log_Space: 562
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 12
Last_SQL_Error: Unable to use slave`s temporary directory /var/tmp | – Can`t read dir of `/var/tmp |/` (Errcode: 2 – No such file or directory)
Replicate_Ignore_Server_Ids:
Master_Server_Id: 11
Master_UUID: 3fb17f98-e5e3-11e5-a895-000c29c89983
Master_Info_File: mysql.slave_master_info
SQL_Delay: 0
SQL_Remaining_Delay: NULL
Slave_SQL_Running_State:
Master_Retry_Count: 86400
Master_Bind:
Last_IO_Error_Timestamp:
Last_SQL_Error_Timestamp: 160309 19:33:03
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set:
Executed_Gtid_Set:
Auto_Position: 1
1 row in set (0.00 sec)
ERROR:
No query specified
環境:
centos 6.5
mysql 5.6.10
主 —主—-從—從—從
也適用:
主———-從
主從切換之後,出現上面問題:
解決:
vim /etc/my.cnf
basedir = /usr/local/mysql
datadir = /mydata/data
#slave_load_tmpdir = /var/tmp #註釋
#tmpdir = /var/tmp #註釋
pid-file = /mydata/data/t1.pid
socket=/tmp/mysql.sock
port=3306
# read_rnd_buffer_size = 2M
mysql出問題,找不到問題排錯建議:
先看 主機名.err ,然後再思考my.cnf配置引數,建議精通。
對應此文章答案:
http://blog.csdn.net/u010098331/article/details/50837688(問題答案)
相關文章
- [20141128]目錄/var/tmp/oracle.txtOracle
- tmp
- Linux下的一些重要目錄/proc, /sys, /SElinux, /bin, /usr/lib, /usr/local, /var, /tmp/etcLinux
- 坑人的/tmp/.oracleOracle
- esxi6報ramdisk tmp已滿因此無法寫入檔案tmp
- aix /var 滿AI
- ${VAR:=預設值}和${VAR:-預設值} 區別
- Mysql重建/tmp/mysql/sock方法詳解MySql
- 變數宣告帶var與不帶var的區別變數
- 使用var和不使用var宣告變數的區別變數
- JavaScript變數宣告帶var與不帶var區別JavaScript變數
- HTML <var> 標籤HTML
- macOSmkdir:/usr/var:OperationnotpermittedMacMIT
- 【Mysql】Last_Error: 1778 @@SESSION.GTID_NEXT == 'UUID:NUMBER'.MySqlASTErrorSessionUI
- 【Mysql】Slave_SQL_Running: No:Last_Error: Error :1032/1062MySqlASTError
- js宣告變數帶var和不帶var的區別JS變數
- rman backup as copy database format '/tmp/%U.dbf'DatabaseORM
- 注意放在/tmp目錄下的檔案
- HP-UNIX擴充套件/tmp空間套件
- Go 中 type var string 和 type var = string 的區別Go
- [譯] lazy var in ios swiftiOSSwift
- 詳解 let 和 var
- error: invalid type argument of unary ‘*‘ (have ‘int‘) *__first = __tmp;Error
- Hive JDBC:Permission denied: user=anonymous, access=EXECUTE, inode=”/tmp”HiveJDBC
- linux /tmp 目錄檔案清理規則Linux
- GTID複製報錯處理:Last_Error: Error 'Can't drop database 'test';ASTErrorDatabase
- win10 office tmp快取檔案怎麼刪除_win10 office tmp快取檔案如何刪除Win10快取
- centos7怎麼進去tmp目錄並清除垃圾?centos7系統清除tmp目錄的垃圾方法CentOS
- JavaScript全域性作用域下,變數加var和不加var的區別。JavaScript變數
- var和public的區別
- let const var 區別
- var let const區別
- var 和 let 的區別
- let與var的區別
- let,const,var區別
- tmp目錄刪除和tmpwatch命令的使用
- 關於/var/run/docker.sockDocker
- Linux 中 /var/spool/postfix/maildropLinuxAI