BMS-HOSxP Community

HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: ANPANMAN ที่ กุมภาพันธ์ 12, 2010, 09:55:45 AM

หัวข้อ: Replication_Error
เริ่มหัวข้อโดย: ANPANMAN ที่ กุมภาพันธ์ 12, 2010, 09:55:45 AM
โค๊ด: [Select]
12/02/2553 09:41:08 10.10.10.253/hos  #42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{F732C6C9-C69C-45FC-B7CD-BE97517A35D9}'' and (finance_number = '' or finance_num' at line 1 CLI>PC47036 SQL>delete from opitemrece where hos_guid = ''{F732C6C9-C69C-45FC-B7CD-BE97517A35D9}'' and (finance_number = '' or finance_number is null)
12/02/2553 09:41:10 10.10.10.253/hos  #42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{1A146839-73B4-489D-9D08-92D7F63D16FA}'' and (finance_number = '' or finance_num' at line 1 CLI>PC47036 SQL>delete from opitemrece where hos_guid = ''{1A146839-73B4-489D-9D08-92D7F63D16FA}'' and (finance_number = '' or finance_number is null)
12/02/2553 09:41:10 10.10.10.253/hos  #42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{598677CE-CF0D-4C86-BB17-1496D7203F73}'' and (finance_number = '' or finance_num' at line 1 CLI>PC47036 SQL>delete from opitemrece where hos_guid = ''{598677CE-CF0D-4C86-BB17-1496D7203F73}'' and (finance_number = '' or finance_number is null)

แก้อย่างไรครับ และสาเหตุมาจากอะไร  ผมเข้าใจว่าเกี่ยวกับเครื่องการเงิน แต่ไม่ทราบว่าจะแก้ไขอย่างไร ยังอ่าน log ไม่ค่อยเป็น  ขอบคุณครับ
หัวข้อ: Re: Replication_Error
เริ่มหัวข้อโดย: ANPANMAN ที่ กุมภาพันธ์ 12, 2010, 15:34:23 PM
 :(     ยังรอคำแนะนำ แก้ไขดีดี   เดี๋ยวตกหาย อัพขึ้นมาหน่อย
หัวข้อ: Re: Replication_Error
เริ่มหัวข้อโดย: pop_hosxp ที่ กุมภาพันธ์ 12, 2010, 16:53:46 PM
ได้ upgrade structure ของ slave หรือ initial import จาก master หรือยังครับ
หัวข้อ: Re: Replication_Error
เริ่มหัวข้อโดย: kwh ที่ กุมภาพันธ์ 12, 2010, 16:57:48 PM
ครับ น่าจะเกิดจาก master กับ slave  DB ไม่เหมือนกันครับ ทำตามท่านข้างบนเลยครับ
หัวข้อ: Re: Replication_Error
เริ่มหัวข้อโดย: ANPANMAN ที่ กุมภาพันธ์ 15, 2010, 09:19:39 AM
ได้ upgrade structure ของ slave หรือ initial import จาก master หรือยังครับ


ทำแล้วครับ.. นานๆครั้ง จะแจ้งแบบนี้มา  บาง
ครั้งก็ไม่แจ้งมา

ผมจะ drop แล้ว initial ใหม่นะครับ  ขอบคุณครับ... 

มีอีกแล้ว ไม่รู้เหมือนกันมันเป็นเพราะอะไร
โค๊ด: [Select]
14/02/2553 14:24:21 10.10.10.253/hos  #42S22Unknown column 'cur_dep' in 'field list' CLI>PC52013 SQL>update `opdscreen` set `cur_dep` = '' where `hos_guid` = '{9A181105-1D80-4CE1-AEEC-1C3995F349CF}'
14/02/2553 14:26:35 10.10.10.253/hos  #42S22Unknown column 'cur_dep' in 'field list' CLI>PC52013 SQL>update `opdscreen` set `cur_dep` = '024' where `hos_guid` = '{9A181105-1D80-4CE1-AEEC-1C3995F349CF}'