Replace your_pass with your MariaDB root password. The /storage/mysql directory that you have created will be mounted to the container as MariaDB database directory. This command will download the necessary image from Docker repository (it will take some time) and run MariaDB server in a Docker container. Start a Docker container with MariaDB server: docker run -d -p 3306:3306 -v /storage/mysql:/var/lib/mysql -restart unless-stopped -e MYSQL_ROOT_PASSWORD=your_pass -name kodi-mariadb yobasystems/alpine-mariadb This step is optional and you can let Docker manage container's data, but it's better to have your database files available outside the container, e.g. Create a directory for your MariaDB database on storage volume: mkdir /storage/mysql Connect to your LibreELEC machine via ssh using PyTTY or similar program.ģ. In Kodi on LibreELEC go to Add-ons > Install from repository > LibreELEC Add-ons > Services > Docker and install Docker addon.Ģ. MariaDB uses the same console and SQL commands as MySQL so the procedure is the same for both database servers. Instead of proper MySQL you can use MariaDB that is a compatible fork of MySQL from the original MySQL authors. LibreELEC provides a binary Docker addon for all platforms, including Raspberry Pi, so this method can be applied on x86 as well (I'm not sure if there are MySQL Docker images for other hardware platforms). In fact, there is an unofficial LAMP addon (Linux, Apache, MySQL, PHP) that includes MySQL server, but, in my opinion, this addon is redundant if you need just a shared Kodi medialibrary.Īnother option of installing MySQL server on LibreELEC is using a Docker container. However, some Linux programs can be installed as Kodi addons (a special feature of Kodi for LibreELEC that is not available on other platforms). LibreELEC does not include any packet manager that allows to install third-party software, so installing MySQL is not a straightforward task. LibreELEC is basically Kodi running on top of a stripped-down variant of Linux OS. The official Kodi Wiki provides instructions on how to set up MySQL server on various platforms, however those instructions do not include LibreELEC - a popular mediacenter software based on Kodi that runs on various platforms, including different versions of Raspberry Pi single-board computers. This way a media library, including "watched" and "in progress" marks, can be synchronized between several Kodi instances. Kodi mediacenter can maintain a common medialibrary on MySQL/MariaDB database server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |