当前位置:Gxlcms > 数据库问题 > mysql安装的备忘

mysql安装的备忘

时间:2021-07-01 10:21:17 帮助过:4人阅读

  PS:

    在测试的时候不想要设置很复杂的密码,MySQL的默认密码强度是2(strong)。

      0 or LOW    Length

      1 or MEDIUM  Length; numeric, lowercase/uppercase, and special characters; 

      2 or STRONG  Length; numeric, lowercase/uppercase, and special characters; dictionary file      

    设置的密码强度不符合,会报错:

      ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

    使用  set global validate_password_policy=0;修改密码强度要求。

    使用 select @@validate_password_length; 查看密码长度要求
    +-----------------------------------------+
    | @@validate_password_length |
    +-----------------------------------------+
    | 8              |
    +-----------------------------------------+

3.应用更改:

  grant all privileges on *.* to root@"%" identified by "root密码";

  flush privileges;

  service iptables stop

PS:安装注意的事项:

  这次是使用的rpm包在centos6.5安装的mysql5.7版本,

  下载完整的压缩包后,解压出来的如下:  

  mysql-community-client-5.7.24-1.el6.x86_64.rpm  
  mysql-community-common-5.7.24-1.el6.x86_64.rpm
  mysql-community-devel-5.7.24-1.el6.x86_64.rpm
  mysql-community-embedded-5.7.24-1.el6.x86_64.rpm
  mysql-community-embedded-devel-5.7.24-1.el6.x86_64.rpm
  mysql-community-libs-5.7.24-1.el6.x86_64.rpm
  mysql-community-libs-compat-5.7.24-1.el6.x86_64.rpm
  mysql-community-server-5.7.24-1.el6.x86_64.rpm
  mysql-community-test-5.7.24-1.el6.x86_64.rpm

  安装顺序是要求为

  rpm -ivh mysql-community-common*
  rpm -ivh mysql-community-libs-5.7*
  rpm -ivh mysql-community-client*
  rpm -ivh mysql-community-server*

mysql安装的备忘

标签:查看   mysq   修改   使用   rpm   复杂   unity   har   cal   

人气教程排行