https://github.com/mutanthost/plex_schema
Experiment in examining my Plex sqlite schema, importing into SQLiteStudio, exporting into MySql and Object Modeling
https://github.com/mutanthost/plex_schema
object-modeling plex-media-server sqlite-mysql
Last synced: 3 months ago
JSON representation
Experiment in examining my Plex sqlite schema, importing into SQLiteStudio, exporting into MySql and Object Modeling
- Host: GitHub
- URL: https://github.com/mutanthost/plex_schema
- Owner: mutanthost
- License: apache-2.0
- Created: 2019-07-11T11:22:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-15T06:39:53.000Z (almost 6 years ago)
- Last Synced: 2024-11-03T23:35:05.340Z (8 months ago)
- Topics: object-modeling, plex-media-server, sqlite-mysql
- Language: TSQL
- Homepage:
- Size: 4.19 MB
- Stars: 36
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# plex_schema
Experiment in examining my Plex sqlite schema, exporting into MySql and Object ModelingI've been fiddling with version 8 of MySQL, and have always been a visual learner with databases.
So, I imported one of my old Plex Sqlite databases into SQLiteStudio, exported that as a .sql file then imported the accompanying
tables, indexes, etc into MySQL. (This was pretty dirty, with > 200 syntax errors out of > 2100 lines of SQL I whacked through)
However, I finally got it to import with the plex3.sql file.
I'm also including the unedited plexschema.sql file for anyone interested.
I will probably use it against a Postgres instance sometime soon, and see how messy or clean that turns out.
After the MySQL import, I used the workbench and 'reverse engineered' this into a skeleton Object Relationship Model to get a better sense
of how the innards of my favorite media player works behind the scenes.
The smaller pdf of the same name of the high-res image below is also included if you ever want to play connect the dots;)

# Update 07.15.2019
Postgres had no problem reading the unedited plexschema.sql
