mirror of
https://github.com/coturn/coturn.git
synced 2025-10-26 20:41:07 +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
|
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
|
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
|
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
|
in the system's PREFIX/share/turnserver/schema.sql file after the turnserver
|
||||||
installation.
|
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
|
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
|
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:
|
2) Login into mysql console from root account:
|
||||||
|
|
||||||
$ sudo bash
|
$ 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):
|
3) Add 'turn' user with 'turn' password (for example):
|
||||||
|
|
||||||
> create user 'turn'@'localhost' identified by 'turn';
|
> 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;
|
> create database coturn;
|
||||||
> grant all on turn.* to 'turn'@'localhost';
|
> grant all on coturn.* to 'turn'@'localhost';
|
||||||
> flush privileges;
|
> flush privileges;
|
||||||
Ctrl-D
|
Ctrl-D
|
||||||
|
|
||||||
5) Create database schema:
|
5) Create database schema:
|
||||||
|
|
||||||
$ mysql -p -u turn turn < turndb/schema.sql
|
$ mysql -p -u turn coturn < turndb/schema.sql
|
||||||
Enter password: turn
|
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:
|
6) Fill in users, for example:
|
||||||
|
|
||||||
Shared secret for the TURN REST API (realm north.gov):
|
Shared secret for the TURN REST API (realm north.gov):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user