美文网首页
ubuntu mysql 配置过程

ubuntu mysql 配置过程

作者: qlh831 | 来源:发表于2018-07-14 00:13 被阅读0次

    1. apt install mysql-server-5.7

    2. 如果需要其它机器访问

    1) 修改绑定ip

    vim /etc/mysql/mysql.conf.d/mysqld.cnf

    修改 bind-address = 127.0.0.1

    2) 修改可连接ip

    use mysql;

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

    select host, user from user;

    systemctl restart mysql.service;

    相关文章

      网友评论

          本文标题:ubuntu mysql 配置过程

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