zoukankan      html  css  js  c++  java
  • 使用navicat连接阿里云上mysql

    使用宝塔面板安装mysql

    Linux基本内容,里面有涉及到安装Mysql

    修改密码

    image-20201015084445557

    而且也要在数据库的菜单中设置root密码

    image-20201015084558140

    修改后密码后进行登录,就不会出现下面的报错了

    [root@centos7 ~]# mysql -u root -p
    Enter password: 
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    

    使用Navicat进行连接

    直接进行连接,出现如下报错

    130-host ... is not allowed to connect to this MySql server
    

    image-20201015085306651

    参考链接

    ​  1、连接服务器: mysql -u root -p

      2、看当前所有数据库:show databases;

      3、进入mysql数据库:use mysql;

      4、查看mysql数据库中所有的表:show tables;

      5、查看user表中的数据:select host, user from user;

      6、修改user表中的Host:update user set host='%' where user='root';

      7、最后刷新一下:flush privileges;

    image-20201015090026851

  • 相关阅读:
    text/css什麼意思
    w3cschool的在線編輯器的特點
    html
    notepad编写html
    html学习心得
    html 链接
    資料鏈接
    微信小程序的界面下拉刷新
    C# PictureBox控件畫圖
    CPK公式
  • 原文地址:https://www.cnblogs.com/10134dz/p/13818641.html
Copyright © 2011-2022 走看看