Go Back   Web Server Hosting Forum by BODHost > Support > Linux Server Hosting
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-04-06, 10:06
BOD Member
 
Join Date: Jul 2006
Posts: 107
Default Upgrading MySQL in DirectAdmin

To upgrade the MySQL version to MySQL 4.1.16 in DirectAdmin, you need to create a script lets say, myup.sh and paste the following in it
-----
#!/bin/sh

/etc/rc.d/init.d/mysqld stop

cd $HOME

echo -e "\n\n\033[1;37web4host.net\033[0m\n\n";

wget http://dev.mysql.com/get/Downloads/M.../mysql.he.net/

wget http://dev.mysql.com/get/Downloads/M.../mysql.he.net/

wget http://dev.mysql.com/get/Downloads/M.../mysql.he.net/

rpm -Uvh ./MySQL-server-4.1.16-1.i386.rpm

rpm -Uvh ./MySQL-client-4.1.16-1.i386.rpm

rpm -Uvh ./MySQL-devel-4.1.16-1.i386.rpm

rm -fr ./MySQL-server-4.1.16-1.i386.rpm ./MySQL-client-4.1.16-1.i386.rpm ./MySQL-devel-4.1.16-1.i386.rpm

echo -e "\n\n\033[1;37web4host.net\033[0m\n\n";

rm -f /etc/init.d/mysql
rm -f /etc/rc?.d/*mysql

/etc/rc.d/init.d/mysqld restart

exit 0;
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 02:21.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.