MySQL RPM Installation

Step 1: click the https://downloads.mysql.com/archives/community/  and download the mysql RPM Bundle
            bundle file name example: mysql-5.7.33-1.el7.x86_64.rpm-bundle.tar
            
step 2: untar the bundle, use below command
            tar -xvf mysql-5.7.33-1.el7.x86_64.rpm-bundle.tar
            
step 3:    please provide excute privileges on all untared rpm files
            chmod u+x mysql*.rpm
            
step 4: 
        install the rpm file(offline method)
            rpm -ivh mysql*.rpm
                    (OR)
        install the rpm file (online method)
            yum install mysql*.rpm
            
step 5:start the server
            service start mysqld
            
step 6:configuration file:
            /etc/my.cnf
            
step 7:get temp password - check MySQL Error log file

step 8:run mysql_secure_installation
        mysql_secure_installation
                (enter root@localhost temp password)
            enter new password for root (DB Level) user
        press enter all questions - laste line you are get "All done!"
        
step 9: connect mysql
        
            mysql -uroot -p
            mysql>show databases;
            mysql>q

Comments