MySQL 5.5.13
Махинации вида ожидаемого результата не дадут:
cd /usr/local/directadmin/custombuild
./build mysql
Делаем проще лучше:
touch getMySQL.sh
chmod +x getMySQL.sh
vi getMySQL.sh
Файлик:
#!/bin/sh
#SERVER=http://mysql.serenitynet.com/Downloads/MySQL-5.0
SERVER=http://mirror.services.wisc.edu/mysql/Downloads/MySQL-5.5
#MySQL-server-community-5.1.30-0.rhel4.x86_64.rpm
VERSION=5.5.13-1
EXT=rhel5.x86_64wget $SERVER/MySQL-server-$VERSION.$EXT.rpm
wget $SERVER/MySQL-client-$VERSION.$EXT.rpm
wget $SERVER/MySQL-shared-$VERSION.$EXT.rpm
wget $SERVER/MySQL-devel-$VERSION.$EXT.rpm
Теперь
cd mysql
../getMySQL.sh
rpm -Uvh MySQL-*5.5.13-1*.rpm
service mysqld start
mysql_upgrade -u da_admin -p
service mysqld restart
service nginx stop
killall -9 nginx
service httpd stop
cd ../
./build php
service nginx start
service httpd start
mysql –version