Ubuntu 18.04リモート接続可能MySQL

446 ワード


1、  MySQL
   apt isntall mysql-server mysql-client

2、    :mysql -u root -p
     mysql    :(  root    )
   grant all privileges on *.* to 'root'@'%' identified by 'root';

3、    :vim /etc/mysql/mysql.conf.d/mysqld.cnf
        :bind-address:127.0.0.1 
4、        :root@%,           :root@localhost,
            mysql(        navicat      ,    )
5、    mysql
   sudo /etc/init.d/mysql restart