Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 8 days 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-15T06:39:53.000Z (over 5 years ago)
- Last Synced: 2024-08-01T12:28:59.671Z (3 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;)
![Image ](/images/plex_object_relational_model_skeleton.jpg)
# Update 07.15.2019
Postgres had no problem reading the unedited plexschema.sql
![Image ](/images/plex_postgres.jpg)