We will lock that down later to secure our MySQL if we want to use it for other things then Kodi as well.
The first time Kodi connects it needs to be able to create it’s databases, we need to grant the account full access. CREATE USER ‘kodi’ IDENTIFIED BY ‘password’ You can use whatever username and password you like but once again make a note of it. We need to create a user for the kodi machines. Kodi will use the name that we supply later but just as a prefix, it will add an additional identifier. What ever you do don’t create any databases. Login to MySQL, you will be prompted for your password. Now we need to setup the databases for our video and music library. Sudo /etc/init.d/mysql restart Setup the databases We need to be able to access the MySQL server from other locations then localhost. It will ask you to select a root password.
Update the package lists from all the repositories. When the pi has booted up again we can login with our new password we configured.
Change User Password – Change the default raspberry password for the pi user.Expand Filesystem – Expand the pi file system to use the entire SD-card.
Connect over SSH and login as pi with password raspberry. We want to: Basic setup of the Raspberry Piįirst we need to configure the Raspberry Pi. This article is based on SSH terminal access but you can do the same on the Pi with a connected monitor. I usually just wait for it to boot up and check my routers DHCP list for it to show up and connect to it over SSH. You can connect a monitor, mouse and keyboard for the initial setup. Then put the sd-card in the Raspberry Pi and power it on. Preparationsĭownload the latest raspian image from and put it on an sd-card with Win32DiskImager. I run OpenELEC on Raspberry Pi’s for all my media stations so this guide is focused on a Raspberry Pi implementation but the principal is the same for all devices capable of running Kodi and MySQL. It will also show what has been watched regardless of which device you actually watched it on. There are a few other great benefits of running a shared library like the ability to stop media on one device and continue watching on another. With a shared library you only need to update the library on one of the Kodi devices when new media is added. When you run more then one Kodi device with a shared media repository you should also run a shared library.