• 下载mysql源安装包 wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm

  • 安装mysql源 yum localinstall mysql57-community-release-el7-8.noarch.rpm

  • 安装MySQL
    yum install mysql-community-server

  • 启动MySQL服务
    systemctl start mysqld

  • 获取默认密码
    grep 'temporary password' /var/log/mysqld.log

  • 修改密码强度

set global validate_password_mixed_case_count=0;
set global validate_password_number_count=3;
set global validate_password_special_char_count=0;
set global validate_password_length=6;
  • 修改密码
    set password for 'root'@'localhost'=password('newPassword');

修改编码为utf-8

  • 在/etc/my.cnf中 在mysqld标签下添加
    character_set_server = utf8
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐