MySQL5.7 Installation with Yum repository
MySQL5.7 installation is same as MySQL8 version click here, however we may face the dependency issues on latest linux(rhel/centos/oracle) versions.
for that install below dependencies at first then follow the MySQL Installation.
1st dependency installation:
wget https://rpmfind.net/linux/centos/8-stream/BaseOS/x86_64/os/Packages/ncurses-compat-libs-6.1-9.20180224.el8.x86_64.rpm
rpm -ivh ncurses-compat-libs-6.1-9.20180224.el8.x86_64.rpm
2nd dependency installation:
yum install libaio
3rd dependency installation:
wget https://rpmfind.net/linux/openmandriva/cooker/repository/x86_64/main/release/lib64sasl2-2.1.28-2-omv2390.x86_64.rpm
rpm -ivh lib64sasl2-2.1.28-2-omv2390.x86_64.rpm
4th dependency installation:
yum install perl
5th dependency installation:
yum install perl-JSON
MySQL Installation:
Download MySQL Yum repository
wget
2. Install the file
rpm –Uvh
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;
Comments
Post a Comment