sudo yum update & sudo yum install mariadb-server While MariaDB can be used as a drop-in replacement in some cases, it may be preferable to install MySQL through the MySQL YUM repository. Installing the mysql package actually installs the mariadb package. MySQL is not available through CentOS 7’s native repositories (see CentOS 7 Packages list). CentOS Stream 8 (and 9), CentOS/RHEL 8 (and 9) sudo dnf upgrade & sudo dnf install mysql-server For greater control over the release and version that’s installed, and to get the latest versions faster, you may want to consider using MySQL’s own YUM or APT repositories. One of the fastest ways to quickly install MySQL on most common Linux distributions is to use the distribution’s default/native repositories. Installing MySQL on Linux: Native Repositories Alternatively, you can navigate to the Archives tab and select any MySQL release and version you wish. You can also view the installer files for 8.0 or 5.7 directly. By default, the latest version of MySQL is displayed. Open a web browser and navigate to the MySQL Community Server Downloads page. Open the downloaded file and follow the prompts to install MySQL on your system. Select your operating system version, click the Download link corresponding with the package you’d like to install, and then click the No thanks, just start my download link. ![]() Open a web browser and navigate to the MySQL Installer Downloads page. If you’re not familiar with the sudo command, see the Linux Users and Groups guide. Commands that require elevated privileges are prefixed with sudo. The steps in this guide are written for a non-root user. If the installed version differs from the release you want to use, consider first uninstalling it and then continuing with the instructions below. If this command is not found, continue with the installation steps below. The above command should inform you which version you are using. To determine if MySQL is already installed, run the following command: mysql -version
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |