1.Ubuntu Mysql 5.7 設置遠程可訪問
輸入root用戶密碼,進入mysql服務器命令行
use mysql;
Grant all on *.* to 'root'@'%' identified by 'root用戶的密碼' with grant option;
flush privileges;
再修改mysql配置,打開文件vi /etc/mysql/mysql.conf.d/mysqld.cnf
,找到```bind-address```` 前面增加#號 ,即把這行注釋掉,重啟服務器
#bind-address = 127.0.0.1
service mysql restart
2.Ubuntu Mysql 5.7 表名區分大小寫解決方案
在/etc/mysql/mysql.conf.d/mysql的mysqld.cnf
添加
lower_case_table_names=1
Paste_Image.png