1、建立数据库python
mysql> create database jira; Query OK, 0 rows affected (0.09 sec)
2、建立用户mysql
mysql> create user 'jira'@'%' identified by 'jira123'; Query OK, 0 rows affected (0.09 sec)
3、受权用户sql
mysql> grant all privileges on jira.* to 'jira'@'%' with grant option; Query OK, 0 rows affected (0.10 sec) mysql> flush privileges; Query OK, 0 rows affected (0.01 sec)