BMS-HOSxP Community
HOSxP => แจ้งข้อผิดพลาดการทำงานของ HOSxP V3 => ข้อความที่เริ่มโดย: Terminator2015 ที่ พฤศจิกายน 14, 2012, 19:19:45 PM
-
??? ::) เพิ่งตรวจสอบเจอ เมื่อเอาไฟล์ Backup Retore ใส่ Notebook ไปประชุมจังหวัด
พบว่าตาราง opdscreen ไม่ถูก Backup ด้วยครับ พบในเดือน 10 เป็นต้นมาครับ
แต่เดือน ก.ย. Backup ให้อยู่ ไม่แน่ใจว่าเกิดจาก V. ใด ฝากที่อื่นตรวจสอบ Zip ไฟล์ ที่ระบบ BackUp อัตโนมัติด้วยครับ
-
ใส่ บรรทัดนี้ไว้ใน my.ini หรือ my.cnf ครับ ตรง section [mysqld]
myisam-recover=FORCE,BACKUP
-
::) สงสัยตารางมัน crash ครับ อ. ผมลอง Repair ไปแล้ว successfull เดี๋ยวต้องลองทดสอบดูอีกรอบ
ต้องขอบพระคุณ อ.MN ด้วยนะครับ จะลองใส่คำสั่งเพิ่มไว้ด้วย
-
;D ;D ;D
ที่ผมเป็นแบบนี้ครับ ผมตั้งเวลาเริ่ม backup ไว้ตอนตี 4 บางวัน backup ได้ไฟล์เป็น 0 Kb ทั้งที่จริง ๆ แล้วไฟล์ backup จะอยู่ประมาณ 2 Gb ทุกวันต้องตื่นแต่เช้ามืดรีโมทเข้าไปดูว่าไฟล์มันเป็น 0 K หรือเปล่าถ้าใช่ต้องทำ Manual backup ตลอด ไม่รู้ว่าเป็นเพราะอะไรเหมือนกันครับ
;D ;D ;D
-
;D ;D ;D
ที่ผมเป็นแบบนี้ครับ ผมตั้งเวลาเริ่ม backup ไว้ตอนตี 4 บางวัน backup ได้ไฟล์เป็น 0 Kb ทั้งที่จริง ๆ แล้วไฟล์ backup จะอยู่ประมาณ 2 Gb ทุกวันต้องตื่นแต่เช้ามืดรีโมทเข้าไปดูว่าไฟล์มันเป็น 0 K หรือเปล่าถ้าใช่ต้องทำ Manual backup ตลอด ไม่รู้ว่าเป็นเพราะอะไรเหมือนกันครับ
;D ;D ;D
;D ;D ;D ;D ;D ;D
เพิ่มแรม serverได้แล้ว แก้ปัญหาได้เลย
น่าจะ มากกว่า 36 G
-
ใส่ บรรทัดนี้ไว้ใน my.ini หรือ my.cnf ครับ ตรง section [mysqld]
myisam-recover=FORCE,BACKUP
ปกติผมจะใส่ไว้แค่ myisam-recover เฉย ๆ ใช้ได้หรือป่าวครับ อ. MN
-
ใส่ บรรทัดนี้ไว้ใน my.ini หรือ my.cnf ครับ ตรง section [mysqld]
myisam-recover=FORCE,BACKUP
ปกติผมจะใส่ไว้แค่ myisam-recover เฉย ๆ ใช้ได้หรือป่าวครับ อ. MN
ใช้ไม่ได้ครับ :)
-
ปกติผมจะใส่ไว้แค่ myisam-recover เฉย ๆ ใช้ได้หรือป่าวครับ อ. MN
http://dev.mysql.com/doc/refman/5.5/en/server-options.html#option_mysqld_myisam-recover-options
Set the MyISAM storage engine recovery mode. The option value is any combination of the values of OFF, DEFAULT, BACKUP, FORCE, or QUICK. If you specify multiple values, separate them by commas. Specifying the option with no argument is the same as specifying DEFAULT, and specifying with an explicit value of "" disables recovery (same as a value of OFF). If recovery is enabled, each time mysqld opens a MyISAM table, it checks whether the table is marked as crashed or was not closed properly. (The last option works only if you are running with external locking disabled.) If this is the case, mysqld runs a check on the table. If the table was corrupted, mysqld attempts to repair it.
ค่าที่ใส่ OFF, DEFAULT, BACKUP, FORCE,QUICK
แบบ ที่ อ.เข้ม บอก ใช้ไม่ได้นะครับ
-
ผมยังใช้ 5.1 อยู่ (แต่ก็ไม่ต่างกัน เพราะ link ก็เหมือนกันเดะเลย)
http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_myisam-recover-options
แสดงว่าที่ผมใส่เป็น
myisam-recover จะเท่ากับว่าเป็นได้แค่ myisam-recover = DEFAULT
ซึ่งก็คือ myisam-recover = OFF นั่นเอง
ถ้าจะให้ทำงานได้ต้องเป็น myisam-recover = FORCE,BACKUP
คำอธิบาย
DEFAULT Recovery without backup, forcing, or quick checking.
BACKUP If the data file was changed during recovery, save a backup of the tbl_name.MYD file as
tbl_name-datetime.BAK.
FORCE Run recovery even if we would lose more than one row from the .MYD file.
QUICK Do not check the rows in the table if there are not any delete blocks.
Before the server automatically repairs a table, it writes a note about the repair to the error log. If you want to be able to recover from most problems without user intervention, you should use the options BACKUP,FORCE. This forces a repair of a table even if some rows would be deleted, but it keeps the old data file as a backup so that you can later examine what happened.
;D ;D