mirror of
https://github.com/coturn/coturn.git
synced 2025-10-26 12:31:00 +01:00
INSTALL updates
This commit is contained in:
parent
95bb848056
commit
0a0e9c56ba
21
INSTALL
21
INSTALL
@ -937,13 +937,13 @@ Fill in users, for example:
|
||||
|
||||
XVII. MySQL (MariaDB) setup
|
||||
|
||||
The MySQL setup is similar to PostgreSQL (same idea), and is well documented
|
||||
The MySQL setup is similar to PostgreSQL (the same idea), and is well documented
|
||||
on their site http://www.mysql.org. The TURN Server database schema is the
|
||||
same as for PostgreSQL and you can find it in turndb/schema.sql file, or
|
||||
in the system's PREFIX/share/turnserver/schema.sql file after the turnserver
|
||||
installation.
|
||||
|
||||
The general setup idea is the same as for PostgreSQL:
|
||||
The general setup is similar to PostgreSQL setup procedure:
|
||||
|
||||
1) Check that the mysql server access is OK. Immediately after the MySQL server
|
||||
installation, it must be accessible, at the very minimum, at the localhost with
|
||||
@ -952,25 +952,32 @@ the root account.
|
||||
2) Login into mysql console from root account:
|
||||
|
||||
$ sudo bash
|
||||
# mysql -p mysql
|
||||
# mysql mysql
|
||||
|
||||
(or mysql -p mysql if mysql account password set)
|
||||
|
||||
3) Add 'turn' user with 'turn' password (for example):
|
||||
|
||||
> create user 'turn'@'localhost' identified by 'turn';
|
||||
|
||||
4) Create database 'turn' (for example) and grant privileges to user 'turn':
|
||||
4) Create database 'coturn' (for example) and grant privileges to user 'turn':
|
||||
|
||||
> create database turn;
|
||||
> grant all on turn.* to 'turn'@'localhost';
|
||||
> create database coturn;
|
||||
> grant all on coturn.* to 'turn'@'localhost';
|
||||
> flush privileges;
|
||||
Ctrl-D
|
||||
|
||||
5) Create database schema:
|
||||
|
||||
$ mysql -p -u turn turn < turndb/schema.sql
|
||||
$ mysql -p -u turn coturn < turndb/schema.sql
|
||||
Enter password: turn
|
||||
$
|
||||
|
||||
Fill in test database data, if this is a test database
|
||||
(not a production database):
|
||||
|
||||
$ mysql -p -u turn coturn < turndb/testsqldbsetup.sql
|
||||
|
||||
6) Fill in users, for example:
|
||||
|
||||
Shared secret for the TURN REST API (realm north.gov):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user