zoukankan      html  css  js  c++  java
  • centos 7 查询mysql 安装 运行位置

    whereis mysql  安装路径

    which mysql 运行文件路径 

    找到 /usr/bin/mysql 路径 mysql为执行文件,不是文件夹

     登陆mysql

    mysql -u 用户名 -p 回车

    输入密码

    查询 数据库版本

    select version();

    查询当前数据库队列

     show processlist;

    远程访问权限设置

    grant all privileges on *.* to 'zlhadmin'@'%' identified by 'cai201801db' with grant option;

    grant all privileges on *.* to 'zlhadmin'@'localhost' identified by 'cai201801db' with grant option;

    换root用户身份登陆查询

    查询某个用户的权限

     这里是root查询结果

    这里用root用户身份创建远程权限

    用户zlhadmin在host 有一个localhost 和 % 即可

    参考资料:

    https://blog.csdn.net/zzq900503/article/details/15336583

    查询所有数据库 

    明明应该这样的 mysql数据库没了。。。。

    检查防火墙是否开启

     centos7 明明应该是firewall

    firewall-cmd --state;

    还有人用iptables;

    直接修改mysql表中的数据类型

     先查看下表数据结构 desc 表名;

     修改数据表中字段类型

    alter table fa_admin_log modify column content MEDIUMTEXT;

     

  • 相关阅读:
    table
    html <input>
    html基本结构
    Spark join连接
    combineByKey
    scala mkstring
    countByValue
    spark aggregate
    scala flatmap、reduceByKey、groupByKey
    生态圈安装
  • 原文地址:https://www.cnblogs.com/xxx91hx/p/8880570.html
Copyright © 2011-2022 走看看