summaryrefslogblamecommitdiffstats
path: root/satellit_installer/includes/50-add_mysql_dbs_users.inc
blob: 58b742885ecd3fa9f6c7ca73c867c4a79fceeefa (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                                      
add_mysql_dbs_users() {
	# Now comes mysql stuff; adding databases:
	mysql_add_db openslx
	mysql_add_db bwLehrpool

	# $1=user, $2=database, $3=privileges, $4=password
	mysql_add_user bwLehrpool bwLehrpool "DELETE, INSERT, SELECT, UPDATE" "$MYSQL_BWLEHRPOOL_PASS"
	mysql_add_user openslx openslx ALL "$MYSQL_OPENSLX_PASS"

	# $1=sql-dumpfile, $2=database
	mysql_import_dump "$BASEDIR/static_files/db_bwLehrpool_dump.sql" bwLehrpool
	mysql_import_dump "$BASEDIR/static_files/db_openslx_dump.sql" openslx
}