zoukankan      html  css  js  c++  java
  • mysql 问题解决(一)

    MySQL 5.7+ by default haves a Password validation system. In case if you don't want to go strictly with the policy and need to assign your own then just disable the password validation and restart mysqld process.

    Edit my.cnf file :

    vi /etc/my.cnf

    in [mysqld]

    validate-password=off

    Save the file and then restart the process

    sudo service mysqld restart
    or
    systemctl restart mysqld

    and then change the Root Password using the following and follow the steps it won't throw exception for the Root Password.

    mysql_secure_installation
    or
    /usr/bin/mysql_secure_installation

    If you are doing installation for the first time and want to know the temporary password then use the following to find the first time password:

     grep 'temporary password' /var/log/mysqld.log

    Let me know your comments on the same, in the below comment box.

  • 相关阅读:
    表详细操作
    库相关操作
    数据库一
    协程
    多线程2
    .Net鼠标随动窗口
    .Net操作音频
    .Net操作注册表--un
    .Net操作.exe文件
    .Net连接数据库(AOD.Net)
  • 原文地址:https://www.cnblogs.com/wangxishan/p/6425747.html
Copyright © 2011-2022 走看看