理想国真恵玩Python从入门到精通043ubuntu18安装MySQL数据库

Python私教 2018-12-10 10:18:37

sudo apt install mysql-server mysql-client

sudo mysql_secure_installation

sudo mysql -uroot -plxgzhw

use mysql;

GRANT ALL PRIVILEGES ON *.* TO lxgzhw@'%' IDENTIFIED BY "lxgzhw";

exit

mysql -ulxgzhw -plxgzhw

create database flask_001 charset=utf8;

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

将bind-address注释掉,就可以远程登录了

0 阅读:33

Python私教

简介:全栈工程师,目标人工智能.抖音同理想国真恵玩.