nuka.tasks.mysql

mysql related tasks

nuka.tasks.mysql.create_db

nuka.tasks.mysql.create_db(name=None, user=None, password=None, **kwargs)[source]

create a database and grant user

nuka.tasks.mysql.execute

nuka.tasks.mysql.execute(sql=None, **kwargs)[source]

execute a sql statement

nuka.tasks.mysql.my_cnf

nuka.tasks.mysql.my_cnf(password=None, switch_user='root', **kwargs)[source]

create ~/.my.cnf

nuka.tasks.mysql.set_root_password

nuka.tasks.mysql.set_root_password(password=None, **kwargs)[source]

set mysql root password and store it in ~/.my.cnf