(create-database
&
{:keys [user-name user-passwd db-name create-options]
:or {user-name "root" user-passwd "test1234" create-options ""}})
(create-user &
{:keys [user-name user-passwd db-user db-passwd]
:or {user-name "root" user-passwd "test1234"}})
(grant &
{:keys [user-name user-passwd db-user-name db-user-passwd
grant-privileges grant-level]
:or {user-name "root" user-passwd "test1234" grant-privileges "ALL"}})
examples for level are database
.*.
users are defined at localhost.
examples for level are `database`.*. users are defined at localhost.
(init-database superuser-name
superuser-passwd
db-name
db-user-name
db-user-passwd
create-options)
(mysql-script &
{:keys [user-name user-passwd sql-script]
:or {user-name "root" user-passwd "test1234"}})
Execute a mysql script. If no user is given it defaults to root.
Execute a mysql script. If no user is given it defaults to root.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close