国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

InnoDB 中文參考手冊 --- 13 出錯處理

2024-07-21 02:08:53
字體:
來源:轉載
供稿:網友

innodb 中文參考手冊 --- 犬犬(心帆)翻譯 13 出錯處理
innodb 的出錯處理不總是與 ansi sql 指定的一致。依照 ansi 標準,在一個 sql 語句中的任何錯誤都將引起這條語句的回滾。innodb 有時只回滾語句的一部分,有時則是整個事務。 下面的列表詳細說明了 innodb 的出錯處理。
如果用完了表空間內的文件空間,將會得到 mysql 的 'table is full' 錯誤,innodb 將回滾這條 sql 語句。 事務的死鎖或鎖定等待的超時將會使 innodb 回滾整個事務。 一個重復鍵(duplicate key)只會回滾插入的細節行,甚至在如同 insert into ... select ...的一個語句中。這或許會發生改變,所以如果在語句中沒有指定 ignore 選項這個語句將產生回滾。 'row too long' 的錯誤將回滾整個 sql 語句。 其它的錯誤主要由 mysql 的代碼層發現,它們將回滾相應的 sql 語句。
 
13.1 mysql 返回的某些錯誤代碼
  1005 er_cant_create_table 不能建立表。如果錯誤信息串引用 errno 150,那么表創建失敗是由于外鍵約束沒能正確的形成。 1016 er_cant_open_file 不能夠通過 .frm 文件在 innodb 數據文件中找到 innodb 表。查看下面的“發現并修復數據字典錯誤的操作”章節。 1114 er_record_file_full innodb 用光了表空間內的剩余空間。你必須增加一個新的數據文件。 1205 er_lock_wait_timeout 鎖等待超時期滿。事務被回滾。 1213 er_lock_deadlock 事務死鎖。需要重新運行事務。 1216 er_no_referenced_row 當試圖增加一個新行時,但是沒有父記錄存在,外鍵約束失敗。必須先添加父記錄。 1217 er_row_is_referenced 刪除一個有子記錄存在的父行,外鍵約束失敗。必須先刪除子記錄。
 
13.2 某些操作系統的錯誤編碼
在 unix 系統中,使用 perror 程序來顯示操作系統錯誤編碼的含義,它包含在 mysql 的分發中。

下面的列表顯示常見的 linux 系統錯誤代碼。 1 eperm
operation not permitted
操作不許可 2 enoent
no such file or directory
無此文件或目錄 3 esrch
no such process
無此過程 4 eintr
interrupted system call
系統調用被禁止 5 eio
i/o error
i/o 錯誤 6 enxio
no such device or address
無此器件或地址 7 e2big
arg list too long
arg 列表太長 8 enoexec
exec format error
exec 格式錯誤 9 ebadf
bad file number
文件數目錯誤
10 echild
no child processes
無子過程
11 eagain
try again
再試一遍
12 enomem
out of memory
內存溢出
13 eacces
permission denied
許可拒絕
14 efault
bad address
錯誤的地址
15 enotblk
block device required
需要塊設備
16 ebusy
device or resource busy
設備或資源忙
17 eexist
file exists
文件存在
18 exdev
cross-device link
跨器鏈接
19 enodev
no such device
無此設備
20 enotdir
not a directory
不是一個目錄
21 eisdir
is a directory
是一個目錄
22 einval
invalid argument
無效的函數自變量
23 enfile
file table overflow
文件表溢出
24 emfile
too many open files
打開的文件太多
25 enotty
inappropriate ioctl for device

26 etxtbsy
text file busy
文本文件忙
27 efbig
file too large
文件太大
28 enospc
no space left on device
磁盤空間不足
29 espipe
illegal seek
不合法的尋找
30 erofs
read-only file system
只讀文件系統
31 emlink
too many links
太多的鏈接
 

下面的列表顯示常見的 windows 系統錯誤代碼。 1 error_invalid_function
incorrect function
函數錯誤
2 error_file_not_found
the system cannot find the file specified
系統找不到指定文件
3 error_path_not_found
the system cannot find the path specified
系統找不到指定路徑
4 error_too_many_open_files
the system cannot open the file
系統不能打開文件
5 error_access_denied
access is denied
訪問被拒絕
6 error_invalid_handle
the handle is invalid
句柄無效
7 error_arena_trashed
the storage control blocks were destroyed
存儲控制塊被損壞
8 error_not_enough_memory
not enough storage is available to process this command
沒有足夠的存儲空間執行這個指令
9 error_invalid_block
the storage control block address is invalid
存儲控制塊地址無效
10 error_bad_environment
the environment is incorrect.
環境錯誤
11 error_bad_format
an attempt was made to load a program with an incorrect format.
以錯誤的格式嘗試裝入一個程序
12 error_invalid_access
the access code is invalid.
存取碼無效
13 error_invalid_data
the data is invalid.
數據無效
14 error_outofmemory
not enough storage is available to complete this operation.
沒有足夠的存儲空間來完成這個操作
15 error_invalid_drive
the system cannot find the drive specified.
系統無法找到指定的驅動器
16 error_current_directory
the directory cannot be removed.
目錄無法被移除
17 error_not_same_device
the system cannot move the file to a different disk drive.
系統無法將文件移到不同的磁盤驅動器上
18 error_no_more_files
there are no more files.
沒有更多的文件
19 error_write_protect
the media is write protected.
媒體寫保護 20 error_bad_unit
the system cannot find the device specified.
系統無法找到指定的設備
21 error_not_ready
the device is not ready.
設備未準備好
22 error_bad_command
the device does not recognize the command.
設備不支持這個指令
23 error_crc
data error (cyclic redundancy check).
數據出錯(循環冗余檢驗)
24 error_bad_length
the program issued a command but the command length is incorrect.
程序發出指令,但指令長度出錯
25 error_seek
the drive cannot locate a specific area or track on the disk.
驅動器無法在磁盤上定位指定的區域或磁道
26 error_not_dos_disk
the specified disk or diskette cannot be accessed.
指定的磁盤或磁碟無法訪問
27 error_sector_not_found
the drive cannot find the sector requested.
驅動器無法找到需要的扇區
28 error_out_of_paper
the printer is out of paper.
打印機缺紙
29 error_write_fault
the system cannot write to the specified device.
系統不能夠向指定的設備中寫入
30 error_read_fault
the system cannot read from the specified device.
系統無法從指定設備中讀入
31 error_gen_failure
a device attached to the system is not functioning.
系統附著的設備無法運作
32 error_sharing_violation
the process cannot access the file because it is being used by another process.
進程無法訪問該文件因為文件已被其它進程使用
33 error_lock_violation
the process cannot access the file because another process has locked a portion of the file.
進程無法訪問該文件因為文件已被其它進程鎖定部分
34 error_wrong_disk
the wrong diskette is in the drive. insert %2 (volume serial number: %3) into drive %1.
驅動器中磁盤錯誤。插入 %2 (盤卷序列號:%3)到驅動器 %1中
36 error_sharing_buffer_exceeded
too many files opened for sharing.
太多的文件為共享打開
38 error_handle_eof
reached the end of the file.
達到文件結束
39 error_handle_disk_full
the disk is full.
磁盤已滿
112 error_disk_full
the disk is full.
磁盤已滿
123 error_invalid_name
the filename, directory name, or volume label syntax is incorrect.
文件名,目錄名或卷標語法出錯
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 西青区| 阜新市| 内丘县| 乌拉特后旗| 延安市| 永昌县| 隆子县| 苏尼特左旗| 得荣县| 西乡县| 秭归县| 六盘水市| 湟源县| 博野县| 阳高县| 石楼县| 昌都县| 大余县| 新巴尔虎右旗| 岳池县| 东山县| 大关县| 隆德县| 庆安县| 玉林市| 临潭县| 嘉定区| 二连浩特市| 潼南县| 洪湖市| 余江县| 永修县| 临朐县| 车致| 镇平县| 凤山市| 彰化市| 萝北县| 金堂县| 镇原县| 宜黄县|