Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· OpenAIAi2 WildChat-4.8M (AI2)

install mysql80 on linux using yum

  1. User

    install mysql80 on linux using yum

  2. Assistant

    To install MySQL 8.0 on Linux using yum, follow these steps:

    1. Update the system's package list:
    sudo yum update
    
    1. Download the MySQL repository configuration package using wget:
    wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
    

    Note: The above command is for CentOS 7. Adjust the link accordingly if you are using a different version.

    1. Install the downloaded package:
    sudo rpm -ivh mysql80-community-release-el7-3.noarch.rpm
    
    1. Install MySQL 8.0 using yum:
    sudo yum install mysql-server
    

    You can also specify a specific version like mysql80-community-server if you only want to install the server package.

    1. Start the MySQL service:
    sudo systemctl start mysqld
    
    1. Set MySQL service to start on system boot:
    sudo systemctl enable mysqld
    
    1. Retrieve the temporary root password generated by MySQL during installation:
    sudo grep 'temporary password' /var/log/mysqld.log
    

    Note: The temporary password will be displayed. Make sure to copy it for the next step.

    1. Set a new password for the MySQL root user:
    sudo mysql_secure_installation
    

    Follow the on-screen prompts, and provide the temporary password when prompted. Then, choose and confirm a new password for the root user.

    That's it! You have successfully installed MySQL 8.0 on Linux using yum.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.