MySQL Installation using Yum repository
1. Download MySQL Yum repository
wget https://dev.mysql.com/get/mysql80-community-release-el9-1.noarch.rpm
2. Install the file
rpm –Uvh mysql80-community-release-el9-1.noarch.rpm
3. Verify MySQL repository
yum repolist | grep
mysql
4. Install MySQL
yum install
mysql-community-server
5. Start MySQL service
systemctl start mysqld
6. Get the temporary password from the
mysql log
grep ‘temporary password’
/var/log/mysqld/log
7. Login to MySQL Server with temporary
password and change the root password
mysql –u root –p
a. Alter user ‘root’@’localhost’
identified by “Password”;
a. Flush privileges;
Uninstallation:
yum remove mysql-community-server
yum clean all
rm -rf /etc/my.cnf
rm -rf /var/lib/mysql
rm -rf /var/log/mysqld.log
Comments
Post a Comment