From d1e548bd4b39826713a80da2f15ab56be8541853 Mon Sep 17 00:00:00 2001 From: WJH <40563566+likesclever@users.noreply.github.com> Date: Tue, 23 Jan 2024 11:53:36 +0800 Subject: [PATCH] improve default name of database --- manual/deploy/using_mysql.md | 12 ++++++------ manual/maintain/backup_recovery.md | 20 ++++++++++---------- manual/security/auditing.md | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/manual/deploy/using_mysql.md b/manual/deploy/using_mysql.md index 4033429c..5facc36b 100644 --- a/manual/deploy/using_mysql.md +++ b/manual/deploy/using_mysql.md @@ -228,9 +228,9 @@ When choosing "\[1] Create new ccnet/seafile/seahub databases", the script creat | mysql root password | Password of the MySQL root account | The root password is required to create new databases and a MySQL user | | mysql user for Seafile | MySQL user created by the script, used by Seafile's components to access the databases | Default is seafile; the user is created unless it exists | | mysql password for Seafile user | Password for the user above, written in Seafile's config files | Percent sign ('%') is not allowed | -| database name | Name of the database used by ccnet | Default is "ccnet-db", the database is created if it does not exist | -| seafile database name | Name of the database used by Seafile | Default is "seafile-db", the database is created if it does not exist | -| seahub database name | Name of the database used by seahub | Default is "seahub-db", the database is created if it does not exist | +| database name | Name of the database used by ccnet | Default is "ccnet_db", the database is created if it does not exist | +| seafile database name | Name of the database used by Seafile | Default is "seafile_db", the database is created if it does not exist | +| seahub database name | Name of the database used by seahub | Default is "seahub_db", the database is created if it does not exist | When choosing "\[2] Use existing ccnet/seafile/seahub databases", this are the prompts you need to answer: @@ -240,9 +240,9 @@ When choosing "\[2] Use existing ccnet/seafile/seahub databases", this are the p | mysql server port | TCP port used by MySQL server | Default port is 3306; almost every MySQL server uses this port | | mysql user for Seafile | User used by Seafile's components to access the databases | The user must exists | | mysql password for Seafile user | Password for the user above | | -| ccnet database name | Name of the database used by ccnet, default is "ccnet-db" | The database must exist | -| seafile database name | Name of the database used by Seafile, default is "seafile-db" | The database must exist | -| seahub dabase name | Name of the database used by Seahub, default is "seahub-db" | The database must exist | +| ccnet database name | Name of the database used by ccnet, default is "ccnet_db" | The database must exist | +| seafile database name | Name of the database used by Seafile, default is "seafile_db" | The database must exist | +| seahub dabase name | Name of the database used by Seahub, default is "seahub_db" | The database must exist | If the setup is successful, you see the following output: diff --git a/manual/maintain/backup_recovery.md b/manual/maintain/backup_recovery.md index 6e9d2d0b..ab95a532 100644 --- a/manual/maintain/backup_recovery.md +++ b/manual/maintain/backup_recovery.md @@ -30,9 +30,9 @@ For SQLite, the database files are also under the 'haiwen' directory. The locati For MySQL, the databases are created by the administrator, so the names can be different from one deployment to another. There are 3 databases: -* ccnet-db: contains user and group information -* seafile-db: contains library metadata -* seahub-db: contains tables used by the web front end (seahub) +* ccnet_db: contains user and group information +* seafile_db: contains library metadata +* seahub_db: contains tables used by the web front end (seahub) ## Backup steps @@ -65,14 +65,14 @@ It's recommended to backup the database to a separate file each time. Don't over **MySQL** -Assume your database names are `ccnet-db`, `seafile-db` and `seahub-db`. mysqldump automatically locks the tables so you don't need to stop Seafile server when backing up MySQL databases. Since the database tables are usually very small, it won't take long to dump. +Assume your database names are `ccnet_db`, `seafile_db` and `seahub_db`. mysqldump automatically locks the tables so you don't need to stop Seafile server when backing up MySQL databases. Since the database tables are usually very small, it won't take long to dump. ``` -mysqldump -h [mysqlhost] -u[username] -p[password] --opt ccnet-db > /backup/databases/ccnet-db.sql.`date +"%Y-%m-%d-%H-%M-%S"` +mysqldump -h [mysqlhost] -u[username] -p[password] --opt ccnet_db > /backup/databases/ccnet-db.sql.`date +"%Y-%m-%d-%H-%M-%S"` -mysqldump -h [mysqlhost] -u[username] -p[password] --opt seafile-db > /backup/databases/seafile-db.sql.`date +"%Y-%m-%d-%H-%M-%S"` +mysqldump -h [mysqlhost] -u[username] -p[password] --opt seafile_db > /backup/databases/seafile-db.sql.`date +"%Y-%m-%d-%H-%M-%S"` -mysqldump -h [mysqlhost] -u[username] -p[password] --opt seahub-db > /backup/databases/seahub-db.sql.`date +"%Y-%m-%d-%H-%M-%S"` +mysqldump -h [mysqlhost] -u[username] -p[password] --opt seahub_db > /backup/databases/seahub-db.sql.`date +"%Y-%m-%d-%H-%M-%S"` ``` @@ -128,9 +128,9 @@ Now with the latest valid database backup files at hand, you can restore them. **MySQL** ``` -mysql -u[username] -p[password] ccnet-db < ccnet-db.sql.2013-10-19-16-00-05 -mysql -u[username] -p[password] seafile-db < seafile-db.sql.2013-10-19-16-00-20 -mysql -u[username] -p[password] seahub-db < seahub-db.sql.2013-10-19-16-01-05 +mysql -u[username] -p[password] ccnet_db < ccnet-db.sql.2013-10-19-16-00-05 +mysql -u[username] -p[password] seafile_db < seafile-db.sql.2013-10-19-16-00-20 +mysql -u[username] -p[password] seahub_db < seahub-db.sql.2013-10-19-16-01-05 ``` diff --git a/manual/security/auditing.md b/manual/security/auditing.md index 1b2c5e3e..6d94d11b 100644 --- a/manual/security/auditing.md +++ b/manual/security/auditing.md @@ -19,4 +19,4 @@ enabled = true ``` -The audit log data is being saved in `seahub-db`. +The audit log data is being saved in `seahub_db`.