DirectAdmin Knowledge Base and Support

DirectAdmin is a web panel for a simple administration of both virtual and dedicated servers. DirectAdmin is faster, safe and more powerful than any other CP. And we know how to customize and support it.

MySQL wont update when I run ./build mysql on Debian

| 11:14:32 25.10.2016

If any try to update MySQL 5.6.x on a Debian server with Directadmin fails, and you see that download of an archived file can not succeed due to the fact of the missing file:

Failed to download http://files.directadmin.com/services/all/mysql/debian/64-bit/mysql-5.6.34-linux-x86_64.tar.gz. Exiting...

Here is a way on how to solve it!

Building MySQL for Debian

Run the following commands as root in a console in order to upgrade MySQL 5.6 (as well as any other version) on a Debian server:

cd /usr/local/directadmin/custombuild
./build update
./build set mysql_force_compile yes
./build mysql

After compilation ends and installation completes (it might take a while, so be patient). Run this command to check version:

mysql -V

You can see an output similar to this one:

mysql  Ver 14.14 Distrib 5.6.34, for Linux (x86_64) using  EditLine wrapper

or run this:

./build versions | grep -i mysql

You can see an output similar to the following:

Latest version of MySQL: 5.6.34
Installed version of MySQL: 5.6.34

You've got it now! MySQL version upgraded. And here comes an alternative solution (if you want it of course)!

Migrating to MariaDB 10.x (optional)

Run these commands to replace MySQL with MariaDB on a server with Directadmin and CustomBuild 2.x:

cd /usr/local/directadmin/custombuild
./build update
./build set mysql_force_compile no
./build set mysql_inst mariadb
./build set mariadb 10.0
./build mysql

When checking a version you should see something similar to this:

mysql  Ver 15.1 Distrib 10.0.27-MariaDB, for Linux (x86_64) using readline 5.1

That's it. Usually no issue should appear when you use CustomBuild to install software and upgrade its versions. If for any reason you hesitate to do it yourself drop us a message. We will be happy to offer to you our services and upgrade everything you might need ourselves. Feel free to contact us now to get a professional administrator to work on your server.

About Us
We are a team of professionals, and specialize in installation, configuring and managing of remote virtual and dedicated servers powered by Linux/Unix-like OS with DirectAdmin. We support various sets of software, including web-servers Apache, Nginx; internet domain name servers Bind, PowerDNS; mail-servers with POP3, IMAP and SMTP, FTP-servers, etc. After years of working through the most complex server challenges our team has gathered valuable experience and universal solutions suitable for everyday tasks. We are here to lend you a helping hand and take care of your servers in order to let you have enough time to do more of what you love.




All of the information and data on this site is for informational purposes only and is provided for the convenience of the user.
Powered by: Amiro.CMS - Free edition