ผู้เขียน หัวข้อ: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30  (อ่าน 90377 ครั้ง)

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

ออฟไลน์ jdadmin1

  • Hero Member
  • *****
  • กระทู้: 6,468
  • "เครื่องชำรุด...งดใช้งานชั่วคราว"
  • Respect: +33
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #50 เมื่อ: สิงหาคม 25, 2009, 16:36:25 PM »
0
อ้างถึง
ตอนนี้แนะนำให้ใช้ MySQL 5.1.37 percona (XtraDB)  ครับ
;D ;D ;D กำลังจะเปลี่ยนมาใช้ตัวนี้เหมือนกันครับ ;D ;D ;D
โรงพยาบาลพระสมุทรเจดีย์สวาทยานนท์ จังหวัดสมุทรปราการ
Master   : HOSxP 3.66.12.28
Slave1   : HOSxP 3.66.12.28
Upgrade 23/12/2566
Facebook : Suntad Mamak

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

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #51 เมื่อ: สิงหาคม 25, 2009, 18:34:17 PM »
0
อ้างถึง
ตอนนี้แนะนำให้ใช้ MySQL 5.1.37 percona (XtraDB)  ครับ
;D ;D ;D กำลังจะเปลี่ยนมาใช้ตัวนี้เหมือนกันครับ ;D ;D ;D

น่าสงสาร น้องสันทัด ตาม บ่ ทัน อิอิอิ
พี่ขวด ใช้แล้วครับ  server หลักด้วย 5555

ผมรอเปลี่ยนเป็น mysql 5.4.1 percona + XtraDB กับ server หลัก
ตอนนี้ทดสอบเครื่องสำรองอยู่

เริ่ม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

ออฟไลน์ jdadmin1

  • Hero Member
  • *****
  • กระทู้: 6,468
  • "เครื่องชำรุด...งดใช้งานชั่วคราว"
  • Respect: +33
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #52 เมื่อ: สิงหาคม 25, 2009, 19:28:04 PM »
0
อ้างถึง
น่าสงสาร น้องสันทัด ตาม บ่ ทัน อิอิอิ
พี่ขวด ใช้แล้วครับ  server หลักด้วย 5555
;D ;D ;D ว่างก็เข้ามาทำให้หน่อยครับพี่ น้องไม่ค่อยมีเวลาเล๊ย ได้แต่แอบอิจฉาพี่ขวดโทรถามทีไรบอกไหลปรื๊ดไหลปรื๊ด เฮ้อ :'( :'( :'(
โรงพยาบาลพระสมุทรเจดีย์สวาทยานนท์ จังหวัดสมุทรปราการ
Master   : HOSxP 3.66.12.28
Slave1   : HOSxP 3.66.12.28
Upgrade 23/12/2566
Facebook : Suntad Mamak

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

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #53 เมื่อ: สิงหาคม 25, 2009, 19:48:40 PM »
0
อ้างถึง
น่าสงสาร น้องสันทัด ตาม บ่ ทัน อิอิอิ
พี่ขวด ใช้แล้วครับ  server หลักด้วย 5555
;D ;D ;D ว่างก็เข้ามาทำให้หน่อยครับพี่ น้องไม่ค่อยมีเวลาเล๊ย ได้แต่แอบอิจฉาพี่ขวดโทรถามทีไรบอกไหลปรื๊ดไหลปรื๊ด เฮ้อ :'( :'( :'(

ยิ่งถ้าเป็น text mode ยิ่งเร็วปรื๊ด
แรม 2 G แบบ text mode เร็วกว่า แรม 8 G แบบ กราฟิกโหมด อีก

ผมเทียบให้ดูว่าถ้ามีแรมมากแล้ว ใช้ให้คุ้มแบบสุดๆเลยครับ
เริ่ม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

ออฟไลน์ socker

  • Full Member
  • ***
  • กระทู้: 149
  • อย่ากลัวที่จะถาม หากต้องการเรียนรู้
  • Respect: 0
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #54 เมื่อ: กันยายน 11, 2009, 09:12:19 AM »
0
 :)ขอบคุณครับ
Mr.Terayut Jeenjam , Pharmacy Techinque
Tamod Hospital , Phatthalung

Email: terayut.j@gmail.com
Mobile: 084-1931207[True Move]
ขึ้นระบบ 23 ต.ค. 52 by BMS Team
โรงพยาบาลชุมชน ขนาด 30 เตียง

Activate @ 20-11-2012 14:45 pm

ออฟไลน์ machai

  • Hero Member
  • *****
  • กระทู้: 1,049
  • PhunPhinHospital
  • Respect: +12
    • ดูรายละเอียด
    • http://www.pphhos.com
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #55 เมื่อ: ตุลาคม 07, 2009, 20:43:10 PM »
0
ถ้าเป็น server 2003 หล่ะครับ :D  sql 4.
Name : ณัฐพร ประทุม (เอก) นวก.คอม รพ. 60 เตียง  รพ.พุนพิน จ. สุราษฎร์ธานี Tel.077-292144 ต่อ 132 fax:077-292135
Servers : CentOS 
Master :HP ProLiant DL360p Gen8 ram256G
คู่มือการติดตั้ง สำหรับ admin มือใหม่ Linux CentOS7+MySQL Percona 5.6 step by step
https://www.youtube.com/watch?v=7AckfkCp9cg&

ออฟไลน์ icon_teams

  • Sr. Member
  • ****
  • กระทู้: 481
  • Respect: 0
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #56 เมื่อ: ตุลาคม 09, 2009, 14:59:20 PM »
0
อ้างถึง
น่าสงสาร น้องสันทัด ตาม บ่ ทัน อิอิอิ
พี่ขวด ใช้แล้วครับ  server หลักด้วย 5555
;D ;D ;D ว่างก็เข้ามาทำให้หน่อยครับพี่ น้องไม่ค่อยมีเวลาเล๊ย ได้แต่แอบอิจฉาพี่ขวดโทรถามทีไรบอกไหลปรื๊ดไหลปรื๊ด เฮ้อ :'( :'( :'(

ยิ่งถ้าเป็น text mode ยิ่งเร็วปรื๊ด
แรม 2 G แบบ text mode เร็วกว่า แรม 8 G แบบ กราฟิกโหมด อีก

ผมเทียบให้ดูว่าถ้ามีแรมมากแล้ว ใช้ให้คุ้มแบบสุดๆเลยครับ

จริง..ก็อยากใช้แบบ text โหมดอยู่หรอก แต่ลมปราณมันยังฝึกไม่ถึง..กลัวธาตุไฟเข้าแทรก.... ;D
Name : ANC
Core i5 -3.2 Ghz,4 core,Ram 8 G : Ubuntu Server-14.04 LTS-x64 mysql -5.5.35-ubuntu 14.04 source
System start : April,1,2009
Amnatcharoen Hosxp PCU Administrator Teams
<a href="http://www.edatapcu.com">Edata PCU</a> and <a href="http://www.edatapcu.com">AHSM</a> and <a

ออฟไลน์ Khuad

  • Hero Member
  • *****
  • กระทู้: 3,778
  • .. นางฟ้า ตัวไม่น้อยแล้ว ..
  • Respect: +10
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #57 เมื่อ: ตุลาคม 09, 2009, 16:05:04 PM »
0

จริง..ก็อยากใช้แบบ text โหมดอยู่หรอก แต่ลมปราณมันยังฝึกไม่ถึง..กลัวธาตุไฟเข้าแทรก.... ;D


... เหมือนกันครับ  ;D  ;D    แต่ถ้าเป็น CentOS ตอน set ระบบทำใน GUI Mode ก่อน พอตอนใช้งานจริงก็สั่งให้ run ใน Text Mode ก็ได้ ครับ    ตั้งค่าที่ inittab (ใน etc)  เปลี่ยนค่า default  จาก 5 เป็น 3 ครับ พอสั่ง restart ก็จะทำงานใน Text Mode 
    ถ้าอยู่ใน  Text Mode  ต้องการเข้าใช้  GUI Mode ก็สั่ง init 5 ....



... ตอนนี้ใช้ CentOS4.8 + MySQL5.1.37percona(rhel4) เปลี่ยนจาก CentOS5.3 + MySQL5.1.37percona(rhel5) เมื่อคืนวันอาทิตย์นี้เองครับ  (แต่เดิมก็ใช้ CentOS 4.7 อยู่ แต่พอเพิ่ม RAM Server หลักอีกแถว จาก  2 GB เป็น 4 GB เกิด run ไม่ได้ ติดตั้ง 4.7 ใหม่ก็ไม่ได้  เลยต้องใช้ 5.3  พอมี 4.8 ทดสอบแล้วใช้ได้ก็เลยเลือกใช้ 4.8 เลย)

   มีเรื่องน่าแปลกใจที่ไม่เคยสังเกตุมาก่อนคือ  ตอนสำรองข้อมูลจาก  CentOS4.8 + MySQL5.1.37percona(rhel4)  ดึงข้อมูลจาก server ได้เร็วกว่าตอนที่เป็น   CentOS5.3 + MySQL5.1.37percona(rhel5) มากเลยครับ(ทั้ง 2 ระบบใช้ my.cnf ตัวเดียวกัน  run ใน Text Mode เหมือนกัน)

   จากเดิมใช้เวลานำเข้าข้อมูล จนครบก่อน Compress ประมาณ 50 กว่านาที(ไม่รวมตอนบีบข้อมูล)  พอใช้ CentOS4.8 + MySQL5.1.37percona(rhel4) เหลือเวลาที่นำข้อมูลมาจาก server แค่ 15-16 นาทีเอง (ข้อมูลที่สำรองที่ Compress แล้วประมาณ 420 MB)      ซึ่งระบบสำรองข้อมูลแบบรายวัน(ฺBackup Schedule)  ก็ให้ผลเหมือนกัน

   ไม่รู้มีใครทดสอบแล้วเป็นเหมือนกันบ้างหรือเปล่า  ..  :D ...
« แก้ไขครั้งสุดท้าย: ตุลาคม 09, 2009, 16:07:38 PM โดย Khuad »
โรงพยาบาลวังน้อย   พระนครศรีอยุธยา ( รพช.30 เตียง )
Server : ProLiant DL120G6  Xeon X3450  RDIMM 12 Gb  2x256GB SSD Raid 1
OS : CentOS 6.3  DB : Percona 5.5.21

Slave : ProLiant ML110G6  Xeon X3430  UDIMM 8 Gb  2x300GB SAS Raid 1
OS : CentOS 6.3  DB : Percona 5.5.32

HOSxP version  3.57.xx.xx    เริ่มระบบ  เมษายน 2549

ออฟไลน์ Khuad

  • Hero Member
  • *****
  • กระทู้: 3,778
  • .. นางฟ้า ตัวไม่น้อยแล้ว ..
  • Respect: +10
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #58 เมื่อ: ตุลาคม 09, 2009, 16:17:17 PM »
0
ถ้าเป็น server 2003 หล่ะครับ :D  sql 4.

... แนะนำว่าเปลี่ยนเถอะครับ  อย่างน้อยก็ MySQL ...  :D ...
โรงพยาบาลวังน้อย   พระนครศรีอยุธยา ( รพช.30 เตียง )
Server : ProLiant DL120G6  Xeon X3450  RDIMM 12 Gb  2x256GB SSD Raid 1
OS : CentOS 6.3  DB : Percona 5.5.21

Slave : ProLiant ML110G6  Xeon X3430  UDIMM 8 Gb  2x300GB SAS Raid 1
OS : CentOS 6.3  DB : Percona 5.5.32

HOSxP version  3.57.xx.xx    เริ่มระบบ  เมษายน 2549

ออฟไลน์ เด็กใหม่

  • Newbie
  • *
  • กระทู้: 32
  • Respect: 0
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #59 เมื่อ: ตุลาคม 09, 2009, 17:12:59 PM »
0

จริง..ก็อยากใช้แบบ text โหมดอยู่หรอก แต่ลมปราณมันยังฝึกไม่ถึง..กลัวธาตุไฟเข้าแทรก.... ;D



น่าใช้นะครับ เห็น อ.บอยใช้กับ สอ.หลายแห่ง ครับ
ถ้าเป็น server 2003 หล่ะครับ :D  sql 4.

... แนะนำว่าเปลี่ยนเถอะครับ  อย่างน้อยก็ MySQL ...  :D ...

อย่างน้อยลง เป็น
 centos 4.8+mysql 5.1.39-8 จะเป็นแบบ 32 หรือ 64 bit  ก็ไดครับ

ของผมใช้ pgsql 8.4.1 ก็  อ.บอย ทำให้   ;D ;D ;D ;D ;D ;D ;D ;D
Server Oracle-Enterprise-R6-U4+MySQL-5.5.30
Slave PC CoreI7 Ram64G HD2TBxBuffer64MB ประกอบ
เครื่องลูกข่าย Windows Vista+7+8 64bit+ระบบ HOSxP&HOSxP PCU Online(VPN)

ออฟไลน์ machai

  • Hero Member
  • *****
  • กระทู้: 1,049
  • PhunPhinHospital
  • Respect: +12
    • ดูรายละเอียด
    • http://www.pphhos.com
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #60 เมื่อ: ตุลาคม 09, 2009, 20:19:37 PM »
0
ถ้าเป็น server 2003 หล่ะครับ :D  sql 4.

... แนะนำว่าเปลี่ยนเถอะครับ  อย่างน้อยก็ MySQL ...  :D ...
เคยเปลี้ยนแล้วครับ
  เป้น centos 5.2 my sql 5.1.30 ครับ แต่เวอร์ใหม่เกินครับ
       คือ อัพจาก 50  เป็น 52 อิอิ  ;D
    ก็เลยอยากถาม ว่า ถ้าอัพ ควรอัพแบบใดถึงจะดีครับ กระทบน้อย ครับ :D อ.Khuad ครับ
Name : ณัฐพร ประทุม (เอก) นวก.คอม รพ. 60 เตียง  รพ.พุนพิน จ. สุราษฎร์ธานี Tel.077-292144 ต่อ 132 fax:077-292135
Servers : CentOS 
Master :HP ProLiant DL360p Gen8 ram256G
คู่มือการติดตั้ง สำหรับ admin มือใหม่ Linux CentOS7+MySQL Percona 5.6 step by step
https://www.youtube.com/watch?v=7AckfkCp9cg&

ออฟไลน์ gollum

  • Newbie
  • *
  • กระทู้: 14
  • Respect: 0
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #61 เมื่อ: ตุลาคม 30, 2009, 15:37:07 PM »
0
พี่ครับพอดีผมกำลังได้ SIS for Health มาครับ แล้วไม่รู้เรื่อง linux เลยอะครับ ที่นี่มีแต่ centOS กับอย่างอื่นอะครับ คุยกับมันก้อไม่รู้เรื่องอะครับ ตอนนี้อยากจะอัพเวอร์ชันของ msql ครับ ที่ติดมากับ SIS for Health รู้สึกว่าจะ 5.0.32 นะครับ เห็นเค้าบอกว่าจะให้ดีมันต้องเป็นเวอร์ชัน 5.1.xx ขึ้นไป ผมไม่รู้จะทำยังไงครับ
ขอวิธีสอนอย่างละเอียดเลยนะครับเผื่อจะทำให้ผมไถนาเป็นครับ
ขอบคุณครับ
Mr.Banphot Suriyarangka

มองดูตังเองว่าทำอะไรหรือไม่...

สำนักงานสาธารณสุขจังหวัดน่าน
อ.เมือง จ.น่าน 55000
tel.054-774-629
______________________________________

dell xps l401x
i7 ram 4 g hdd 750 g
gforce 2 g
เริ่มใช้ 1//4/54

ออฟไลน์ udomchok

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

ออฟไลน์ ZemaplUS2

  • Full Member
  • ***
  • กระทู้: 122
  • Respect: 0
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #63 เมื่อ: พฤษภาคม 26, 2011, 12:49:20 PM »
0
ทำไมผม Update Mysql Server แล้วมันขึ้น Error แบบนี้ครับ
.....................................................................
[root@localhost ~]# rpm -qa | grep -i '^mysql-'
MySQL-shared-5.6.2_m5-1.rhel5
MySQL-client-5.6.2_m5-1.rhel5
MySQL-devel-5.6.2_m5-1.rhel5
MySQL-test-5.6.2_m5-1.rhel5
[root@localhost ~]# rpm -ivh MySQL-server-5.6.2_m5-1.rhel5.i386.rpm --nodeps --force
Preparing...                ########################################### [100%]
ls: /var/lib/mysql/*.err: No such file or directory
ls: /var/lib/mysql/*.err: No such file or directory
   1:MySQL-server           ########################################### [100%]
110526 12:38:12 [ERROR] Column count of mysql.proc is wrong. Expected 20, found 16. Created with MySQL 50077, now running 50602. Please use mysql_upgrade to fix this error.
ERROR: 1136  Column count doesn't match value count at row 1
110526 12:38:13 [ERROR] Aborting

110526 12:38:13 [Note] Binlog end
110526 12:38:13 [Note] Shutting down plugin 'partition'
110526 12:38:13 [Note] Shutting down plugin 'BLACKHOLE'
110526 12:38:13 [Note] Shutting down plugin 'ARCHIVE'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_METRICS'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_CMPMEM'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_CMP_RESET'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_CMP'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_LOCKS'
110526 12:38:13 [Note] Shutting down plugin 'INNODB_TRX'
110526 12:38:13 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
110526 12:38:13 [Note] Shutting down plugin 'MEMORY'
110526 12:38:13 [Note] Shutting down plugin 'MyISAM'
110526 12:38:13 [Note] Shutting down plugin 'MRG_MYISAM'
110526 12:38:13 [Note] Shutting down plugin 'CSV'
110526 12:38:13 [Note] Shutting down plugin 'mysql_old_password'
110526 12:38:13 [Note] Shutting down plugin 'mysql_native_password'
110526 12:38:13 [Note] Shutting down plugin 'binlog'
110526 12:38:13 [Note] /usr/sbin/mysqld: Shutdown complete


Installation of system tables failed!  Examine the logs in
/var/lib/mysql for more information.

You can try to start the mysqld daemon with:

    shell> /usr/sbin/mysqld --skip-grant &

and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:

    shell> /usr/bin/mysql -u root mysql
    mysql> show tables

Try 'mysqld --help' if you have problems with paths.  Using --log
gives you a log in /var/lib/mysql that may be helpful.

Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS.  Another information source are the
MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before mailing us!  And remember, if
you do mail us, you MUST use the /usr/bin/mysqlbug script!

[root@localhost ~]# Mysql
-bash: Mysql: command not found
[root@localhost ~]# mysql
-bash: /usr/bin/mysql: No such file or directory
[root@localhost ~]#


....................................................................................................
สเปคเครื่องครับ IBM System x3200 แรม 4 G ครับ CenOS 5 ครับ ช่วแนะนำด้วยครับ
Mainserver IBM 3100
Slave  PC ร้ายๆ ตัวหนึ่ง

ออฟไลน์ nph2006

  • Sr. Member
  • ****
  • กระทู้: 417
  • Respect: +1
    • ดูรายละเอียด
    • www.nongphok.net
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #64 เมื่อ: พฤษภาคม 26, 2011, 13:34:02 PM »
0
ระบบ ก็มี mysql อยู่แล้วไม่ใช่หรือครับ
[root@localhost ~]# rpm -qa | grep -i '^mysql-'
MySQL-shared-5.6.2_m5-1.rhel5
MySQL-client-5.6.2_m5-1.rhel5
MySQL-devel-5.6.2_m5-1.rhel5
MySQL-test-5.6.2_m5-1.rhel5

ถ้าจะติดตั้งแบบ upgrade ให้ใช้ option
rpm -Uvh MySQL-server-5.6.2_m5-1.rhel5.i386.rpm --nodeps --force
รพ.หนองพอก จ.ร้อยเอ็ด 30 เตียง
www.nongphok.net
cup_nph@yahoo.com
may_put@hotmail.com
Server :  CentOS 6.4 64 Bit  Ram 32 Gb SAS 300*3 RAID 5 MySQL Percona Server 5.5.30 64 Bit
Slave : CentOS 5.4 64 Bit  Ram 4 Gb MySQL 5.1.55 64 Bit
Lis : Smart LIMS

Client : Windows XP  HosXP : 3.56.6.20, 72 client

ออฟไลน์ ZemaplUS2

  • Full Member
  • ***
  • กระทู้: 122
  • Respect: 0
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #65 เมื่อ: พฤษภาคม 26, 2011, 15:25:51 PM »
0
ระบบ ก็มี mysql อยู่แล้วไม่ใช่หรือครับ
[root@localhost ~]# rpm -qa | grep -i '^mysql-'
MySQL-shared-5.6.2_m5-1.rhel5
MySQL-client-5.6.2_m5-1.rhel5
MySQL-devel-5.6.2_m5-1.rhel5
MySQL-test-5.6.2_m5-1.rhel5

ถ้าจะติดตั้งแบบ upgrade ให้ใช้ option
rpm -Uvh MySQL-server-5.6.2_m5-1.rhel5.i386.rpm --nodeps --force


ลองใช้คำสั่งตามที่บอกแล้วครับ ยังไม่ได้ครับ ผลเป็นดังนี้

Preparing...                ########################################### [100%]
   1:MySQL-client           ########################################### [100%]
[root@localhost ~]# rpm -ivh MySQL-shared-5.6.2_m5-1.rhel5.i386.rpm --nodeps --force
Preparing...                ########################################### [100%]
   1:MySQL-shared           ########################################### [100%]
[root@localhost ~]# rpm -Uvh MySQL-server-5.6.2_m5-1.rhel5.i386.rpm --nodeps --force
Preparing...                ########################################### [100%]
ls: /var/lib/mysql/*.err: No such file or directory
ls: /var/lib/mysql/*.err: No such file or directory
   1:MySQL-server           ########################################### [100%]
110526 15:15:50 [ERROR] Column count of mysql.proc is wrong. Expected 20, found 16. Created with MySQL 50077, now running 50602. Please use mysql_upgrade to fix this error.
ERROR: 1136  Column count doesn't match value count at row 1
110526 15:15:51 [ERROR] Aborting

110526 15:15:51 [Note] Binlog end
110526 15:15:51 [Note] Shutting down plugin 'partition'
110526 15:15:51 [Note] Shutting down plugin 'BLACKHOLE'
110526 15:15:51 [Note] Shutting down plugin 'ARCHIVE'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_METRICS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_CMPMEM'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_CMP_RESET'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_CMP'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_LOCKS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_TRX'
110526 15:15:51 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
110526 15:15:51 [Note] Shutting down plugin 'MEMORY'
110526 15:15:51 [Note] Shutting down plugin 'MyISAM'
110526 15:15:51 [Note] Shutting down plugin 'MRG_MYISAM'
110526 15:15:51 [Note] Shutting down plugin 'CSV'
110526 15:15:51 [Note] Shutting down plugin 'mysql_old_password'
110526 15:15:51 [Note] Shutting down plugin 'mysql_native_password'
110526 15:15:51 [Note] Shutting down plugin 'binlog'
110526 15:15:51 [Note] /usr/sbin/mysqld: Shutdown complete


Installation of system tables failed!  Examine the logs in
/var/lib/mysql for more information.

You can try to start the mysqld daemon with:

    shell> /usr/sbin/mysqld --skip-grant &

and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:

    shell> /usr/bin/mysql -u root mysql
    mysql> show tables

Try 'mysqld --help' if you have problems with paths.  Using --log
gives you a log in /var/lib/mysql that may be helpful.

Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS.  Another information source are the
MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before mailing us!  And remember, if
you do mail us, you MUST use the /usr/bin/mysqlbug script!

[root@localhost ~]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.0.77 Source distribution
Mainserver IBM 3100
Slave  PC ร้ายๆ ตัวหนึ่ง

ออฟไลน์ มดตานอย ครับ..

  • Hero Member
  • *****
  • กระทู้: 3,137
  • Respect: 0
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #66 เมื่อ: พฤษภาคม 26, 2011, 15:27:07 PM »
0
เล่น mysql 5.6 เลยหรือครับ

Nakhonphanom Hospital

MR.Tanoy999 ผู้ใช้งานทั่วไป
tanoy999-at-gmail-dot-com
เริ่ม  1 ตุลาคม 2549  โดย  BMS

ออฟไลน์ ZemaplUS2

  • Full Member
  • ***
  • กระทู้: 122
  • Respect: 0
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #67 เมื่อ: พฤษภาคม 26, 2011, 15:45:12 PM »
0
ลองถอยเวอร์ชั่นเป็น 5.5 ก็ขึ้นคลายๆ กันครับ

............................................
[root@localhost ~]# rpm -Uvh MySQL-server-5.5.11-1.rhel5.i386.rpm --nodeps --force
Preparing...                ########################################### [100%]
ls: /var/lib/mysql/*.err: No such file or directory
ls: /var/lib/mysql/*.err: No such file or directory
   1:MySQL-server           ########################################### [100%]
110526 15:36:42 [ERROR] Column count of mysql.proc is wrong. Expected 20, found 16. Created with MySQL 50077, now running 50511. Please use mysql_upgrade to fix this error.
ERROR: 1136  Column count doesn't match value count at row 1
110526 15:36:42 [ERROR] Aborting

110526 15:36:42 [Note] /usr/sbin/mysqld: Shutdown complete


Installation of system tables failed!  Examine the logs in
/var/lib/mysql for more information.

You can try to start the mysqld daemon with:

    shell> /usr/sbin/mysqld --skip-grant &

and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:

    shell> /usr/bin/mysql -u root mysql
    mysql> show tables

Try 'mysqld --help' if you have problems with paths.  Using --log
gives you a log in /var/lib/mysql that may be helpful.

Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS.  Another information source are the
MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before mailing us!  And remember, if
you do mail us, you MUST use the /usr/bin/mysqlbug script!

[root@localhost ~]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.


.........................................................................
รบกวนขอความรู้ด้วยครับ
Mainserver IBM 3100
Slave  PC ร้ายๆ ตัวหนึ่ง

ออฟไลน์ nph2006

  • Sr. Member
  • ****
  • กระทู้: 417
  • Respect: +1
    • ดูรายละเอียด
    • www.nongphok.net
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #68 เมื่อ: พฤษภาคม 26, 2011, 15:54:09 PM »
0
mysql ตัวเก่าเป็นอะไรครับ
ต้องแก้ ที่ my.ini ด้วยครับ ถ้าเป็น 5.5 -5.6
เปิดดูที่ในห้อง mysql ไฟล์  .err
รพ.หนองพอก จ.ร้อยเอ็ด 30 เตียง
www.nongphok.net
cup_nph@yahoo.com
may_put@hotmail.com
Server :  CentOS 6.4 64 Bit  Ram 32 Gb SAS 300*3 RAID 5 MySQL Percona Server 5.5.30 64 Bit
Slave : CentOS 5.4 64 Bit  Ram 4 Gb MySQL 5.1.55 64 Bit
Lis : Smart LIMS

Client : Windows XP  HosXP : 3.56.6.20, 72 client

ออฟไลน์ ZemaplUS2

  • Full Member
  • ***
  • กระทู้: 122
  • Respect: 0
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #69 เมื่อ: พฤษภาคม 26, 2011, 15:57:25 PM »
0
ติดตั้งเครื่องใหม่ครับ กำลังทดลองหาความรู้ครับ Mysql Version  5.0.77  แก้ที่ตรงไหนครับ
Mainserver IBM 3100
Slave  PC ร้ายๆ ตัวหนึ่ง

ออฟไลน์ nph2006

  • Sr. Member
  • ****
  • กระทู้: 417
  • Respect: +1
    • ดูรายละเอียด
    • www.nongphok.net
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #70 เมื่อ: พฤษภาคม 26, 2011, 16:12:26 PM »
0
มีคู่มือหรือยัง ใน web มีเยอะ
ก่อนติดตั้ง mysql อย่าลืมลบ package เดิมออกก่อน
รพ.หนองพอก จ.ร้อยเอ็ด 30 เตียง
www.nongphok.net
cup_nph@yahoo.com
may_put@hotmail.com
Server :  CentOS 6.4 64 Bit  Ram 32 Gb SAS 300*3 RAID 5 MySQL Percona Server 5.5.30 64 Bit
Slave : CentOS 5.4 64 Bit  Ram 4 Gb MySQL 5.1.55 64 Bit
Lis : Smart LIMS

Client : Windows XP  HosXP : 3.56.6.20, 72 client

ออฟไลน์ udomchok

  • Hero Member
  • *****
  • กระทู้: 8,347
  • Respect: +589
    • ดูรายละเอียด
    • ร.พ.สมเด็จพระสังฆราช องค์ที่ 17
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #71 เมื่อ: พฤษภาคม 27, 2011, 07:44:13 AM »
0
ลงใน CentOS version อะไรครับ
เล่นของสูงเลยนะครับ MySQL 5.6 เนี่ย
 ;D ;D ;D ;D ;D
ทำด้วยหัวใจร.พ.สมเด็จพระสังฆราช องค์ที่ 17 อ.สองพี่น้อง จ.สุพรรณบุรี
อบรมโดย BMS Team เมื่อ พ.ย. 49 ขึ้นระบบห้องบัตรเมื่อ X'Mas 2007
2008 : X-Ray กายภาพบำบัด แพทย์แผนไทย กิจกรรมบำบัด OPD ตา
2009 : ทันตกรรม ห้องตรวจตา OPD (พยาบาลและห้องตรวจแพทย์บางห้อง)

ออฟไลน์ ZemaplUS2

  • Full Member
  • ***
  • กระทู้: 122
  • Respect: 0
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #72 เมื่อ: พฤษภาคม 27, 2011, 08:00:42 AM »
0
CENT OS 5.6 ครับ ลองเล่นของสูง ครับ เพิ่มพูน ความรู้ครับ
Mainserver IBM 3100
Slave  PC ร้ายๆ ตัวหนึ่ง

ออฟไลน์ มดตานอย ครับ..

  • Hero Member
  • *****
  • กระทู้: 3,137
  • Respect: 0
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #73 เมื่อ: พฤษภาคม 27, 2011, 08:29:36 AM »
0
1.ต้องลง centos 5.6 แบบเลือกแต่ base ครับ
2.เรื่อง firewall +selinux ปิดยังครับ
มีปัญหาก็ ส่งข้อความมาเลยครับ 

Nakhonphanom Hospital

MR.Tanoy999 ผู้ใช้งานทั่วไป
tanoy999-at-gmail-dot-com
เริ่ม  1 ตุลาคม 2549  โดย  BMS

ออฟไลน์ ZemaplUS2

  • Full Member
  • ***
  • กระทู้: 122
  • Respect: 0
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #74 เมื่อ: พฤษภาคม 27, 2011, 09:54:55 AM »
0
ลงแบบ Base แล้วครับ เปิด SSE Port 22 ครับ เดี่ยวจาลองถอย Version Cent OS ดูครับ ส่งสัยเครื่องเก่า เกินไป ^^"
Mainserver IBM 3100
Slave  PC ร้ายๆ ตัวหนึ่ง

ออฟไลน์ มดตานอย ครับ..

  • Hero Member
  • *****
  • กระทู้: 3,137
  • Respect: 0
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #75 เมื่อ: พฤษภาคม 27, 2011, 10:03:22 AM »
0
ถ้าจะถอยก็ใช้ CentOS4.7-ServerCD ไปเลยครับ
CentOS4.7-ServerCD+percona 5.1.55-12.6
http://vault.centos.org/4.7/isos/i386/
-   CentOS-4.7.ServerCD-i386.iso

Nakhonphanom Hospital

MR.Tanoy999 ผู้ใช้งานทั่วไป
tanoy999-at-gmail-dot-com
เริ่ม  1 ตุลาคม 2549  โดย  BMS

ออฟไลน์ ZemaplUS2

  • Full Member
  • ***
  • กระทู้: 122
  • Respect: 0
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #76 เมื่อ: พฤษภาคม 27, 2011, 10:28:06 AM »
0
จะทำสอบดู ครับ ได้ผลได้ จะนำมาเเจ้งให้ทราบอีกครั้งหนึ่งครับ
Mainserver IBM 3100
Slave  PC ร้ายๆ ตัวหนึ่ง

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

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #77 เมื่อ: พฤษภาคม 30, 2011, 09:01:44 AM »
0
ลงใน CentOS version อะไรครับ
เล่นของสูงเลยนะครับ MySQL 5.6 เนี่ย
 ;D ;D ;D ;D ;D


ผมทดสอบ แล้ว
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=20834.0

ยังไม่ค่อยเร็วต้องรอดูอีกสักหน่อย
เริ่ม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

ออฟไลน์ panus_t

  • Hero Member
  • *****
  • กระทู้: 2,368
  • Respect: +8
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #78 เมื่อ: กันยายน 19, 2011, 15:31:04 PM »
0
จากนั้นให้ทำการติดตั้ง MySQL-Server ใหม่อีกครั้ง คราวนี้จะติดตั้งได้สำเร็จ ดังรูป

error แบบนี้ทำไงครับ
[root@hosxp-pcu tmp]# rpm -ivh MySQL-server-5.1.59-1.glibc23.x86_64.rpm --nodeps --force
Preparing...                ########################################### [100%]
ls: /var/lib/mysql/*.err: No such file or directory
ls: /var/lib/mysql/*.err: No such file or directory
   1:MySQL-server           ########################################### [100%]
โรงพยาบาลเสิงสาง จ.นครราชสีมา (ขนาด  60  เตียง ปี2554)  ขึ้นระบบโดยทีมงาน BMS  เมื่อเดือนเมษายน 2551
ก่อนหน้านั้นขึ้นระบบเมื่อ 07/07/07 ฤกษ์ดี  Master Server  IBM System x3500M4  RAM ECC 24 GB. HardDisk SAS 450x3 GB. ServerRAID M1100 Series Zero RAID5  OS:CentOS 6.4  MySQLPercona : 5.5.30-30.1

ออฟไลน์ Eak_FortWC

  • Newbie
  • *
  • กระทู้: 21
  • เจ้าหน้าที่ IT มือใหม่คับ
  • Respect: 0
    • ดูรายละเอียด
Re: การ Upgrade MySQL จาก 4.1.x/5.0.x เป็น 5.1.30
« ตอบกลับ #79 เมื่อ: สิงหาคม 25, 2013, 22:56:15 PM »
0
ขอบคุณครับ