zoukankan      html  css  js  c++  java
  • mysql错误:The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement解决方法

    本文为大家讲解的是mysql错误:The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement解决方法,感兴趣的同学参考下。

    错误描述:

    mysql> grant all on cactidb.* to dbuser@'localhost' identified by '123';

    ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

    解决方法:

    先刷新一下权限表。

    mysql> flush privileges;

    Query OK, 0 rows affected (0.01 sec)

    # 把在所有数据库的所有表的所有权限赋值给位于所有IP地址的root用户。

    mysql> grant all on cactidb.* to dbuser@'localhost' identified by '123';

    Query OK, 0 rows affected (0.00 sec)

    2、远程连接设置

    把在所有数据库的所有表的所有权限赋值给位于所有IP地址的root用户。

    mysql> grant all privileges on *.* to root@'%'identified by 'password';

    如果是新用户而不是root,则要先新建用户

    mysql>create user 'username'@'%' identified by 'password';  

    此时就可以进行远程连接了。

  • 相关阅读:
    机器学习入坑指南(二):数据预处理
    03双向链表
    小甲鱼 例题
    快慢指针问题
    02循环单链表
    01静态链表
    阈值化
    图像金字塔与图片尺寸缩放
    水漫填充
    形态学滤波(4):使用分水岭算法对图像进行分割
  • 原文地址:https://www.cnblogs.com/kingxiaozi/p/10619680.html
Copyright © 2011-2022 走看看