Ubuntu: Steps to install/update MySQL to the latest DMR

No comments
For learning, testing and keep up with things, one might want to install/update the MySQL version to the latest DMR (Development Milestone Release). At the time of this writing the latest DMR for MySQL is  MySQL Community Server 5.7.8-rc.
Having chosen Ubuntu server as my operating system and since this is a development version hence not yet part of an official Ubuntu release, you have to install it directly from Oracle. You can achieve this by using the MySQL APT Repository.
Before carrying on, keep in mind that:
  • This shouldn't be done on a production environment;
  • If you're aiming for an upgrade instead of a fresh install, always backup your databases first.
Having said that, you can run the following command to download the debian package for MySQL APT repository:

shell> wget http://dev.mysql.com/get/mysql-apt-config_0.3.7-1ubuntu14.04_all.deb
To install the package, use dpkg and when it's done update the repository package lists:
shell> sudo dpkg -i mysql-apt-config_0.3.7-1ubuntu14.04_all.deb
shell> sudo apt-get update
During the installation of the package, you will be asked to choose the versions of the MySQL server and other components.
Finally, install MySQL, which will fetch the version selected on the APT repository configuration:
shell> sudo apt-get install mysql-server
In the end, log into your newly installed server. You should be greeted with the latest DMR version:
shell> stuntman@MuSQL-Lab:~$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.8-rc MySQL Community Server (GPL)
Remember to never do this on a real environment as it's a development version. Also, if you have an official release version installed previously, I'd recommend removing it completely before installing a development release.

No comments :

Post a Comment