ผู้เขียน หัวข้อ: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB  (อ่าน 15968 ครั้ง)

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

ออฟไลน์ Bluebird

  • Hero Member
  • *****
  • กระทู้: 1,062
  • Respect: +2
    • ดูรายละเอียด
    • โรงพยาบาลระแงะ จังหวัดนราธิวาส
ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
เหตุการณ์เกิดขึ้น ไฟดับ หลายชั่วโมง ไม่มีผู้ปิด Server ทำให้ Server ดับเอง เมื่อไฟสำรองไม่พอ
พอรุ่งเช้า Restart ใหม่ ฐานขอมูล ไปเลย
นักวิชาการคอมพิวเตอร์ โรงพยาบาลระแงะ  จังหวัดนราธิวาส
www.rangaehospital.com

เริ่มใช้งานระบบ 1 ตุลาคม 2550
Server     :  HP Proliant DL180G6 RAM 16Gb. 
Replicate  : DELL PowerEdge 1800   RAM 16 Gb.
MySQL 5.5.31
OS CentOS 5 64bit
HOSxP Version : 3.59.4.27(ตาม Version ที่ออกใหม่ล่าสุด)

ออฟไลน์ nan_it

  • Hero Member
  • *****
  • กระทู้: 578
  • หัวไม่ให้แต่ใจรัก ( อยากเก่งให้มากกว่านี้ )
  • Respect: 0
    • ดูรายละเอียด
    • ramanhospital
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #1 เมื่อ: ธันวาคม 17, 2012, 10:35:02 AM »
0
HD server เต็มไหมครับ
Mr.Anannee Sama ,โรงพยาบาลรามัน อำเภอรามัน จังหวัดยะลา 95140 ( รพ.60 เตียง กำลังจะเป็น รพ.ทั่วไป ครับ)
e-mail : nan_it@hotmail.com
http://www.ramanhospital.com
Server Intel Ram 16 G 
OS CentOS Database Mysql percona xtradb
ขึ้นระบบ กรกฎาคม พ.ศ. 2547
เวอร์ชั่นที่ใช้ 3.54.10.31

ออฟไลน์ gweeped

  • Sr. Member
  • ****
  • กระทู้: 254
  • ขอบคุณทุกคน กับสังคมดีๆ ใน HosXP
  • Respect: +2
    • ดูรายละเอียด
    • TAKBAI HOSPITAL FANPAGE
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #2 เมื่อ: ธันวาคม 17, 2012, 10:42:27 AM »
0
เคยเป็นกับ server สำรอง
ดับเอง พอจะมาเปิด เปิดไม่ได้
สุดท้ายต้องลง linux ใหม่

ปล.ที่โรงพยาบาลไม่มีเครื่องปั่นไฟใช้เองหรือค้าบ
Nirafeeda Binnima
Systems Admin
Takbai Hospital
MASTER SERVER :
IBM System x3550 M4
CentOS 6.3
MySQL version 5.6.15-56
SLAVE SERVER :
HP Proliant DL160 Gen8
CentOS Linux 5.3
MySQL version 5.6.15-56
ขึ้นระบบโดย BMS TEAM ปี 47
เริ่มงานและเริ่มรู้จัก HosXP 1 กค. 2011

ออฟไลน์ Bluebird

  • Hero Member
  • *****
  • กระทู้: 1,062
  • Respect: +2
    • ดูรายละเอียด
    • โรงพยาบาลระแงะ จังหวัดนราธิวาส
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #3 เมื่อ: ธันวาคม 17, 2012, 10:48:22 AM »
0
แก้อย่างไร ช่วยทีครับ
นักวิชาการคอมพิวเตอร์ โรงพยาบาลระแงะ  จังหวัดนราธิวาส
www.rangaehospital.com

เริ่มใช้งานระบบ 1 ตุลาคม 2550
Server     :  HP Proliant DL180G6 RAM 16Gb. 
Replicate  : DELL PowerEdge 1800   RAM 16 Gb.
MySQL 5.5.31
OS CentOS 5 64bit
HOSxP Version : 3.59.4.27(ตาม Version ที่ออกใหม่ล่าสุด)

ออฟไลน์ nan_it

  • Hero Member
  • *****
  • กระทู้: 578
  • หัวไม่ให้แต่ใจรัก ( อยากเก่งให้มากกว่านี้ )
  • Respect: 0
    • ดูรายละเอียด
    • ramanhospital
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #4 เมื่อ: ธันวาคม 17, 2012, 11:01:22 AM »
0
ลองใช้คำสั่ง  df -h ดูพื่นที่ใน HD
Mr.Anannee Sama ,โรงพยาบาลรามัน อำเภอรามัน จังหวัดยะลา 95140 ( รพ.60 เตียง กำลังจะเป็น รพ.ทั่วไป ครับ)
e-mail : nan_it@hotmail.com
http://www.ramanhospital.com
Server Intel Ram 16 G 
OS CentOS Database Mysql percona xtradb
ขึ้นระบบ กรกฎาคม พ.ศ. 2547
เวอร์ชั่นที่ใช้ 3.54.10.31

ออฟไลน์ Bluebird

  • Hero Member
  • *****
  • กระทู้: 1,062
  • Respect: +2
    • ดูรายละเอียด
    • โรงพยาบาลระแงะ จังหวัดนราธิวาส
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #5 เมื่อ: ธันวาคม 17, 2012, 11:02:07 AM »
0
HD ยังเหลือเยอะ
นักวิชาการคอมพิวเตอร์ โรงพยาบาลระแงะ  จังหวัดนราธิวาส
www.rangaehospital.com

เริ่มใช้งานระบบ 1 ตุลาคม 2550
Server     :  HP Proliant DL180G6 RAM 16Gb. 
Replicate  : DELL PowerEdge 1800   RAM 16 Gb.
MySQL 5.5.31
OS CentOS 5 64bit
HOSxP Version : 3.59.4.27(ตาม Version ที่ออกใหม่ล่าสุด)

ออฟไลน์ ซีนาย

  • Full Member
  • ***
  • กระทู้: 163
  • Respect: 0
    • ดูรายละเอียด
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #6 เมื่อ: ธันวาคม 17, 2012, 11:08:07 AM »
0
ภราดร  แม่นยำ -ปสศ.42 วสส.พิษณุโลก
ไม่ใช่Admin..ลูกสาวบอกว่า"พ่อเป็นคนพิมพ์งาน"
โรงพยาบาลสูงเม่น  อำเภอสูงเม่น  จังหวัดแพร่
HOSxP.........เริ่ม...2548 โดยอาจารย์ชัยพร
HOSxP_PCU...Datacenter....เริ่ม...มิถุนายน 2552 โดยอาจารย์ชัยพรและทีม BMS
เรื่องบังเิอิญ....ไม่มีจริง......
https://www.facebook.com/profile.php?id=100000052460821

ออฟไลน์ pop_hosxp

  • Hero Member
  • *****
  • กระทู้: 3,128
  • Respect: +38
    • ดูรายละเอียด
    • Phanomphrai Hospital
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #7 เมื่อ: ธันวาคม 17, 2012, 11:08:50 AM »
0
ต้องดู error log ครับว่า mysql แสดง error อะไรไว้ครับ
pop434241@gmail.com
รพ.พนมไพร จ.ร้อยเอ็ด www.phanomphrai.net

ออฟไลน์ Bluebird

  • Hero Member
  • *****
  • กระทู้: 1,062
  • Respect: +2
    • ดูรายละเอียด
    • โรงพยาบาลระแงะ จังหวัดนราธิวาส
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #8 เมื่อ: ธันวาคม 17, 2012, 11:15:35 AM »
0
121216 22:36:34 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
121216 22:36:34 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: Error: log file /var/lib/mysql/ib_logfile0 is of different size 0 104857600 bytes
InnoDB: than specified in the .cnf file 0 1073741824 bytes!
121216 22:36:35 [ERROR] Plugin 'InnoDB' init function returned error.
121216 22:36:35 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
121216 22:36:35 [ERROR] /usr/sbin/mysqld: unknown variable 'innodb_use_sys_malloc=1'
121216 22:36:35 [ERROR] Aborting

121216 22:36:35 [Warning] Forcing shutdown of 1 plugins
121216 22:36:35 [Note] /usr/sbin/mysqld: Shutdown complete

121216 22:36:35 mysqld_safe mysqld from pid file /var/lib/mysql/server.rangaehospital.com.pid ended
121216 23:04:35 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
121216 23:04:36 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: Error: log file /var/lib/mysql/ib_logfile0 is of different size 0 104857600 bytes
InnoDB: than specified in the .cnf file 0 1073741824 bytes!
121216 23:04:36 [ERROR] Plugin 'InnoDB' init function returned error.
121216 23:04:36 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
121216 23:04:36 [ERROR] /usr/sbin/mysqld: unknown variable 'innodb_use_sys_malloc=1'
121216 23:04:36 [ERROR] Aborting

121216 23:04:36 [Warning] Forcing shutdown of 1 plugins
121216 23:04:36 [Note] /usr/sbin/mysqld: Shutdown complete

121216 23:04:36 mysqld_safe mysqld from pid file /var/lib/mysql/server.rangaehospital.com.pid ended
121216 23:32:01 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
121216 23:32:01 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: Error: log file /var/lib/mysql/ib_logfile0 is of different size 0 104857600 bytes
InnoDB: than specified in the .cnf file 0 1073741824 bytes!
121216 23:32:02 [ERROR] Plugin 'InnoDB' init function returned error.
121216 23:32:02 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
121216 23:32:02 [ERROR] /usr/sbin/mysqld: unknown variable 'innodb_use_sys_malloc=1'
121216 23:32:02 [ERROR] Aborting

121216 23:32:02 [Warning] Forcing shutdown of 1 plugins
121216 23:32:02 [Note] /usr/sbin/mysqld: Shutdown complete

121216 23:32:02 mysqld_safe mysqld from pid file /var/lib/mysql/server.rangaehospital.com.pid ended
121217 07:39:24 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
121217  7:39:24 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: Error: log file /var/lib/mysql/ib_logfile0 is of different size 0 104857600 bytes
InnoDB: than specified in the .cnf file 0 1073741824 bytes!
121217  7:39:24 [ERROR] Plugin 'InnoDB' init function returned error.
121217  7:39:24 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
121217  7:39:24 [ERROR] /usr/sbin/mysqld: unknown variable 'innodb_use_sys_malloc=1'
121217  7:39:24 [ERROR] Aborting

121217  7:39:24 [Warning] Forcing shutdown of 1 plugins
121217  7:39:24 [Note] /usr/sbin/mysqld: Shutdown complete

121217 07:39:24 mysqld_safe mysqld from pid file /var/lib/mysql/server.rangaehospital.com.pid ended
121217 07:45:16 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
121217  7:45:17 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: Error: log file /var/lib/mysql/ib_logfile0 is of different size 0 104857600 bytes
InnoDB: than specified in the .cnf file 0 1073741824 bytes!
121217  7:45:17 [ERROR] Plugin 'InnoDB' init function returned error.
121217  7:45:17 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
121217  7:45:17 [ERROR] /usr/sbin/mysqld: unknown variable 'innodb_use_sys_malloc=1'
121217  7:45:17 [ERROR] Aborting

121217  7:45:17 [Warning] Forcing shutdown of 1 plugins
121217  7:45:17 [Note] /usr/sbin/mysqld: Shutdown complete
นักวิชาการคอมพิวเตอร์ โรงพยาบาลระแงะ  จังหวัดนราธิวาส
www.rangaehospital.com

เริ่มใช้งานระบบ 1 ตุลาคม 2550
Server     :  HP Proliant DL180G6 RAM 16Gb. 
Replicate  : DELL PowerEdge 1800   RAM 16 Gb.
MySQL 5.5.31
OS CentOS 5 64bit
HOSxP Version : 3.59.4.27(ตาม Version ที่ออกใหม่ล่าสุด)

ออฟไลน์ Bluebird

  • Hero Member
  • *****
  • กระทู้: 1,062
  • Respect: +2
    • ดูรายละเอียด
    • โรงพยาบาลระแงะ จังหวัดนราธิวาส
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #9 เมื่อ: ธันวาคม 17, 2012, 11:22:24 AM »
0
นี้ ไฟล์ my.cnf รันผ่านครับ
[client]
port      = 3306
socket      = /var/lib/mysql/mysql.sock
default-character-set=tis620
[mysqld]
port      = 3306
socket      = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 128M
max_allowed_packet = 512M
table_cache = 1800
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 1M
myisam_sort_buffer_size = 128M
thread_cache = 8
query_cache_size= 50M
thread_concurrency = 8
default-character-set=tis620
skip-name-resolve
innodb_file_per_table
skip-character-set-client-handshake
init_connect = 'SET NAMES tis620'
max_connections = 1000

server-id   = 1

innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
#innodb_log_arch_dir = /var/lib/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 512M
innodb_additional_mem_pool_size = 20M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 256M
innodb_log_buffer_size = 32M
innodb_flush_log_at_trx_commit = 2
innodb_lock_wait_timeout = 50
innodb_thread_concurrency = 0
innodb_flush_method=O_DIRECT
innodb_doublewrite =0
innodb_support_xa =0
innodb_open_files = 1800
innodb_locks_unsafe_for_binlog=1
join_buffer_size = 2M
concurrent_insert = 2
max_heap_table_size = 50M
log_bin_trust_function_creators = 1


[mysqldump]
quick
max_allowed_packet = 512M
allow-keywords

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
default-character-set=tis620

[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout
นักวิชาการคอมพิวเตอร์ โรงพยาบาลระแงะ  จังหวัดนราธิวาส
www.rangaehospital.com

เริ่มใช้งานระบบ 1 ตุลาคม 2550
Server     :  HP Proliant DL180G6 RAM 16Gb. 
Replicate  : DELL PowerEdge 1800   RAM 16 Gb.
MySQL 5.5.31
OS CentOS 5 64bit
HOSxP Version : 3.59.4.27(ตาม Version ที่ออกใหม่ล่าสุด)

ออฟไลน์ เข้ม

  • Hero Member
  • *****
  • กระทู้: 2,805
  • Respect: +4
    • ดูรายละเอียด
    • phichit hospital
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #10 เมื่อ: ธันวาคม 17, 2012, 11:37:10 AM »
0
แบบนี้

121216 22:36:34 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: Error: log file /var/lib/mysql/ib_logfile0 is of different size 0 104857600 bytes
InnoDB: than specified in the .cnf file 0 1073741824 bytes!


เหมือนมีการไปเปลี่ยนขนาด log file size ใน my.cnf
ถ้ามีก็ลองแก้ให้เป็นขนาดเดิมครับ
Phichit Hospital
HOSxP 3.61.10.31 on FreeBSD 9.2
By BMS - Dec 26, 2007

ออฟไลน์ Bluebird

  • Hero Member
  • *****
  • กระทู้: 1,062
  • Respect: +2
    • ดูรายละเอียด
    • โรงพยาบาลระแงะ จังหวัดนราธิวาส
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #11 เมื่อ: ธันวาคม 17, 2012, 11:40:56 AM »
0
บรรทัดไหนครับ
นักวิชาการคอมพิวเตอร์ โรงพยาบาลระแงะ  จังหวัดนราธิวาส
www.rangaehospital.com

เริ่มใช้งานระบบ 1 ตุลาคม 2550
Server     :  HP Proliant DL180G6 RAM 16Gb. 
Replicate  : DELL PowerEdge 1800   RAM 16 Gb.
MySQL 5.5.31
OS CentOS 5 64bit
HOSxP Version : 3.59.4.27(ตาม Version ที่ออกใหม่ล่าสุด)

ออฟไลน์ เข้ม

  • Hero Member
  • *****
  • กระทู้: 2,805
  • Respect: +4
    • ดูรายละเอียด
    • phichit hospital
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #12 เมื่อ: ธันวาคม 17, 2012, 11:52:57 AM »
0
มีการปรับค่าใน my.cnf หรือป่าวล่ะครับ

ผมว่าส่ง error มาทั้งไฟล์เลยดีกว่าครับ จะได้ดูค่าตอนที่รันครั้งแรกด้วย
Phichit Hospital
HOSxP 3.61.10.31 on FreeBSD 9.2
By BMS - Dec 26, 2007

ออฟไลน์ nan_it

  • Hero Member
  • *****
  • กระทู้: 578
  • หัวไม่ให้แต่ใจรัก ( อยากเก่งให้มากกว่านี้ )
  • Respect: 0
    • ดูรายละเอียด
    • ramanhospital
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #13 เมื่อ: ธันวาคม 17, 2012, 12:03:53 PM »
0
Mr.Anannee Sama ,โรงพยาบาลรามัน อำเภอรามัน จังหวัดยะลา 95140 ( รพ.60 เตียง กำลังจะเป็น รพ.ทั่วไป ครับ)
e-mail : nan_it@hotmail.com
http://www.ramanhospital.com
Server Intel Ram 16 G 
OS CentOS Database Mysql percona xtradb
ขึ้นระบบ กรกฎาคม พ.ศ. 2547
เวอร์ชั่นที่ใช้ 3.54.10.31

ออฟไลน์ Bluebird

  • Hero Member
  • *****
  • กระทู้: 1,062
  • Respect: +2
    • ดูรายละเอียด
    • โรงพยาบาลระแงะ จังหวัดนราธิวาส
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #14 เมื่อ: ธันวาคม 17, 2012, 15:29:32 PM »
0
มีการปรับค่าใน my.cnf หรือป่าวล่ะครับ

ผมว่าส่ง error มาทั้งไฟล์เลยดีกว่าครับ จะได้ดูค่าตอนที่รันครั้งแรกด้วย


121217 15:25:22  InnoDB: Error: page 271881 log sequence number 31 2566095031
InnoDB: is in the future! Current system log sequence number 24 3966501067.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/forcing-recovery.html
InnoDB: for more information.
121217 15:25:22  InnoDB: Error: page 248583 log sequence number 30 2428040772
InnoDB: is in the future! Current system log sequence number 24 3966501144.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/forcing-recovery.html
InnoDB: for more information.
121217 15:25:22  InnoDB: Error: page 130359 log sequence number 31 3238051279
InnoDB: is in the future! Current system log sequence number 24 3966501220.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/forcing-recovery.html
InnoDB: for more information.
121217 15:25:22  InnoDB: Error: page 117617 log sequence number 31 4096095501
InnoDB: is in the future! Current system log sequence number 24 3966501297.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/forcing-recovery.html
InnoDB: for more information.
 
หมายถึงอะไรครับ ทำให้ขนาดไฟล์เพิ่มขึ้นเรื่อยๆ
« แก้ไขครั้งสุดท้าย: ธันวาคม 17, 2012, 15:37:51 PM โดย Bluebird »
นักวิชาการคอมพิวเตอร์ โรงพยาบาลระแงะ  จังหวัดนราธิวาส
www.rangaehospital.com

เริ่มใช้งานระบบ 1 ตุลาคม 2550
Server     :  HP Proliant DL180G6 RAM 16Gb. 
Replicate  : DELL PowerEdge 1800   RAM 16 Gb.
MySQL 5.5.31
OS CentOS 5 64bit
HOSxP Version : 3.59.4.27(ตาม Version ที่ออกใหม่ล่าสุด)

ออฟไลน์ Bluebird

  • Hero Member
  • *****
  • กระทู้: 1,062
  • Respect: +2
    • ดูรายละเอียด
    • โรงพยาบาลระแงะ จังหวัดนราธิวาส
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #15 เมื่อ: ธันวาคม 17, 2012, 15:47:29 PM »
0
มี ตัวอย่างไฟล์ Error และ my.cnf ครับ

เพราะขนาดไฟล์ เพิ่มขึ้นเรื่อย ๆ
« แก้ไขครั้งสุดท้าย: ธันวาคม 17, 2012, 16:03:02 PM โดย Bluebird »
นักวิชาการคอมพิวเตอร์ โรงพยาบาลระแงะ  จังหวัดนราธิวาส
www.rangaehospital.com

เริ่มใช้งานระบบ 1 ตุลาคม 2550
Server     :  HP Proliant DL180G6 RAM 16Gb. 
Replicate  : DELL PowerEdge 1800   RAM 16 Gb.
MySQL 5.5.31
OS CentOS 5 64bit
HOSxP Version : 3.59.4.27(ตาม Version ที่ออกใหม่ล่าสุด)

ออฟไลน์ เข้ม

  • Hero Member
  • *****
  • กระทู้: 2,805
  • Respect: +4
    • ดูรายละเอียด
    • phichit hospital
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #16 เมื่อ: ธันวาคม 17, 2012, 16:03:58 PM »
0
ทำอะไรไปบ้างแล้วครับ
Phichit Hospital
HOSxP 3.61.10.31 on FreeBSD 9.2
By BMS - Dec 26, 2007

ออฟไลน์ Bluebird

  • Hero Member
  • *****
  • กระทู้: 1,062
  • Respect: +2
    • ดูรายละเอียด
    • โรงพยาบาลระแงะ จังหวัดนราธิวาส
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #17 เมื่อ: ธันวาคม 17, 2012, 16:12:59 PM »
0
ตอนนี้ใช้งานได้แล้ว 
แต่ ไฟล์ error เพิ่มขึ้นตลอด
นักวิชาการคอมพิวเตอร์ โรงพยาบาลระแงะ  จังหวัดนราธิวาส
www.rangaehospital.com

เริ่มใช้งานระบบ 1 ตุลาคม 2550
Server     :  HP Proliant DL180G6 RAM 16Gb. 
Replicate  : DELL PowerEdge 1800   RAM 16 Gb.
MySQL 5.5.31
OS CentOS 5 64bit
HOSxP Version : 3.59.4.27(ตาม Version ที่ออกใหม่ล่าสุด)

ออฟไลน์ Sukjai

  • Hero Member
  • *****
  • กระทู้: 984
  • Facebook : Sukjai Krub
  • Respect: +673
    • ดูรายละเอียด
    • Share Tips HOSxP
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #18 เมื่อ: ธันวาคม 17, 2012, 16:14:54 PM »
0
ตอนนี้ใช้งานได้แล้ว 
แต่ ไฟล์ error เพิ่มขึ้นตลอด

Error ที่ว่าเป็นอย่างไรครับ ส่งภาพมาให้ดูด้วยครับ

ออฟไลน์ Bluebird

  • Hero Member
  • *****
  • กระทู้: 1,062
  • Respect: +2
    • ดูรายละเอียด
    • โรงพยาบาลระแงะ จังหวัดนราธิวาส
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #19 เมื่อ: ธันวาคม 17, 2012, 16:19:26 PM »
0
ตามไฟล์ที่แนบเลยครับ
บางส่วน
121217 15:25:22  InnoDB: Error: page 271881 log sequence number 31 2566095031
InnoDB: is in the future! Current system log sequence number 24 3966501067.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/forcing-recovery.html
InnoDB: for more information.
121217 15:25:22  InnoDB: Error: page 248583 log sequence number 30 2428040772
InnoDB: is in the future! Current system log sequence number 24 3966501144.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/forcing-recovery.html
InnoDB: for more information.
121217 15:25:22  InnoDB: Error: page 130359 log sequence number 31 3238051279
InnoDB: is in the future! Current system log sequence number 24 3966501220.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/forcing-recovery.html
InnoDB: for more information.
121217 15:25:22  InnoDB: Error: page 117617 log sequence number 31 4096095501
InnoDB: is in the future! Current system log sequence number 24 3966501297.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/forcing-recovery.html
InnoDB: for more information.


จะขึ้นมาแบบนี้ทุกๆ วินาทีเลยครับ 
นักวิชาการคอมพิวเตอร์ โรงพยาบาลระแงะ  จังหวัดนราธิวาส
www.rangaehospital.com

เริ่มใช้งานระบบ 1 ตุลาคม 2550
Server     :  HP Proliant DL180G6 RAM 16Gb. 
Replicate  : DELL PowerEdge 1800   RAM 16 Gb.
MySQL 5.5.31
OS CentOS 5 64bit
HOSxP Version : 3.59.4.27(ตาม Version ที่ออกใหม่ล่าสุด)

ออฟไลน์ เข้ม

  • Hero Member
  • *****
  • กระทู้: 2,805
  • Respect: +4
    • ดูรายละเอียด
    • phichit hospital
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #20 เมื่อ: ธันวาคม 17, 2012, 17:23:13 PM »
0
ผมแนบรูปให้ดูนะครับ

นอกจากไฟฟ้าจะดับแล้วผมว่าน่าจะเกิดจากการเปลี่ยนแปลงค่า variable ในไฟล์ my.cnf (ซึ่งเป็นค่าต้องห้ามซะด้วย)  คือ

innodb_log_file_size = 100M  เปลี่ยนไปเป็น  innodb_log_file_size = 512M  (ดูจาก my.cnf ที่ให้มา)

แต่ถ้าดูจากไฟล์ error ตอนแรก ๆ น่าจะเปลี่ยนจาก 100M --> 1024M

อ้างถึง
InnoDB: Error: log file /var/lib/mysql/ib_logfile0 is of different size 0 104857600 bytes
InnoDB: than specified in the .cnf file 0 1073741824 bytes!
« แก้ไขครั้งสุดท้าย: ธันวาคม 17, 2012, 17:50:05 PM โดย เข้ม »
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: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #21 เมื่อ: ธันวาคม 17, 2012, 17:43:50 PM »
0
และมีการปรับเปลี่ยนค่า  innodb_log_file_size กลับไปกลับมาอีก

อ้างถึง
InnoDB: Error: log file /var/lib/mysql/ib_logfile0 is of different size 0 104857600 bytes
InnoDB: than specified in the .cnf file 0 1073741824 bytes!

InnoDB: Error: log file /var/lib/mysql/ib_logfile0 is of different size 0 104857600 bytes
InnoDB: than specified in the .cnf file 0 268435456 bytes!



เปลี่ยน  innodb_data_file_path = ibdata1:10M:autoextend (ของเดิม) ไปเป็นค่าอื่น

อ้างถึง
InnoDB: Error: auto-extending data file /var/lib/mysql/ibdata1 is of a different size
InnoDB: 5760 pages (rounded down to MB) than specified in the .cnf file:


ซึ่งน่าจะทำให้ระบบรวนไปน่ะครับ .. และเหมือนจะมีการลบไฟล์ ib* ออกไปแล้วให้สร้างใหม่ด้วย (ผมเดาเอาว่าน่าจะ backup ไฟล์เก่าไว้แล้วนะครับ)

เลยไม่รู้ว่าจะช่วยแก้ไขให้อย่างไร ...  :'( :'(
ขอให้ผ่านไปได้นะครับ เอาใจช่วยครับ
คิดซะว่าเป็นประสบการณ์  ;) ;)
« แก้ไขครั้งสุดท้าย: ธันวาคม 17, 2012, 17:54:21 PM โดย เข้ม »
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: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #22 เมื่อ: ธันวาคม 17, 2012, 17:53:14 PM »
0
ไม่รู้ตอนนี้เป็นงัยบ้างแล้ว  :'( :'(
Phichit Hospital
HOSxP 3.61.10.31 on FreeBSD 9.2
By BMS - Dec 26, 2007

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

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #23 เมื่อ: ธันวาคม 17, 2012, 19:18:57 PM »
0
และมีการปรับเปลี่ยนค่า  innodb_log_file_size กลับไปกลับมาอีก

อ้างถึง
InnoDB: Error: log file /var/lib/mysql/ib_logfile0 is of different size 0 104857600 bytes
InnoDB: than specified in the .cnf file 0 1073741824 bytes!

InnoDB: Error: log file /var/lib/mysql/ib_logfile0 is of different size 0 104857600 bytes
InnoDB: than specified in the .cnf file 0 268435456 bytes!



เปลี่ยน  innodb_data_file_path = ibdata1:10M:autoextend (ของเดิม) ไปเป็นค่าอื่น

อ้างถึง
InnoDB: Error: auto-extending data file /var/lib/mysql/ibdata1 is of a different size
InnoDB: 5760 pages (rounded down to MB) than specified in the .cnf file:


ซึ่งน่าจะทำให้ระบบรวนไปน่ะครับ .. และเหมือนจะมีการลบไฟล์ ib* ออกไปแล้วให้สร้างใหม่ด้วย (ผมเดาเอาว่าน่าจะ backup ไฟล์เก่าไว้แล้วนะครับ)

เลยไม่รู้ว่าจะช่วยแก้ไขให้อย่างไร ...  :'( :'(
ขอให้ผ่านไปได้นะครับ เอาใจช่วยครับ
คิดซะว่าเป็นประสบการณ์  ;) ;)

คงปรับค่า config my.cnf 
ประสบการณ์ที่ ปัญหาเกิดจากตัว ADMIN
เริ่ม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

ออฟไลน์ Bluebird

  • Hero Member
  • *****
  • กระทู้: 1,062
  • Respect: +2
    • ดูรายละเอียด
    • โรงพยาบาลระแงะ จังหวัดนราธิวาส
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #24 เมื่อ: ธันวาคม 19, 2012, 12:07:02 PM »
0
ไม่รู้ตอนนี้เป็นงัยบ้างแล้ว  :'( :'(

เปลี่ยนชื่อ ib* เป็นชื่ออื่นก่อน (กันเสียหาย) แล้ว Restart MySQL ใหม่
จากนั้นผมไปลบ ไฟล์ .err  ( มีผลอะไรไหมหากไม่มีไฟล์นี้ เพราะปล่อยไว้ ขนาดไฟล์ จะเพิ่มทุกวินาทีเลย )

ส่วนโปรแกรมใช้งานได้ ครับเดี่ยวมี MYSQL Workload มาให้ดู
นักวิชาการคอมพิวเตอร์ โรงพยาบาลระแงะ  จังหวัดนราธิวาส
www.rangaehospital.com

เริ่มใช้งานระบบ 1 ตุลาคม 2550
Server     :  HP Proliant DL180G6 RAM 16Gb. 
Replicate  : DELL PowerEdge 1800   RAM 16 Gb.
MySQL 5.5.31
OS CentOS 5 64bit
HOSxP Version : 3.59.4.27(ตาม Version ที่ออกใหม่ล่าสุด)

ออฟไลน์ Bluebird

  • Hero Member
  • *****
  • กระทู้: 1,062
  • Respect: +2
    • ดูรายละเอียด
    • โรงพยาบาลระแงะ จังหวัดนราธิวาส
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #25 เมื่อ: ธันวาคม 19, 2012, 14:24:40 PM »
0
MYSQL Workload
นักวิชาการคอมพิวเตอร์ โรงพยาบาลระแงะ  จังหวัดนราธิวาส
www.rangaehospital.com

เริ่มใช้งานระบบ 1 ตุลาคม 2550
Server     :  HP Proliant DL180G6 RAM 16Gb. 
Replicate  : DELL PowerEdge 1800   RAM 16 Gb.
MySQL 5.5.31
OS CentOS 5 64bit
HOSxP Version : 3.59.4.27(ตาม Version ที่ออกใหม่ล่าสุด)

ออฟไลน์ เข้ม

  • Hero Member
  • *****
  • กระทู้: 2,805
  • Respect: +4
    • ดูรายละเอียด
    • phichit hospital
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #26 เมื่อ: ธันวาคม 19, 2012, 15:52:56 PM »
0
ยินดีด้วยครับ  ;) ;)

ไฟล์ .err ลบไปก็ไม่มีปัญหาหรอกครับ  เพราะเดี๋ยวมันก็จะถูกสร้างขึ้นใหม่ (เอาไว้ดูเพื่อใช้เป็นแนวทางในการแก้ไขปัญหา)

 :D :D :D
Phichit Hospital
HOSxP 3.61.10.31 on FreeBSD 9.2
By BMS - Dec 26, 2007

ออฟไลน์ chk

  • Hero Member
  • *****
  • กระทู้: 1,949
  • Respect: +2
    • ดูรายละเอียด
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #27 เมื่อ: ธันวาคม 20, 2012, 09:02:42 AM »
0
 ;D  login  ปกติหรือปะ  ขอรับ  ;D

 ;D  ถ้า login  ได้  ให้ upstruc  ที  แล้วปรับตาราง Innodb  1 ครั้ง  ;D
8) ........ {O.*} ............   8)
8) ...KUMPANGSEAN  HOSXP  SYSTEM...   8) Office  Station ::  Kumpangsan Hospital  Nakhon Pathom
 System  Running :: 01/01/2010

ออฟไลน์ dotAtainer

  • Hero Member
  • *****
  • กระทู้: 1,256
  • กระบี่กรียุค
  • Respect: +3
    • ดูรายละเอียด
    • http://www.nondindeang.com
Re: ฐานข้อมูล มีปัญหา ไม่รู้จัก ตารางที่เป็น InnoDB
« ตอบกลับ #28 เมื่อ: ธันวาคม 21, 2012, 09:24:57 AM »
0
สุดยอดเลยครับพี่เข้มแม่นมากๆคาราวะเลย
ผมแนบรูปให้ดูนะครับ

นอกจากไฟฟ้าจะดับแล้วผมว่าน่าจะเกิดจากการเปลี่ยนแปลงค่า variable ในไฟล์ my.cnf (ซึ่งเป็นค่าต้องห้ามซะด้วย)  คือ

innodb_log_file_size = 100M  เปลี่ยนไปเป็น  innodb_log_file_size = 512M  (ดูจาก my.cnf ที่ให้มา)

แต่ถ้าดูจากไฟล์ error ตอนแรก ๆ น่าจะเปลี่ยนจาก 100M --> 1024M

อ้างถึง
InnoDB: Error: log file /var/lib/mysql/ib_logfile0 is of different size 0 104857600 bytes
InnoDB: than specified in the .cnf file 0 1073741824 bytes!
สวัสดีครับ ผม Admin จากโรงพยาบาลโนนดินแดง จังหวัดบุรีรัมย์ ยินดีที่ได้รู้จักทุกท่านและขอบคุณสำหรับคำแนะนำจากผู้รู้ทุกท่านในอนาคตอันใกล้ครับ T_T
server>>>> IBM  Cpu  Xeon  Ram 12 GB   SCSI  136 GB For Marter&slav
Hosxp  เวอร์ชั่นพิมพ์นิยม
<>Server Master : OS freebsd 8.1 : Mysql5.5.8
<>Server slav: OS freebsd 8.1 : Mysql 5.5.8
ขึ้นระบบ:ขึ้นระบบเอง:จากคำแนะนำของทีมงาน BMS
ตอนนี้ใช้ Unix เป็นชีวิตจิตใจครับ
:ปัญหาคือที่มาของประสบการณ์:พรแสวงไม่ทำให้ใครเสียแรงเปล่า
dotatainer@hotmail.com
http://www.nondindeang.com
http://www.facebook.com/dotatainer
ความใฝ่ฝันที่ทำได้แค่ฝันใฝ่
http://www.musicatm.com/indy/%E0%B8%A3%E0%B8%B1%E0%B8%81%E0%B9%80%E0%B8%98%E0%B8%AD%E0%B8%AA%E0%B8%B8%E0%B8%94%E0%B8%AB%E0%B8%B1%E0%B8%A7%E0%B9%83%E0%B8%88-14296.html

http://www.musicatm.com/indy/%E0%B8%A7%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%80%E0%B8%9B%E0%B8%A5%E0%B9%88%E0%B8%B2-11276.html