In the next step, the installer will ask whether it should use a new authorization method or roll back to an old mechanism. Then, it may inform you that MySQL can use a new authorization method: Then, enter the password one more time for confirmation. You can leave it empty, but it may make a few troubles in the future. In the first step, the installer can prompt a password for your root user. If you have decided to install MySQL from the developers' repository, it can ask you a few questions. When the repository is installed, update the lists of packages: sudo apt updateĪnd then, install MySQL: sudo apt install mysql-server mysql-client Initial Setup MySQL in Ubuntu Otherwise, you may get the impression that the program is stuck in a loop. Pay attention, that you should select the Ok item when you want to finish the configuration. Just select Ok using the arrow keys and press Enter: There is only one version available, so you can leave it as is. In the second step, you can configure component versions. In the first step select Ok and press Enter. Then, install the downloaded package: sudo dpkg -i ~/Downloads/mysql-apt-configĭuring installation, you should answer a few installer questions. But it is not necessary, just click on the Not thanks, just start my download link: Download a deb file with its configuration from the official site: First, you have to add the repository to your system. Installing MySQL in Ubuntu 22.04 from the developers' repository is more difficult. Update lists of the packages before installing everything from official repositories using this command: sudo apt updateĪfter this, run the following command to install the MySQL server and client: sudo apt install mysql-server mysql-client Developers Repositories At the moment of writing, there are the same versions of packages, but they can change in the future. MySQL 8 can be installed from the official repository or the developers' repository. The 5.7 version is deprecated and there are no packages for it in new Ubuntu versions. You can install only MySQL 8 in Ubuntu 22.04.
0 Comments
Leave a Reply. |