ผู้เขียน หัวข้อ: sql error  (อ่าน 4884 ครั้ง)

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

ออฟไลน์ kai1

  • Newbie
  • *
  • กระทู้: 14
  • Respect: 0
    • ดูรายละเอียด
sql error
« เมื่อ: มีนาคม 14, 2011, 18:18:06 PM »
0
sql error table opitemrece is marked as crashed and should be repaired ครับ ช่วยด้วยครับ รีแพเทเบิลแล้วก็ไม่หาย ทำไงดี อาจารย์ทุกๆท่านช่วด้วยครับ รพ.กุดบาก โทร 0899431373 ขอบคุณครับ
Kaiwal Suttiarj (ออด) Kutbak Hospital นวก.คอมฯ
Tel 0899431373 E-mail ksuttiarj@hotmail.com
Server HP ML330 RAM 1.5 GB HD 36 GB Centos 4.3 MySQL 5.1.30
Slave PC Aser RAM 2GB 1HD
Start march 49 BMS Group Tuk Kaeng

ออฟไลน์ dotAtainer

  • Hero Member
  • *****
  • กระทู้: 1,256
  • กระบี่กรียุค
  • Respect: +3
    • ดูรายละเอียด
    • http://www.nondindeang.com
Re: sql error
« ตอบกลับ #1 เมื่อ: มีนาคม 14, 2011, 18:49:31 PM »
0
 ;D ;D ;D ก่อนหน้านั้นมีอะไรเกิดขึ้นบ้างมั้ยครับ อาทิ ไฟตก ไฟดับ Harddisk เต็มประมาณนี้

df -h  สั่งดูพื้นที่ hdd
สวัสดีครับ ผม 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

ออฟไลน์ openone

  • Newbie
  • *
  • กระทู้: 4
  • Respect: 0
    • ดูรายละเอียด
Re: sql error
« ตอบกลับ #2 เมื่อ: มีนาคม 14, 2011, 19:56:06 PM »
0
 ??? ??? ???ขอต่อ กระทู้หน่อยนะครับ ใน xxxx.err  ขึ้นแบบนี้หลัง up vertion จากเดิม 3.53.3.28  เป็น 3.54.2.2
ครั้งแรก upgrade struger ไม่ผ่านขึ้นแบบนี้ครับ ครั้ง 2 ผ่านใช้มา2-3วันแล้วครับ
แต่ไม่ทราบว่าขึ้นแบบนี้จะมีปัญหากับระบบหรือเปล่าครับ(แต่ก็ใช้งานได้ปกติ) ไม่มั้นใจเลยมือใหม่ครับ
ตัดมาให้ดูบางส่วนนะครับเยอะเกินตาลาย
Version: '5.1.39-percona'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL), XtraDB 8, Revision 45
110313  1:00:12  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 1001 iterations
110313  1:00:12  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 1002 iterations
110313  1:00:12  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 1003 iterations
110313  1:00:12  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 1004 iterations
110313  1:00:12  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 1005 iterations
110313  1:00:12  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 1006 iterations
110313  1:00:12  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 1007 iterations
110313  1:00:12  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 1008 iterations
110313  1:00:12  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 1009 iterations
110313  1:06:32  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 19898 iterations
110313  1:06:32  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 19899 iterations
InnoDB: Warning: tablespace './hos/tmp_patient_history.ibd' has i/o ops stopped for a long time 20001
110313  1:06:32  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 19900 iterations
InnoDB: Warning: tablespace './hos/tmp_patient_history.ibd' has i/o ops stopped for a long time 20002
110313  1:06:32  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 19901 iterations
InnoDB: Warning: tablespace './hos/tmp_patient_history.ibd' has i/o ops stopped for a long time 20003
110313  1:06:32  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 19902 iterations
InnoDB: Warning: tablespace './hos/tmp_patient_history.ibd' has i/o ops stopped for a long time 20004
110313  1:06:32  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 19903 iterations
InnoDB: Warning: tablespace './hos/tmp_patient_history.ibd' has i/o ops stopped for a long time 20005
InnoDB: Warning: tablespace './hos/tmp_patient_history.ibd' has i/o ops stopped for a long time 25110
110313  1:08:15  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 24998 iterations
InnoDB: Warning: tablespace './hos/tmp_patient_history.ibd' has i/o ops stopped for a long time 25111
110313  1:08:15  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 24999 iterations
InnoDB: Warning: tablespace './hos/tmp_patient_history.ibd' has i/o ops stopped for a long time 25112
110313  1:08:15  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 25000 iterations
InnoDB: Warning: tablespace './hos/tmp_patient_history.ibd' has i/o ops stopped for a long time 25113
110313  1:08:15  InnoDB: Warning: problems renaming 'hos/tmp_patient_history' to 'hos/#sql2-154d-4c', 25001 iterations
110313  1:08:15  InnoDB: Error; possible reasons:
InnoDB: 1) Table rename would cause two FOREIGN KEY constraints
InnoDB: to have the same internal name in case-insensitive comparison.
InnoDB: 2) table `hos`.`tmp_patient_history` exists in the InnoDB internal data
InnoDB: dictionary though MySQL is trying to rename table `hos`.`#sql-154d_4c` to it.
InnoDB: Have you deleted the .frm file and not used DROP TABLE?
InnoDB: You can look for further help from
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/innodb-troubleshooting.html
InnoDB: If table `hos`.`tmp_patient_history` is a temporary table #sql..., then it can be that
InnoDB: there are still queries running on the table, and it will be
InnoDB: dropped automatically when the queries end.
InnoDB: You can drop the orphaned table inside InnoDB by
InnoDB: creating an InnoDB table with the same name in another
InnoDB: database and copying the .frm file to the current database.
InnoDB: Then MySQL thinks the table exists, and DROP TABLE will
InnoDB: succeed.
110313  1:08:15  InnoDB: Error: table `hos`.`#sql2-154d-4c` does not exist in the InnoDB internal
InnoDB: data dictionary though MySQL is trying to rename the table.
InnoDB: Have you copied the .frm file of the table to the
InnoDB: MySQL database directory from another database?
InnoDB: You can look for further help from
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/innodb-troubleshooting.html
110313  1:58:13 [Note] /usr/sbin/mysqld: Normal shutdown
 ??? ??? ??? ??? ???
ว่าที่ ร.ต.สรวิศิฏ์ ลิ้มศิริ <เท่ห่><status ตั้งไข่>
เจ้าหน้าที่ IT รพ.นครชัยศรี

server: IBM X3550 CPU xeon 2.0 Ghz Ram 8 Gb. HDD 146 Gb.
(VMware ESXI 4.0 )
Hosxp : 3.54.2.2
Guest 1: Master : Centos 5.2 64 bit mysql 5.1.39-percona Ram 4 Gb HDD : 80 Gb<ฺBMSทำให้>
Guest 2 : Windowns server 2003 32 bit Ram 2.5 Gb HDD 40 Gb (Run Program  ที่ไม่เกี่ยวกับ hosxp ^ ^!)

Slave : PC Hp P.D 935 Centos 5.2 64 bit ram 4 Gb HDD 250 Gb mysql 5.1.39-percona<ลองหัดทำเอง>

ความทุกข์ที่เกินทน จะหลอมคนให้ทนทาน
ปัญญาไม่เกิด ถ้าไม่เกิดปัญหา

อาจารย์ The one ของผม อ.นาจ รพ.หลวงพ่อเปิ่น
และขอขอบคุณ ที่คอยช่วยเหลือมาตลอด

ออฟไลน์ openone

  • Newbie
  • *
  • กระทู้: 4
  • Respect: 0
    • ดูรายละเอียด
Re: sql error
« ตอบกลับ #3 เมื่อ: มีนาคม 15, 2011, 20:07:38 PM »
0
ขอดันหน่อยนะคับ ??? ??? ???
ว่าที่ ร.ต.สรวิศิฏ์ ลิ้มศิริ <เท่ห่><status ตั้งไข่>
เจ้าหน้าที่ IT รพ.นครชัยศรี

server: IBM X3550 CPU xeon 2.0 Ghz Ram 8 Gb. HDD 146 Gb.
(VMware ESXI 4.0 )
Hosxp : 3.54.2.2
Guest 1: Master : Centos 5.2 64 bit mysql 5.1.39-percona Ram 4 Gb HDD : 80 Gb<ฺBMSทำให้>
Guest 2 : Windowns server 2003 32 bit Ram 2.5 Gb HDD 40 Gb (Run Program  ที่ไม่เกี่ยวกับ hosxp ^ ^!)

Slave : PC Hp P.D 935 Centos 5.2 64 bit ram 4 Gb HDD 250 Gb mysql 5.1.39-percona<ลองหัดทำเอง>

ความทุกข์ที่เกินทน จะหลอมคนให้ทนทาน
ปัญญาไม่เกิด ถ้าไม่เกิดปัญหา

อาจารย์ The one ของผม อ.นาจ รพ.หลวงพ่อเปิ่น
และขอขอบคุณ ที่คอยช่วยเหลือมาตลอด

ออฟไลน์ manoi

  • Hero Member
  • *****
  • กระทู้: 8,669
  • Respect: +170
    • ดูรายละเอียด
    • HOSxP Community Center
Re: sql error
« ตอบกลับ #4 เมื่อ: มีนาคม 15, 2011, 20:56:47 PM »
0
ลองปรับ limits.conf ดูหรือยังครับ

http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=10972.msg67116#msg67116
HOSxP Project Manager / Cheif Developer / BMS MD

ออฟไลน์ openone

  • Newbie
  • *
  • กระทู้: 4
  • Respect: 0
    • ดูรายละเอียด
Re: sql error
« ตอบกลับ #5 เมื่อ: มีนาคม 15, 2011, 22:25:03 PM »
0
ลองปรับ limits.conf ดูหรือยังครับ

http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=10972.msg67116#msg67116


ปรับตั้งแต่ ทำ server แล้ว ครับ  ปรับค่าตามที่ อ. manoi โพสไว้ เหมือน เดะๆ เลยครับ
 ( พอดีอ่านเจอที่ อ.โพสไว้อ่านแล้วก็ไปทำ.   ส่วน My.conf ก็ BMS ทำให้อ่าครับ )




 
« แก้ไขครั้งสุดท้าย: มีนาคม 16, 2011, 17:53:07 PM โดย openone »
ว่าที่ ร.ต.สรวิศิฏ์ ลิ้มศิริ <เท่ห่><status ตั้งไข่>
เจ้าหน้าที่ IT รพ.นครชัยศรี

server: IBM X3550 CPU xeon 2.0 Ghz Ram 8 Gb. HDD 146 Gb.
(VMware ESXI 4.0 )
Hosxp : 3.54.2.2
Guest 1: Master : Centos 5.2 64 bit mysql 5.1.39-percona Ram 4 Gb HDD : 80 Gb<ฺBMSทำให้>
Guest 2 : Windowns server 2003 32 bit Ram 2.5 Gb HDD 40 Gb (Run Program  ที่ไม่เกี่ยวกับ hosxp ^ ^!)

Slave : PC Hp P.D 935 Centos 5.2 64 bit ram 4 Gb HDD 250 Gb mysql 5.1.39-percona<ลองหัดทำเอง>

ความทุกข์ที่เกินทน จะหลอมคนให้ทนทาน
ปัญญาไม่เกิด ถ้าไม่เกิดปัญหา

อาจารย์ The one ของผม อ.นาจ รพ.หลวงพ่อเปิ่น
และขอขอบคุณ ที่คอยช่วยเหลือมาตลอด

ออฟไลน์ thecoy

  • Hero Member
  • *****
  • กระทู้: 1,159
  • นักวิชาการคอมพิวเตอร์
  • Respect: 0
    • ดูรายละเอียด
Re: sql error
« ตอบกลับ #6 เมื่อ: มีนาคม 15, 2011, 22:27:56 PM »
0
ลอง up ใหม่ อีกครั้งดู
โรงพยาบาลรัษฎา  ตรัง
CentOS 5.5  Ram  4  GB
HOSxP V.3.54.11.2 MySQL 5.1.30