zoukankan      html  css  js  c++  java
  • 使用Navicat连接腾讯云Mysql数据库

    使用Navicat连接腾讯云Mysql数据库

    1、安装

      # 安装mysql服务
      sudo apt-get install mysql-server
      # 安装客户端
      sudo apt install mysql-client
      # 安装依赖
      sudo apt install libmysqlclient-dev
      # 检查状态
      sudo netstat -tap | grep mysql
    

    2、修改密码

    update mysql.user set authentication_string=PASSWORD('123456'), plugin='mysql_native_password' where user='root';
    
    flush privileges;       -- 刷新权限
    

    3、编辑配置文件

    # 修改配置文件,注释掉bind-address = 127.0.0.1
    > sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf
    
    # Instead of skip-networking the default is now to listen only on
    # localhost which is more compatible and is not less secure.
    # bind-address          = 127.0.0.1     -- 注释该行
    # * Fine Tuning
    
    # 保存退出
    

    4、配置远程登录

    mysql> grant all on *.* to root@'%' identified by '123456' with grant option;
    Query OK, 0 rows affected, 1 warning (0.00 sec)
    
    mysql> flush privileges;
    Query OK, 0 rows affected (0.00 sec)
    
    mysql> select user,host from user;
    
    +------------------+-----------+
    | user             | host      |
    +------------------+-----------+
    | admin            | %         |
    | debian-sys-maint | %         |
    | root             | %         |
    | debian-sys-maint | localhost |
    | mysql.session    | localhost |
    | mysql.sys        | localhost |
    +------------------+-----------+
    6 rows in set (0.00 sec)
    
    mysql> exit
    Bye
    
    > sudo /etc/init.d/mysql restart
    

    Navicate在Mac的替代工具:sequelpro

  • 相关阅读:
    Asp.net实现URL重写
    IHttpModule不起作用的两个原因
    从客户端中检测到有潜在危险的 request.form值[解决方法]
    PHP $_SERVER详解
    string.Format 格式化日期格式
    图解正向代理、反向代理、透明代理
    Javacard 解释器怎样在API类库中找到源文件调用的类、方法或者静态域?
    API
    指令集
    机器码与字节码
  • 原文地址:https://www.cnblogs.com/DeryKong/p/14905675.html
Copyright © 2011-2022 走看看