zoukankan      html  css  js  c++  java
  • mac打开mysql,navicat连接mysql

    ·首先下载mysql,链接:www.mysql.com  点击DOWNLOADS->Community->MySQL Community Server

    ·安装之后打开偏好设置

    ·点击MySQL,开启mysql

    ·在终端中输入mysql路径:

    PATH="$PATH":/usr/local/mysql/bin

    ·在终端登录到MySQL的命令如下:

    mysql -u root -p

    如果显示的内容如下,即是已经成功登录到MySQL服务:

    ·展示mysql的端口

    show global variables like 'port';

    2.navicat链接mysql

    首先下载Navicat for MySQL,史蒂芬周上有,下载后打开

    如果遇到这种情况 MySQL said: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/lib/plugin/caching_sha2_password.so, 2): image not found
    解决方案:
    1. 打开系统偏好设置,找到mysql,点击Initialize Database。
    2. 输入你的新密码,记住这个密码,用于后期链接数据库的登陆使用。
    3. 选择‘Use legacy password‘。
    4. 重启mysql服务。
    5. 使用sequel Pro链接。

    在重新链接就好了

    掘金地址:https://juejin.im/post/5b85fd106fb9a01a1b200c9f

  • 相关阅读:
    文件输入输出
    快速幂
    Vijos1512 SuperBrother打鼹鼠
    P2564 生日礼物
    P1886 滑动窗口
    P1540 机器翻译
    TYVj1939 玉蟾宫
    P1988 最大数
    二分图匹配
    [GDOI2017集训&做题记录&日记]
  • 原文地址:https://www.cnblogs.com/ljj-Andrew-519/p/9638784.html
Copyright © 2011-2022 走看看