-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.mysql
24 lines (17 loc) · 908 Bytes
/
README.mysql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
To use MirrorManager with a local mysql database, connected over a Unix socket, use the following in /etc/mirrormanager/prod.cfg:
sqlobject.dburi="notrans_mysql://mirrormanager:mirrormanager@localhost:3128/mirrormanager?unix_socket=/var/lib/mysql/mysql.sock&charset=utf8&use_unicode=1"
Create the database in mysql, and grant rights to a mirrormanager user with password 'mirrormanager':
$ mysql
> create database mirrormanager;
> grant all on mirrormanager.* to mirrormanager identified by 'mirrormanager';
> quit;
Create the database schema:
$ cd /usr/share/mirrormanager/server
$ tg-admin -c /etc/mirrormanager/prod.cfg sql create
Initial population of database data (user and sysadmin groups, admin user):
$ ./initialize-database -c /etc/mirrormanager/prod.cfg
Start apache:
$ sudo service httpd start
Now you should be able to log in at http://localhost/mirrormanager
user: admin
password: admin