django笔记-连mysql

mysql中修改bind-address,默认是127.0.0.1,可以改成0.0.0.0
ubuntu中对应这里/etc/mysql/mysql.conf.d/mysqld.cnf

mysql里开通权限
mysql>GRANT ALL PRIVILEGES ON db1.* TO 'root'@'192.168.1.100' IDENTIFIED BY 'root' WITH GRANT OPTION;
posted @ 2020-07-24 18:26  大牛等等我  阅读(112)  评论(0编辑  收藏  举报