ผู้เขียน หัวข้อ: ช่วยดู error ตอนลง mysql ให้หน่อยคับ  (อ่าน 5729 ครั้ง)

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

ออฟไลน์ ohhlanla

  • Newbie
  • *
  • กระทู้: 20
  • ("^ ^)
  • Respect: 0
    • ดูรายละเอียด
ช่วยดู error ตอนลง mysql ให้หน่อยคับ
« เมื่อ: สิงหาคม 06, 2008, 16:33:38 PM »
0
พอใช้คำสั่งนี้

rpm -ivh MySQL-server-5.1.26-0.glibc23.i386.rpm --nodeps --force
Preparing...                ########################################### [100%]

******************************************************************

A MySQL server package (MySQL-server-5.1.26-0.glibc23) is installed.

The current MySQL server package is provided by a different
vendor (warning: cannot get shared lock on /var/lib/rpm/Packages
MySQL AB) than MySQL AB.  Some files may be installed
to different locations, including log files and the service
startup script in /etc/init.d/.

Upgrading directly from MySQL <unrecognized version warning: cannot get shared lock on /var/lib/rpm/Packages
5.1.26> to MySQL 5.1 may not
be safe in all cases.  A manual dump and restore using mysqldump is
recommended.  It is important to review the MySQL manual's Upgrading
section for version-specific incompatibilities.

A manual upgrade is required.

- Ensure that you have a complete, working backup of your data and my.cnf
  files
- Shut down the MySQL server cleanly
- Remove the existing MySQL packages.  Usually this command will
  list the packages you should remove:
  rpm -qa | grep -i '^mysql-'

  You may choose to use 'rpm --nodeps -ev <package-name>' to remove
  the package which contains the mysqlclient shared library.  The
  library will be reinstalled by the MySQL-shared-compat package.
- Install the new MySQL packages supplied by MySQL AB
- Ensure that the MySQL server is started
- Run the 'mysql_upgrade' program

This is a brief description of the upgrade process.  Important details
can be found in the MySQL manual, in the Upgrading section.
******************************************************************
error: %pre(MySQL-server-5.1.26-0.glibc23.i386) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping MySQL-server-5.1.26-0.glibc23

จะแก้ยังไงดีคับเนี่ย
"ถ้าเราหยุดแค่คำว่าดี เราจะไม่รู้จักคำว่าดีที่สุด"

doramon

  • บุคคลทั่วไป
Re: ช่วยดู error ตอนลง mysql ให้หน่อยคับ
« ตอบกลับ #1 เมื่อ: สิงหาคม 06, 2008, 16:46:40 PM »
0
มีการลง mysql-server ไปแล้วครับ   


มันไม่ให้ลง ซ้ำเอาตัวเก่า หรือ ที่ ลิงผิด ออก ก่อน

ผมก็เคย
ลงตอนแรกลืมปิด firewall   แต่มันลงไว้แต่รันไมไ่ด้


rpm -e  mysql*



ออฟไลน์ ohhlanla

  • Newbie
  • *
  • กระทู้: 20
  • ("^ ^)
  • Respect: 0
    • ดูรายละเอียด
Re: ช่วยดู error ตอนลง mysql ให้หน่อยคับ
« ตอบกลับ #2 เมื่อ: สิงหาคม 06, 2008, 17:02:01 PM »
0
rpm -e mysql* อันนี้เป็นคำสั่ง remove ใช่ป่าวคับ แล้วตรง mysql เราจะรู้ได้ไงอ่ะคับว่ามันเป็นอะไร หรือมีวิธีการ remove ทาง graphic mode มัี๊ยคับ
"ถ้าเราหยุดแค่คำว่าดี เราจะไม่รู้จักคำว่าดีที่สุด"

ออฟไลน์ pa_net

  • Hero Member
  • *****
  • กระทู้: 508
  • หน้าที่ Admin คือ ทำได้ทุกอย่าง ยากเว้นดูแลใจตัวเอ
  • Respect: 0
    • ดูรายละเอียด
Re: ช่วยดู error ตอนลง mysql ให้หน่อยคับ
« ตอบกลับ #3 เมื่อ: สิงหาคม 06, 2008, 17:38:58 PM »
0
ไปที่ Add/remove Program ครับ เลือก Drop
MySQL-shared-x.x.xx-x.glibcxx.i386.rpm
MySQL-client-x.x.xx-x.glibcxx.i386.rpm
MySQL-server-x.x.xx-x.glibcxx.i386.rpm
ออก แล้วทำการกด OK ครับ
แล้วลงใหม่ครับผม แนะว่าใช้ Text Mode เวอร์กว่าเยอะครับ
อดีต Admin Fort Chiraprawat Hospital Nakhonsawan ขึ้นระบบโดย BMS ทีม(น้องเกียง) มิ.ย. 2550
ปัจจุบัน เจ้าหน้าที่ไอที โรงพยาบาลโกรกพระ (ขนาด 30 เตียง) อ.โกรกพระ จ.นครสวรรค์ รพ.ขึ้นระบบเอง เมื่อปี 2551 ผมมารับช่วงต่อปี 2555
Server หลัก -
Server รอง  -
HOSxP Ver 3.55.1.19

ออฟไลน์ ohhlanla

  • Newbie
  • *
  • กระทู้: 20
  • ("^ ^)
  • Respect: 0
    • ดูรายละเอียด
Re: ช่วยดู error ตอนลง mysql ให้หน่อยคับ
« ตอบกลับ #4 เมื่อ: สิงหาคม 07, 2008, 09:04:53 AM »
0
เข้าไปลองใช้คำสั่ง rpm -e mysql-server แล้ว มันขึ้นว่า
error : package mysql-server is not installed

เข้าไปใน add/remove software ก็ไม่มี mysql ให้remove อ่ะคับ เหมือนกับว่ามันยังไม่ได้ install ไปเลย
"ถ้าเราหยุดแค่คำว่าดี เราจะไม่รู้จักคำว่าดีที่สุด"

ออฟไลน์ yord

  • Hero Member
  • *****
  • กระทู้: 1,952
  • PATTANI HOSPITAL
  • Respect: +2
    • ดูรายละเอียด
    • http://www.pattanihos.com
Re: ช่วยดู error ตอนลง mysql ให้หน่อยคับ
« ตอบกลับ #5 เมื่อ: สิงหาคม 07, 2008, 10:35:13 AM »
0
1. ตรวจสอบว่าติดตั้งไว้หรือยัง หรือเวอร์ชั่นไหน
#rpm -q

2. remove program
#rpm -ivh -ev MySQL-server-x.x.xx-x.glibcxx.i386.rpm
 ;D
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

ออฟไลน์ ohhlanla

  • Newbie
  • *
  • กระทู้: 20
  • ("^ ^)
  • Respect: 0
    • ดูรายละเอียด
Re: ช่วยดู error ตอนลง mysql ให้หน่อยคับ
« ตอบกลับ #6 เมื่อ: สิงหาคม 07, 2008, 10:39:18 AM »
0
ตรวจสอบแล้วปรากฏว่ามี  mysql-5.0.45-7.el5 อยู่  แต่พอสั่งลบแล้วเกิด error ขึ้นอ่ะคับ
พอดีตั้งคำถามไว้อีกกระทู้นึงแล้วคับ  ช่วยหน่อยนะคับ :'(
"ถ้าเราหยุดแค่คำว่าดี เราจะไม่รู้จักคำว่าดีที่สุด"

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

  • Hero Member
  • *****
  • กระทู้: 3,137
  • Respect: 0
    • ดูรายละเอียด
Re: ช่วยดู error ตอนลง mysql ให้หน่อยคับ
« ตอบกลับ #7 เมื่อ: สิงหาคม 07, 2008, 11:28:00 AM »
0
ลดปัญหาต่างๆที่จะเกิดขึ้น  ลง  Linux  ใหม่ครับ  ตามนี้


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


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


 ;D ;D ;D ;D ;D ;D

Nakhonphanom Hospital

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