Flesh out the database installation instructions

This commit is contained in:
Junior 2026-02-16 17:37:16 -05:00
parent 258c0c82df
commit 0612444f39

View File

@ -12,8 +12,13 @@ This small project provides a web based viewer for comics in the CBZ and CBR for
* Make sure the web server can read the folder than contains your comic book/novel archives * Make sure the web server can read the folder than contains your comic book/novel archives
* Create a MySQL/MariaDB database for the app with privileges granted to a user * Create a MySQL/MariaDB database for the app with privileges granted to a user
* `create database comics`
* `create user 'comics'@'localhost' identified by 'password'`
* `grant all privileges on comics.* to 'comics'@'localhost'`
* Import the `install/initial_db_mysql.sql` database structure * Import the `install/initial_db_mysql.sql` database structure
* `mysql --host=localhost --user=comics -p comics < install/initial_db_mysql.sql`
* Change the ownership of the `comics/` and `thumbs/` folders to the web server user * Change the ownership of the `comics/` and `thumbs/` folders to the web server user
* `chown www-data:www-data comics thumbs`
* Copy the `config-dist.php` file to `config.php` and edit that file appropriately * Copy the `config-dist.php` file to `config.php` and edit that file appropriately
* Set up the cron job for things in [cron/](cron/). If installing on a systemd OS see services below. * Set up the cron job for things in [cron/](cron/). If installing on a systemd OS see services below.