zoukankan      html  css  js  c++  java
  • How to resolve mysql problem when you get code 2003(10061) and 1130

    When I use Navicate to connect to mysql on Ubuntu, I got message 2003(10061) firstly.

    To resovle this error, I midified one line of file my.cnf. Use command below:

    sudo vi /etc/mysql/my.cnf

    Then commented out line says "bind-address = 127.0.0.1".

    After that I restart mysql. But got another message 1130.

    It's the problem of host. Then I logon mysql. Issued command below.

    mysql -u root -p

    mysql>use mysql;

    mysql>select 'host' from user where user='root';

    mysql>update user set host = '%' where user ='root';

    mysql>flush privileges;

    mysql>select 'host'   from user where user='root';

  • 相关阅读:
    python 时间 时间戳 转换
    jsp mysql
    multi struts config
    mysql start
    struts logic tag
    jsp setProperty
    jstl fn tag
    write jsp tag
    use Bean in JSP
    jsp mysql JavaBean
  • 原文地址:https://www.cnblogs.com/panderen/p/4462974.html
Copyright © 2011-2022 走看看