BMS-HOSxP Community
HOSxP => MySQL => ข้อความที่เริ่มโดย: ohhlanla ที่ สิงหาคม 06, 2008, 16:33:38 PM
-
พอใช้คำสั่งนี้
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
จะแก้ยังไงดีคับเนี่ย
-
มีการลง mysql-server ไปแล้วครับ
มันไม่ให้ลง ซ้ำเอาตัวเก่า หรือ ที่ ลิงผิด ออก ก่อน
ผมก็เคย
ลงตอนแรกลืมปิด firewall แต่มันลงไว้แต่รันไมไ่ด้
rpm -e mysql*
-
rpm -e mysql* อันนี้เป็นคำสั่ง remove ใช่ป่าวคับ แล้วตรง mysql เราจะรู้ได้ไงอ่ะคับว่ามันเป็นอะไร หรือมีวิธีการ remove ทาง graphic mode มัี๊ยคับ
-
ไปที่ 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 เวอร์กว่าเยอะครับ
-
เข้าไปลองใช้คำสั่ง rpm -e mysql-server แล้ว มันขึ้นว่า
error : package mysql-server is not installed
เข้าไปใน add/remove software ก็ไม่มี mysql ให้remove อ่ะคับ เหมือนกับว่ามันยังไม่ได้ install ไปเลย
-
1. ตรวจสอบว่าติดตั้งไว้หรือยัง หรือเวอร์ชั่นไหน
#rpm -q
2. remove program
#rpm -ivh -ev MySQL-server-x.x.xx-x.glibcxx.i386.rpm
;D
-
ตรวจสอบแล้วปรากฏว่ามี mysql-5.0.45-7.el5 อยู่ แต่พอสั่งลบแล้วเกิด error ขึ้นอ่ะคับ
พอดีตั้งคำถามไว้อีกกระทู้นึงแล้วคับ ช่วยหน่อยนะคับ :'(
-
ลดปัญหาต่างๆที่จะเกิดขึ้น ลง 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