mysql 的rpm安装 过程提示

1,第一步rpm -qa | mysql | xargs rpm -e 和 rpm -qa | mysql | xargs rm -rf(主要是清除干净)

2,第二步find / -name mysql | xargs rm -rf 和 find / -name mysql | xargs rm -rf (主要是清除干净)

3,第三步安装mysql的server版本的rpm包 rpm -ivh ....

4,第四步必须安装mysql的client版本的rpm包(这步是为下一步安装过程中改密码连接mysql做铺垫)

5,第五步启动mysql  service mysql start

6, 第六步 执行  cat /root/.mysql_secret   得到密钥

7,第七步执行 /usr/bin/mysql_secure_installation 然后输入上面的密钥

8,一系列的yes 或no 的选择:

       Change the root password? [Y/n] y
       New password: 
       Re-enter new password: 

       Remove anonymous users? [Y/n] y
        ... Success!

       Disallow root login remotely? [Y/n] n
       ... skipping.

       Remove test database and access to it? [Y/n] y

      Reload privilege tables now? [Y/n] y

猜你喜欢

转载自blog.csdn.net/qq_21918145/article/details/81986131
今日推荐