The default of Use Strong Password Encryption is recommended, so hit ENTER to choose it. After you enter it twice and hit ENTER, you will be prompted to configure an authentication plugin. You will be asked to set a root password during the configuration phase of the installation. It will then calculate package dependencies and ask you to approve the installation. Having added the repository and with our package cache freshly updated, we can now use apt to install the latest MySQL server package:Īpt will look at all available mysql-server packages and determine that the MySQL provided package is the newest and best candidate. If you ever need to update the configuration of these repositories, just run sudo dpkg-reconfigure mysql-apt-config, select new options, and then sudo apt update to refresh your package cache. Now that we’ve added the MySQL repositories, we’re ready to install the actual MySQL server software. Let’s also clean up after ourselves and delete the file we downloaded: Refresh your apt package cache to make the new software packages available: The package will now finish adding the repository. This is what we want, so use the down arrow to navigate to the Ok menu option and hit ENTER. The defaults will add the repository information for the latest stable version of MySQL and nothing else. The -i flag indicates that we’d like to install from the specified file.ĭuring the installation, you’ll be presented with a configuration screen where you can specify which version of MySQL you’d prefer, along with an option to install repositories for other MySQL-related tools. List the files to make sure:ĭpkg is used to install, remove, and inspect. The file should now be downloaded in our current directory. The L flag makes curl follow HTTP redirects, necessary in this case because the address we copied actually redirects us to another location before the file downloads. O instructs curl to output to a file instead of standard output. We need to pass two command line flags to curl. On your server, move to a directory you can write to:ĭownload the file using curl, remembering to paste the address you just copied in place of the highlighted portion below: Right-click the link and select Copy Link Address (this option may be worded differently, depending on your browser). We can skip that and instead look for the link that says No thanks, just start my download. This page will prompt you to log in or sign up for an Oracle web account. Find the Download button in the lower-right corner and click through to the next page. deb file with curl and then install it with the dpkg command.įirst, load the MySQL download page in your web browser. Once the repositories are set up, we’ll be able to use Ubuntu’s standard apt command to install the software. deb package that handles configuring and installing the official MySQL software repositories. Step 1 - Adding the MySQL Software Repository An Ubuntu 18.04 server with a non-root, sudo-enabled user, as described in this Ubuntu 18.04 server setup tutorial. Prerequisitesīefore starting this tutorial, you will need: To install the latest version of MySQL, we’ll add this repository, install the MySQL software itself, secure the install, and finally we’ll test that MySQL is running and responding to commands. Conveniently, the MySQL developers maintain their own software repository we can use to easily install the latest version and keep it up to date. In order to use newly released features, it’s sometimes necessary to install a more up-to-date version of MySQL than that provided by your Linux distribution. MySQL is the M in the LAMP stack, a commonly used set of open source software that also includes Linux, the Apache web server, and the PHP programming language. MySQL is a prominent open source database management system used to store and retrieve data for a wide variety of popular applications.
0 Comments
Leave a Reply. |