zoukankan      html  css  js  c++  java
  • mysql5.7用户创建及密码修改

    1.创建用户并授权

      创建用户user,密码为:mypassword,其可以本地登录,并可以访问任何数据库

      grant all privileges on *.* to 'user'@'localhost' identified by 'mypassword'; 本地授权

      创建用户user,密码为:mypasword,其可以远程登录,并可以访问任何数据库

      grant all privileges on *.* to 'user'@'%' identified by 'mypassword'; 远程授权

      flush privileges; #刷新系统权限表

          注意:

      如果出现

      ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

      则允许 alter user user() identified by '密码';

  • 相关阅读:
    Christmas Jump(k_push)
    cloudyarn(k_push)
    Eye sketch
    Candy Treasure Box
    Active Ball
    Lotus words
    Super Fish
    [POJ2436] Disease Management
    [bzoj3376] Cube Stacking 方块游戏
    [POJ3009] Curling 2.0
  • 原文地址:https://www.cnblogs.com/indifferent/p/14300868.html
Copyright © 2011-2022 走看看