anyone know how i can upgrade my server's mysql from 4.0.18 to 4.0.20?
anyone know how i can upgrade my server's mysql from 4.0.18 to 4.0.20?
This is what I did on a RH 7.3 and 9.0 w/cpanels and haven't run into any problems yetBut use at your own risk.... BESURE TO BACKUP ALL YOUR DATABASE FIRST!!
You should now have the MySQL 4.0.20 running. All privileges should remain the same as they where with 4.0.18. Again, besure you have a valid backup copy of all your databases.Code:#First Do a complete back up of all databases mysqldump --all-databases --opt -u root -p > /path/to/backup_file/ALL-db_backups.sql #Stop MySQL: service mysql stop (or /etc/init.d/mysql stop) # make sure it all is stopped. kill -9 mysqld kill -9 mysql # change to your install directory,. where we do it. cd /usr/src/rpms # then do the "wget" to get the new RPM files #(Std Server) wget http://mirror.services.wisc.edu/mysq....20-0.i386.rpm #(Client programs) wget http://mirror.services.wisc.edu/mysq....20-0.i386.rpm #(Libraries and header files) wget http://mirror.services.wisc.edu/mysq....20-0.i386.rpm #(Dynamic client libraries) wget http://mirror.services.wisc.edu/mysq....20-0.i386.rpm wget http://mirror.services.wisc.edu/mysq....20-0.i386.rpm #(Embedded Server) wget http://mirror.services.wisc.edu/mysq....20-0.i386.rpm #(BenchMark) wget http://mirror.services.wisc.edu/mysq....20-0.i386.rpm # then to do upgrades run the follow RPM commands. rpm -Uvh MySQL-Max-server-4.0.20-0.i386.rpm rpm -Uvh MySQL-client-4.0.20-0.i386.rpm rpm -Uvh MySQL-devel-4.0.20-0.i386.rpm rpm -Uvh MySQL-embedded-4.0.20-0.i386.rpm rpm -Uvh MySQL-shared-compat-4.0.20-0.i386.rpm rpm -Uvh MySQL-shared-4.0.20-0.i386.rpm rpm -Uvh MySQL-bench-4.0.20-0.i386.rpm # Start up MySQL again. service mysql start #or /etc/init.d/mysql start # then do mysql -V # to check version
Good luck:
Mickalo
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
Custom Perl and Database Programming
[root@shells mysql-src]# rpm -Uvh MySQL-server-4.0.20-0.i386.rpm
warning: MySQL-server-4.0.20-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
libmysqlclient.so.10 is needed by (installed) mod_auth_mysql-1.11-12
libmysqlclient.so.10 is needed by (installed) perl-DBD-MySQL-2.1021-3
libmysqlclient.so.10 is needed by (installed) php-mysql-4.2.2-17.2
[root@shells mysql-src]#
what i need to do ?
is this ok ?
rpm -e perl-DBD-Mysql mysql-3.23 mysql-devel mysql-server qt-Mysql Mysql-python
php-mysql perl-DBI.rpm![]()
Last edited by Born2Kill; 05-19-2004 at 05:03 PM.
do you have the libmysqlclient.so.10 installed, normally in the /usr/lib folder.
what type of box are you installing this on ??
Mickalo
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
Custom Perl and Database Programming
rh 9
locate libmysqlclient.so.10
/usr/lib/mysql/libmysqlclient.so.10.0.0
/usr/lib/mysql/libmysqlclient.so.10
strange. that should be in the /usr/lib folder on the RH 9 we've installed the RPM's on...
how was the MySQL version 4.0.18 installed, by RPM's or from source ??
is the MySQL 4.0.18 running now ??
Mickalo
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
Custom Perl and Database Programming
mysql -V
mysql Ver 12.22 Distrib 4.0.18, for pc-linux (i686)
from rpm
will that procedure work on fedora 1.0?
also /usr/src/rpms doesnt exist on my server. what should i do?
that I don't know. just did it on RH 7.3 and 9.0Originally posted by Sinewy
will that procedure work on fedora 1.0?
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
Custom Perl and Database Programming
this is just a private folder we use off of the /usr/scr folder to install RPM files... you can use any folder you like,... this just keeps it tidyOriginally posted by Sinewy
also /usr/src/rpms doesnt exist on my server. what should i do?
Mickalo
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
Custom Perl and Database Programming
this is from our RH 9 cpanel box:Originally posted by Born2Kill
mysql -V
mysql Ver 12.22 Distrib 4.0.18, for pc-linux (i686)
from rpm
mysql Ver 12.22 Distrib 4.0.20, for pc-linux (i686) where we update MySQL yesterday.
You may to do some symbolic linking to see if that helps. Otherwise, if this on a Cpanel box, wait till Cpanel updates it via the upcp nigthly update.
Are you sure this is on a RedHat 9.0 server w/Cpanel ?
Mickalo
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
Custom Perl and Database Programming
cpanel are slow updating :P
i got the same thing as born2kill when i did mysql -V.
./upcp didnt update mysql, said 4.0.18 was currentOriginally posted by mickalo
this is from our RH 9 cpanel box:
mysql Ver 12.22 Distrib 4.0.20, for pc-linux (i686) where we update MySQL yesterday.
You may to do some symbolic linking to see if that helps. Otherwise, if this on a Cpanel box, wait till Cpanel updates it via the upcp nigthly update.
Are you sure this is on a RedHat 9.0 server w/Cpanel ?
Mickalo
also the link
http://mirror.services.wisc.edu/mysq....20-0.i386.rpm
has no file its for MySQL-shared-compat-4.0.20-0.i386.rpm
Last edited by bikersraw; 05-21-2004 at 11:20 AM.
root@server1 [/usr/src/rpms]# rpm -Uvh MySQL-bench-4.0.20-0.i386.rpm
warning: MySQL-bench-4.0.20-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
perl-DBI is needed by MySQL-bench-4.0.20-0
what do i need to do there?