mysql安装和配置

2022-05-1774

mysql 安装: sudo apt-get install mysql-server;

获取远程访问权限: 

grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;

设置/etc/mysql/my.cnf文件 bind-address: 0.0.0.0