Revision 7573
Added by Aaron Marcuse-Kubitza almost 12 years ago
Makefile | ||
---|---|---|
303 | 303 |
mysqlAsRoot := mysql --user=root --password='$(bienPassword)' |
304 | 304 |
|
305 | 305 |
mysql_users: _always |
306 |
-$($@_cmd) |
|
306 |
-echo "CREATE USER 'bien'@'localhost' IDENTIFIED BY '$(bienPassword)';"\ |
|
307 |
|$(mysqlAsRoot) |
|
308 |
-echo "CREATE USER 'bien_read'@'%' IDENTIFIED BY '$(bienReadPassword)';"\ |
|
309 |
|$(mysqlAsRoot) |
|
307 | 310 |
# ignore errors if user exists |
308 |
mysql_users_cmd = echo "CREATE USER 'bien'@'localhost' IDENTIFIED BY \ |
|
309 |
'$(bienPassword)';"|$(mysqlAsRoot) |
|
310 | 311 |
|
311 | 312 |
rm_mysql_users: _always |
312 |
-echo "DROP USER 'bien'@'localhost';"|$(mysqlAsRoot) |
|
313 |
-echo "DROP USER 'bien_read'@'localhost';"|$(mysqlAsRoot) |
|
314 |
-echo "DROP USER 'bien'@'%';"|$(mysqlAsRoot) |
|
313 | 315 |
# ignore errors if user exists |
314 | 316 |
|
315 | 317 |
##### Datasources |
Also available in: Unified diff
root Makefile: MySQL: *mysql_users: Also add bien_read user