Split the create_database task into create_database and create_user tasks
This commit is contained in:
@@ -7,6 +7,12 @@ def create_database():
|
||||
Create the MySQL Mayan EDMS database
|
||||
"""
|
||||
run('echo "CREATE DATABASE %(database_name)s;" | mysql -u root --password=%(database_manager_admin_password)s' % env)
|
||||
|
||||
|
||||
def create_user():
|
||||
"""
|
||||
Create the MySQL Mayan EDMS user
|
||||
"""
|
||||
run('echo "CREATE USER \'%(database_username)s\'@\'%(database_host)s\' IDENTIFIED BY \'%(database_password)s\';" | mysql -u root --password=%(database_manager_admin_password)s' % env)
|
||||
run('echo "GRANT ALL PRIVILEGES ON %(database_name)s.* TO \'%(database_username)s\'@\'%(database_host)s\' WITH GRANT OPTION;" | mysql -u root --password=%(database_manager_admin_password)s' % env)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user