ผู้เขียน หัวข้อ: MySQL 5.1.36  (อ่าน 8486 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ udomchok

  • Hero Member
  • *****
  • กระทู้: 8,347
  • Respect: +589
    • ดูรายละเอียด
    • ร.พ.สมเด็จพระสังฆราช องค์ที่ 17
MySQL 5.1.36
« เมื่อ: กรกฎาคม 02, 2009, 23:02:33 PM »
0
ทำด้วยหัวใจร.พ.สมเด็จพระสังฆราช องค์ที่ 17 อ.สองพี่น้อง จ.สุพรรณบุรี
อบรมโดย BMS Team เมื่อ พ.ย. 49 ขึ้นระบบห้องบัตรเมื่อ X'Mas 2007
2008 : X-Ray กายภาพบำบัด แพทย์แผนไทย กิจกรรมบำบัด OPD ตา
2009 : ทันตกรรม ห้องตรวจตา OPD (พยาบาลและห้องตรวจแพทย์บางห้อง)

ออฟไลน์ เข้ม

  • Hero Member
  • *****
  • กระทู้: 2,805
  • Respect: +4
    • ดูรายละเอียด
    • phichit hospital
Re: MySQL 5.1.36
« ตอบกลับ #1 เมื่อ: กรกฎาคม 05, 2009, 15:59:24 PM »
0
เมื่อสักครู่ได้ initial import เข้าไปเสร็จแล้ว

ทดสอบการใช้ Soundex Search ไม่มีปัญหาแล้วครับ

แต่มีปัญหาตอน replicate แทน

05/07/2552 15:44:11 xxx.xxx.xxx.xxx/hos  Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (10061)Socket error on connect. WSAGetLastError return 10061($274D) CLI>STAT-FRONT2 SQL>INSERT INTO incoth (vn,billdate,billtime,hn,incdate,inctime,income,paidst,rcpno,rcptamt,`user`,computer,finance_number,porder,discount,verify,pttype,hos_guid) VALUES ('520704194216','2009-07-04','19:42:16','000305720','2009-07-04','19:42:16','03','02',NULL,18,NULL,NULL,NULL,NULL,NULL,'N','71',NULL)
05/07/2552 15:44:20 xxx.xxx.xxx.xxx/hos  Lost connection to MySQL server during query CLI>STAT-FRONT1 SQL>delete from pttypehistory where hn='000095580' and  pttypeno='' and pttype not in ('0X','10','29','30','20','21','92','D1','D2')
05/07/2552 15:44:21 xxx.xxx.xxx.xxx/hos  Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (10061)Socket error on connect. WSAGetLastError return 10061($274D)


ผมกำลังตรวจสอบว่าเป็นที่ plugins FEDERATED ที่ผมใส่ไปหรือป่าว  :(

ท่านอื่น ๆ ได้ทดสอบกันบ้างหรือยัง
คุณตะนอย หายหน้าหายตาไปเลยนะครับ ...
Phichit Hospital
HOSxP 3.61.10.31 on FreeBSD 9.2
By BMS - Dec 26, 2007

ออฟไลน์ เข้ม

  • Hero Member
  • *****
  • กระทู้: 2,805
  • Respect: +4
    • ดูรายละเอียด
    • phichit hospital
Re: MySQL 5.1.36
« ตอบกลับ #2 เมื่อ: กรกฎาคม 05, 2009, 17:40:51 PM »
0
หลังจากที่เอา plugins FEDERATED ออก แล้ว compile ใหม่ ก็ยังเหมือนเดิม
เข้าไปดูใน hostname.err

090705 16:13:23 mysqld_safe mysqld from pid file /usr/local/var/hostname.pid ended
090705 16:18:29 mysqld_safe Starting mysqld daemon with databases from /usr/local/var
090705 16:18:31  InnoDB: Started; log sequence number 3 918852314
090705 16:18:31 [Note] Event Scheduler: Loaded 0 events
090705 16:18:31 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.1.36-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution

หลังจาก start mysql แล้วใช้งานได้ปกติ รวมถึง Soundex Search ด้วย

แต่หลังจากใช้ Replicate  ก็จะมี error เกิดขึ้น ดังนี้ (เผื่อ อ. ชัยพร จะแนะแนวทางการแก้ปัญหาครับ)

090705 16:29:18 [Warning] Statement may not be safe to log in statement format. Statement: ALTER TABLE general_log MODIFY COLUMN server_id INTEGER UNSIGNED NOT NULL
090705 16:29:18 [Warning] Statement may not be safe to log in statement format. Statement: ALTER TABLE slow_log MODIFY COLUMN server_id INTEGER UNSIGNED NOT NULL
090705 17:14:39  InnoDB: Assertion failure in thread 34387014512 in file row/row0mysql.c line 1534
InnoDB: Failing assertion: index->type & DICT_CLUSTERED
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/forcing-recovery.html
InnoDB: about forcing recovery.
090705 17:14:39 - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

key_buffer_size=268435456
read_buffer_size=1048576
max_used_connections=1
max_threads=500
threads_connected=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1291159 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

090705 17:14:39 mysqld_safe mysqld restarted
InnoDB: Log scan progressed past the checkpoint lsn 3 918853851
090705 17:14:40  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 3 919095169
090705 17:14:43  InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
InnoDB: Last MySQL binlog file position 0 211966, file name ./mysql-bin.000001
090705 17:14:47  InnoDB: Started; log sequence number 3 919095169
090705 17:14:47 [Note] Recovering after a crash using mysql-bin
090705 17:14:47 [Note] Starting crash recovery...
090705 17:14:47 [Note] Crash recovery finished.
090705 17:14:47 [Note] Event Scheduler: Loaded 0 events
090705 17:14:47 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.1.36-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
090705 17:14:49  InnoDB: Assertion failure in thread 34387014512 in file row/row0mysql.c line 1534
InnoDB: Failing assertion: index->type & DICT_CLUSTERED
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/forcing-recovery.html
InnoDB: about forcing recovery.
090705 17:14:49 - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.
Phichit Hospital
HOSxP 3.61.10.31 on FreeBSD 9.2
By BMS - Dec 26, 2007

ออฟไลน์ เข้ม

  • Hero Member
  • *****
  • กระทู้: 2,805
  • Respect: +4
    • ดูรายละเอียด
    • phichit hospital
Re: MySQL 5.1.36
« ตอบกลับ #3 เมื่อ: กรกฎาคม 05, 2009, 21:04:43 PM »
0
จาก error ที่เกิดขึ้น
เป็น bug ตั้งแต่ 5.1.35 แล้วครับ

http://bugs.mysql.com/bug.php?id=45633

InnoDB: Assertion failure in thread 34387014512 in file row/row0mysql.c line 1534
Description:
After importing a dump, then starting replication, MySQL crashed shortly afterwards with
this error:

090620  9:02:29 [Note] Slave I/O thread: connected to master
'repl@127.0.0.1:3302',replication started in log 'db15-bin.006' at position 231881775
090620  9:06:43  InnoDB: Assertion failure in thread 60 in file row/row0mysql.c line 1534
InnoDB: Failing assertion: index->type & DICT_CLUSTERED

The server had the following unusual options set at the time:

innodb_doublewrite = 0
innodb_locks_unsafe_for_binlog = 1
innodb_flush_log_at_trx_commit = 0

The problem is repeatable; MySQL now crashed immediately whenever replication is started.

How to repeat:
Unknown
--------------------------------------------------------------------------------------------------------------------

http://en.wikipedia.org/wiki/Assertion_(computing)

แต่ผมยังไม่ได้ลองเปลี่ยน my.cnf ให้เป็น

innodb_doublewrite = 0                                          น่าจะเหมือนกันเกือบทุก รพ.
innodb_locks_unsafe_for_binlog = 1                       น่าจะเหมือนกันเกือบทุก รพ.
innodb_flush_log_at_trx_commit = 0                     ซึ่งแต่ละ รพ. น่าจะเป็น 1 หรือไม่ก็  2 

ตามนี้นะครับ
หลังจากที่พบปัญหาก็เลยถอยไปใช้ 5.1.30 เรียบร้อยแล้ว จึงมาค้นหาสาเหตุ  ;D

ถ้าใครจะทดสอบ 5.1.36 ก็ขอให้ทดลองเปลี่ยนค่าใน my.cnf ให้เป็นดังข้างบนก็จะดี
จะได้รู้ว่าจะหายมั๊ย
« แก้ไขครั้งสุดท้าย: กรกฎาคม 05, 2009, 21:15:41 PM โดย เข้ม »
Phichit Hospital
HOSxP 3.61.10.31 on FreeBSD 9.2
By BMS - Dec 26, 2007

ออฟไลน์ jdadmin1

  • Hero Member
  • *****
  • กระทู้: 6,468
  • "เครื่องชำรุด...งดใช้งานชั่วคราว"
  • Respect: +33
    • ดูรายละเอียด
Re: MySQL 5.1.36
« ตอบกลับ #4 เมื่อ: กรกฎาคม 05, 2009, 21:16:25 PM »
0
 ;D ;D ;D รอพี่ tanoy ทดสอบครับ แต่ผมชอบตรงนี้จัง
How to repeat:
Unknown

มันตรงดี 55555
 ;D ;D ;D
โรงพยาบาลพระสมุทรเจดีย์สวาทยานนท์ จังหวัดสมุทรปราการ
Master   : HOSxP 3.66.12.28
Slave1   : HOSxP 3.66.12.28
Upgrade 23/12/2566
Facebook : Suntad Mamak

ออฟไลน์ atit

  • Hero Member
  • *****
  • กระทู้: 1,233
  • ขออภัย ความรู้ไม่มาก
  • Respect: +3
    • ดูรายละเอียด
Re: MySQL 5.1.36
« ตอบกลับ #5 เมื่อ: กรกฎาคม 06, 2009, 22:59:45 PM »
0
;D ;D ;D รอพี่ tanoy ทดสอบครับ แต่ผมชอบตรงนี้จัง
How to repeat:
Unknown

มันตรงดี 55555
 ;D ;D ;D
ขนาดท่าน JD ยังรอ ผมก็คงรอเหมือนกัน  :D
"-"           รู้อะไรไม่สู้รู้วิชา รู้จักหาในบอร์ดเป็นยอดคน                   tel 081-3202497 
ความรู้เพียงเล็กน้อย อาจช่วยคนเป็นร้อยแก้ปัญหา
เพราะฉะนั้น อย่ากลัวที่จะบอกสิ่งที่คุณรู้กับคนอื่น แม้จะเป็นเรื่องพื้นๆ ก็ตาม
cen-os 64 bit ,ram 4 g ,my sql 5.1.33
วิธีแนะนำตัวเอง  http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=4413.0
ก่อนตั้งกระทู้ใหม่ ลองหาดูกระทู่เก่าก่อนดีบ่? อาจได้คำตอบเร็วกว่าเด้อ   http://hosxp.net/index.php?option=com_smf&Itemid=28&action=search
วิธีขอบคุณผู้ที่ตอบคำถามถูกใจ   http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=8180.0
การเปิดใช้ Server แยก เก็บรูปภาพ/log http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=10169.0
การติดตั้ง mysql http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=11513.0
sql วันละคำกับคุณperjer http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=4007.0
8)ยินดีต้อนรับสู่สังคมแห่งการแบ่งปัน- การแบ่งปันทำให้สังคมน่าอยู่- ;Dขอขอบคุณ
- อ.mn ผู้เขียนโปรแกรมดีๆและช่วยขึ้นระบบ
- อ.อ๊อด,อ.นาจ,อ.ขวด,อ.โก้,อ.nutawut,อ.ตั๊ก,อ.JD,อ.กิจ...ที่คอยช่วยเหลือและให้ความรู้
- ทุกท่านที่ช่วย review โปรแกรมทำให้เราได้ใช้โปรแกรมที่สุดยอด(อยากให้เป็นโปรแกรมระดับประเทศเร็วๆจังจะได้ไม่ต้องง้อ สปสช 5555 :D)

ออฟไลน์ manoi

  • Hero Member
  • *****
  • กระทู้: 8,669
  • Respect: +170
    • ดูรายละเอียด
    • HOSxP Community Center
Re: MySQL 5.1.36
« ตอบกลับ #6 เมื่อ: กรกฎาคม 09, 2009, 06:15:06 AM »
0
เป็น Bug ตัวนี้ครับ

http://bugs.mysql.com/bug.php?id=45357

รู้สึกว่าถูกแก้ไขแล้วใน 5.1.37 ครับ (ยังไม่ออกให้ download)
HOSxP Project Manager / Cheif Developer / BMS MD

ออฟไลน์ มนตรี บอยรักยุ้ยคนเดียว

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: MySQL 5.1.36
« ตอบกลับ #7 เมื่อ: กรกฎาคม 12, 2009, 13:25:15 PM »
0
จาก error ที่เกิดขึ้น
เป็น bug ตั้งแต่ 5.1.35 แล้วครับ

http://bugs.mysql.com/bug.php?id=45633

InnoDB: Assertion failure in thread 34387014512 in file row/row0mysql.c line 1534
Description:
After importing a dump, then starting replication, MySQL crashed shortly afterwards with
this error:

090620  9:02:29 [Note] Slave I/O thread: connected to master
'repl@127.0.0.1:3302',replication started in log 'db15-bin.006' at position 231881775
090620  9:06:43  InnoDB: Assertion failure in thread 60 in file row/row0mysql.c line 1534
InnoDB: Failing assertion: index->type & DICT_CLUSTERED

The server had the following unusual options set at the time:

innodb_doublewrite = 0
innodb_locks_unsafe_for_binlog = 1
innodb_flush_log_at_trx_commit = 0

The problem is repeatable; MySQL now crashed immediately whenever replication is started.

How to repeat:
Unknown
--------------------------------------------------------------------------------------------------------------------

http://en.wikipedia.org/wiki/Assertion_(computing)

แต่ผมยังไม่ได้ลองเปลี่ยน my.cnf ให้เป็น

innodb_doublewrite = 0                                          น่าจะเหมือนกันเกือบทุก รพ.
innodb_locks_unsafe_for_binlog = 1                       น่าจะเหมือนกันเกือบทุก รพ.
innodb_flush_log_at_trx_commit = 0                     ซึ่งแต่ละ รพ. น่าจะเป็น 1 หรือไม่ก็  2 

ตามนี้นะครับ
หลังจากที่พบปัญหาก็เลยถอยไปใช้ 5.1.30 เรียบร้อยแล้ว จึงมาค้นหาสาเหตุ  ;D

ถ้าใครจะทดสอบ 5.1.36 ก็ขอให้ทดลองเปลี่ยนค่าใน my.cnf ให้เป็นดังข้างบนก็จะดี
จะได้รู้ว่าจะหายมั๊ย

ยังเป็นอยู่ครับ รอ 5.1.37 ดีกว่าครับ
ถึงจะแก้ my.cnf แล้ว ก็ยังไม่หาย

แต่ผมใช้ 5.1.30-2 percona
เริ่ม11พย.2548OPD-Paperlessพร้อมHOSxPลดโลกร้อน
FF-Paperless(รพ.สค.)เริ่ม1ตค2555=100%
IPD-Lesspaper1ตค2560ระบบDmsByNeoNetwork
IPD-Paperless1พ.ค2562ระบบHOSxPXE4
ServerMTOL8.5+MDB-10.4.20,SlaveOL8.5+MDB-10.7.3
LOG=PostgreSQL11,INV=PostgreSQL11

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: MySQL 5.1.36
« ตอบกลับ #8 เมื่อ: ตุลาคม 14, 2009, 07:35:39 AM »
0
ตอนนี้ใช้ 5.1.37 percona-log ทดสอบ ก็ยังมีปัญหาตอน run replicate อยู่ครับ ก็เลยไปปิด 3 บรรทัดข้างต้นก็ run replicate ได้ ไม่มีปัญหาครับ ???
#innodb_doublewrite = 0
#innodb_locks_unsafe_for_binlog = 1
#innodb_flush_log_at_trx_commit = 0 ???
Mr.Yordying Kongkachan (yord02@gmail.com)
ADMIN PATTANI HOSPITAL  http://www.pattanihos.com
เริ่มใช้ HOSxP พฤศจิกายน 2549
(Master)IBM X3650 M3 QuardCord 3.06 1 CPU 20 GBs. of Ram (up to 68 GBs 29/06/56)
Linux 64bit MySQL 5.5.21 64bit (ด้วยความช่วยเหลือของ อ.บอยครับ)
(Slave1)HP ProLiant ML350 G6 Xeon E5530 2.04 20 GBs. Ram (up to 54 GBs 27/06/56)
Linux 64bit MySQL 5.1.30 64bit Database v.3.56.4.9 (29/06/56) client v.3.56.3.19