This repository contains the text of the Vulgate in a single MySQL file, for easy import. Data was taken from this repository in tab-delimited format, and reformatted to a MySQL-compatible language, using a PowerShell script.
In order to import this database into your MySQL server instance, use one of the following methods.
- Spin up a MySQL container and an Adminer container
- Log into Adminer using https://localhost:23455
- Click on the SQL Command link
- Copy / paste the file or
- Use the import option to ingest the
vulgate.sql
file
docker run --detach --env MYSQL_ROOT_PASSWORD=seattle mysql:8.0.26
docker run --detach --publish 23455:8080 adminer:latest
- Run a MySQL container
- Obtain an interactive shell in the container
- Run the MySQL CLI
- Copy / paste
vulgate.sql
into the terminal
docker run --name mysqlserver --detach --env MYSQL_ROOT_PASSWORD=trevor mysql:8.0.26
docker attach --interactive --tty mysqlserver bash
mysql --password=trevor
- Run a MySQL container
- Copy
vulgate.sql
into the container's filesystem - Run the MySQL CLI using
docker exec
git clone https://github.com/pcgeek86/vulgate-mysql
docker run --name mysqlserver --detach --env MYSQL_ROOT_PASSWORD=trevor mysql:8.0.26
docker cp vulgate-mysql/vulgate.sql mysqlserver:/
docker exec --interactive --tty mysqlserver mysql --password=trevor --execute='source /vulgate.sql'
SELECT * FROM vulgate.vulgate_text WHERE BookName = 'Genesis';
SELECT * FROM vulgate.vulgate_text WHERE VerseText REGEXP 'Spiritu Sancto';
SELECT DISTINCT BookName, BookNumber FROM vulgate.vulgate_text;
SELECT * FROM vulgate.vulgate_text WHERE BookNumber >= 42 AND VerseText REGEXP 'patientia';
SELECT BookName, COUNT(DISTINCT Chapter) AS ChapterCount
FROM vulgate.vulgate_text
GROUP BY BookName
ORDER BY ChapterCount
DESC;