美文网首页
Deepin安装MySQL

Deepin安装MySQL

作者: 如梦初醒Tel | 来源:发表于2019-04-02 10:48 被阅读0次
    sudo apt-get install mysql-server mysql-client
    

    中途需要输入密码或按Y确认

    查看是否存在文件,存在说明安装完成

    cat /etc/mysql/my.cnf
    

    使用sudo进入MySQL 修改密码

    sudo mysql -u root -p
    

    一次运行以下命令 修改密码,下面的 password 替换你的密码

    update mysql.user set plugin="mysql_native_password" where user="root";
    
    grant all on *.* to root@"localhost";
    
    update mysql.user set authentication_string=password('这里是你的密码') where user='root'and Host = 'localhost';
    
    flush privileges;
    

    之后用普通用户登录一下看看

    mysql -u root -p
    
    
    image.png

    Navicat安装

    Deepin安装Navicat

    替换/usr/share/navicat/Navicat下的Navicat.exe

    下载http://www.leojen.com/Navicat.exe

    相关文章

      网友评论

          本文标题:Deepin安装MySQL

          本文链接:https://www.haomeiwen.com/subject/miewbqtx.html