comp_err สร้างไฟล์ errmsg.sys ที่ mysqld ใช้แสดงข้อความข้อผิดพลาด ตั้งแต่ MySQL 8.0.19 ข้อมูลมาจาก messages_to_error_log.txt และ messages_to_clients.txt ในไดเรกทอรี share (ก่อนหน้านี้มาจาก errmsg-utf8.txt ใน sql/share)
ยังสร้างไฟล์ Header: mysqld_error.h, mysqld_ername.h, mysqld_errmsg.h
การเรียกใช้
shell> comp_err [options]
ตัวเลือกหลัก
| ตัวเลือก | คำอธิบาย |
|---|---|
--charset=dir_name, -C | ไดเรกทอรี Character Set (ค่าเริ่มต้น: ../sql/share/charsets) |
--debug=debug_options, -# | เขียน Debug Log (ค่าเริ่มต้น: d:t:O,/tmp/comp_err.trace) |
--debug-info, -T | พิมพ์ข้อมูล Debug ตอนจบโปรแกรม |
--errmsg-file=file_name, -H | ชื่อไฟล์ข้อความข้อผิดพลาด (ค่าเริ่มต้น: mysqld_errmsg.h) เพิ่มใน 8.0.18 |
--header-file=file_name, -H | ชื่อไฟล์ Header ข้อผิดพลาด (ค่าเริ่มต้น: mysqld_error.h) |
--in-file-errlog=file_name, -e | ไฟล์ Input สำหรับ Error Log (ค่าเริ่มต้น: ../share/messages_to_error_log.txt) |
--name-file=file_name, -N | ชื่อไฟล์ Error Name (ค่าเริ่มต้น: mysqld_ername.h) |
--out-dir=dir_name, -D | ไดเรกทอรี Output (ค่าเริ่มต้น: ../sql/share/) |
--out-file=file_name, -O | ชื่อไฟล์ Output (ค่าเริ่มต้น: errmsg.sys) |
--version, -V | แสดงเวอร์ชันและออก |