zoukankan      html  css  js  c++  java
  • mysql权限修改记录

    select user, password, host from mysql.user;

    GRANT ALL PRIVILEGES ON *.* TO 'root'@'147.114.169.197' IDENTIFIED BY '1' WITH GRANT OPTION;

    update mysql.user set password='' where host='147.114.169.197';

    flush privileges;

    查看数据表的大小:

    select concat(round(sum(DATA_LENGTH/1024/1024),2),'MB') as data from information_schema.TABLES;

    查看数据库物理文件位置:

    show global variables like '%datadir%';

    select user, password, host from mysql.user;
    GRANT ALL PRIVILEGES ON *.* TO 'root'@'47.104.1.31' IDENTIFIED BY '1' WITH GRANT OPTION;
    update mysql.user set password='' where host='47.104.1.31';
    flush privileges;

  • 相关阅读:
    spring-boot快速搭建解析
    springmvc处理ajax跨域
    Spring-AOP解析
    springmvc注解
    springmvc源码分析
    Spring源码分析
    JAVA性能优化
    数据取舍
    命令行控制
    Junit常用操作
  • 原文地址:https://www.cnblogs.com/xingchong/p/10306283.html
Copyright © 2011-2022 走看看