<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sharrken</id>
	<title>Official Kodi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sharrken"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/view/Special:Contributions/Sharrken"/>
	<updated>2026-06-15T04:07:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=Add-on_manager&amp;diff=83913</id>
		<title>Add-on manager</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Add-on_manager&amp;diff=83913"/>
		<updated>2015-01-10T22:22:29Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Settings]]{{l2|[[Add-ons]]}} }}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;The &#039;&#039;Add-on manager&#039;s&#039;&#039; purpose is to manage the various add-ons to the {{kodi}} application. It can be browsed like any other section and the various installed/uninstalled, enabled/disabled add-ons. In the Add-on manager you can also change the settings for auto update, notifications and foreign filter by bringing up the slide in submenu (press left {{keypress|left}} to show/hide). The Add-on manager is not where you go to run add-ons, but only to install and configure them.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== How to access the Add-on manager ===&lt;br /&gt;
From the &#039;&#039;home screen&#039;&#039;, go to &lt;br /&gt;
;&amp;lt;big&amp;gt;{{highlight|System -&amp;gt; Add-ons|bordered=yes}}&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:add-ons-accessing-1.png|&#039;&#039;&#039;Step 1:&#039;&#039;&#039; Select &#039;&#039;System&#039;&#039; on the &#039;&#039;home screen&#039;&#039;.&lt;br /&gt;
File:add-ons-accessing-2.png|&#039;&#039;&#039;Step 2:&#039;&#039;&#039; Select &#039;&#039;Add-ons&#039;&#039;.&lt;br /&gt;
File:add-ons-accessing-3.png|&#039;&#039;&#039;Step 3:&#039;&#039;&#039; The &#039;&#039;Add-on manager&#039;&#039;, displaying four/five options  (explained below).&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Enabled add-ons&#039;&#039;&#039; are add-ons that are currently enabled. {{kodi}} comes with certain add-ons already installed and enabled (such as movie scrapers, screen-savers and visualisation)&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Disabled add-ons&#039;&#039;&#039; is not visible if you don&#039;t have any disabled add-ons. It shows add-ons you&#039;ve manually disabled or that&#039;s been disabled by {{kodi}} because they&#039;re &amp;quot;marked as broken&amp;quot; in the repository.&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Get add-ons&#039;&#039;&#039; allows you to install new add-ons from the installed repositories.  &#039;&#039;Kodi Add-on repository&#039;&#039; and &#039;&#039;Kodi PVR Add-on repository&#039;&#039; are the two official pre-installed add-on repositories.  (see [[Unofficial repositories#How to install additional add-on repositories|How to install additional add-on repositories]] for more)&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Install from ZIP file&#039;&#039;&#039; allows the installation of an add-on or repository from a ZIP file, either from the hard drive or LAN.&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Search&#039;&#039;&#039; allows you to search add-ons in the installed repositories and your installed add-ons.&lt;br /&gt;
&lt;br /&gt;
=== How to install add-ons from a repository ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;HOW-TO install&amp;quot; /&amp;gt;&lt;br /&gt;
For this example a skin is being installed, the same method is used for other add-ons.&lt;br /&gt;
;&amp;lt;big&amp;gt;{{highlight| Select &#039;&#039;Get Add-ons&#039;&#039; -&amp;gt; Select the repository -&amp;gt; Select the add-on category -&amp;gt; Select the add-on -&amp;gt; Select &#039;&#039;Install&#039;&#039;|bordered=yes}}&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Installaddon1.png|&#039;&#039;&#039;Step 1:&#039;&#039;&#039; Select &#039;&#039;Get Add-ons&#039;&#039;&lt;br /&gt;
File:Installaddon2.png|&#039;&#039;&#039;Step 2:&#039;&#039;&#039; Select the repository  you want to install from.&lt;br /&gt;
File:Installaddon3.png|&#039;&#039;&#039;Step 3:&#039;&#039;&#039; Select the add-on category, in this case &#039;&#039;Skin&#039;&#039;.&lt;br /&gt;
File:Installaddon4.png|&#039;&#039;&#039;Step 4:&#039;&#039;&#039; Select the add-on you want to install, in this case the skin &#039;&#039;Ace&#039;&#039;.&lt;br /&gt;
File:Installaddon5.png|&#039;&#039;&#039;Step 5:&#039;&#039;&#039; A summary dialog will be brought up allowing you to see various properties of the add-on. Select &#039;&#039;Install&#039;&#039; to begin automatic downloading and installation.&lt;br /&gt;
File:Installaddon6.png|&#039;&#039;&#039;Step 6:&#039;&#039;&#039; In the case of skin installation you&#039;ll be asked if you want to change to the installed skin immediately. &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
When the add-on has finished downloading {{kodi}} will enable it and depending on the add-on ask if you want to start using it. Add-ons will then appear in their appropriate section (e.g. skins in the appearance section of settings, movie scrapers in the options of scrapers when adding a new movie source)&lt;br /&gt;
&amp;lt;section end=&amp;quot;HOW-TO install&amp;quot; /&amp;gt;&lt;br /&gt;
==== Empty repository list ====&lt;br /&gt;
&lt;br /&gt;
[[File:Repo_refresh.png|500px|thumb|right|Force repository refresh]]If the repository list is empty or you are suspect you don&#039;t receive any add-on updates you can try fixing it with &#039;&#039;Force refresh&#039;&#039;. Bring up the &#039;&#039;[[context menu]]&#039;&#039; when the &#039;&#039;repository is highlighted&#039;&#039; and select &#039;&#039;Force refresh&#039;&#039;. This will re-download the list from the server and hopefully the add-ons will show. This should work for the default XBMC.org repositories or any 3rd party repository installed. Updating will take some time so be patient.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To try to fix an empty repository:&lt;br /&gt;
;&amp;lt;big&amp;gt;{{highlight| Highlight the repository -&amp;gt; Bring up the &#039;&#039;context menu&#039;&#039; -&amp;gt; Select &#039;&#039;Force refresh&#039;&#039;|bordered=yes}}&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the repository still remains empty after some time you can try to hard reset the database by removing addons**.db from the [[userdata]] folder.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
=== How to install from a ZIP file ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;HOW-TO zip&amp;quot; /&amp;gt;&lt;br /&gt;
In this example the &#039;&#039;hybrid&#039;&#039; repository is being installed, but the method is the same for add-ons. First download the ZIP file, then:&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;big&amp;gt;{{highlight| Select &#039;&#039;Install from zip file&#039;&#039; -&amp;gt; Navigate to the ZIP file and select it|bordered=yes}}&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:installing-repo-1.png|&#039;&#039;&#039;Step 1:&#039;&#039;&#039; Select &#039;&#039;Install from zip file&#039;&#039;.&lt;br /&gt;
File:installing-repo-2.png|&#039;&#039;&#039;Step 2:&#039;&#039;&#039; Navigate to the ZIP file and select it.&lt;br /&gt;
File:installing-repo-3.png|&#039;&#039;&#039;Step 3:&#039;&#039;&#039; In the bottom right, {{subst:Name}} notifies when the add-on is installed and enabled.&lt;br /&gt;
File:installing-repo-4.png|&#039;&#039;&#039;Step 4:&#039;&#039;&#039; Select &#039;&#039;Get Add-ons&#039;&#039;. The new repository is listed. In the case of add-ons they are added under &#039;&#039;All Add-ons&#039;&#039; in the appropriate category.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;section end=&amp;quot;HOW-TO zip&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Repositories ==&lt;br /&gt;
&lt;br /&gt;
Repositories are storage locations from where add-ons can be retrieved from. XBMC comes with two official add-on repositories installed by default, &#039;&#039;Kodi Add-on repository&#039;&#039; and &#039;&#039;Kodi PVR Add-on repository&#039;&#039;. However others can be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
To install a new repository you must first find the ZIP file to install the repository, a list of [[3rd party add-on repositories]] is semi-maintained on the wiki - other repositories may exist. Then follow the instructions at [[Add-ons#How to install from a ZIP file|How to install from a ZIP file]].&lt;br /&gt;
&lt;br /&gt;
== Updating ==&lt;br /&gt;
[[File:Add-on_manager-update.png|500px|right|thumb|Slide in submenu, with Add-on manager settings.]]&lt;br /&gt;
[[File:Installing-repo-3.png|500px|right|thumb|A notification that an add-on has been installed and enabled.]]&lt;br /&gt;
To manually update add-ons or change update settings, from the &#039;&#039;home screen&#039;&#039; go to the Add-on manager&lt;br /&gt;
;&amp;lt;big&amp;gt;{{highlight|bordered=yes|System -&amp;gt; Add-ons}}&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default &#039;&#039;Auto update&#039;&#039; is enabled and all installed add-ons will be automatically updated when new versions are available from the repositories.&lt;br /&gt;
&lt;br /&gt;
If you want to enable/disable auto-updates, while in the Add-on manager bring up the slide in submenu (press right {{keypress|right}} to show/hide) and enable/disable &#039;&#039;Auto update&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;Auto update&#039;&#039; is turned &#039;&#039;off&#039;&#039; you should see a folder in the Add-on manager that says &#039;&#039;Available Updates&#039;&#039;, where you can go in and one-by-one and update add-ons.&lt;br /&gt;
&lt;br /&gt;
Installing an &#039;&#039;add-on&#039;&#039; from a ZIP file can lead to it not having a repository associated with it. Automatic or manual (using &#039;&#039;Available Updates&#039;&#039; folder) update will then not be available. You can of course manually update the add-on by downloading a ZIP file with the new version. If you later install the associated repository the add-on will be able to get automatically or manually updated.&lt;br /&gt;
&lt;br /&gt;
Update/install &#039;&#039;notifications&#039;&#039;, which can be toggled on/off in the submenu, will show up in the right bottom corner and will notify you that:&lt;br /&gt;
* a new version of an add-on is available, if you have &#039;&#039;Auto update&#039;&#039; &#039;&#039;&#039;disabled&#039;&#039;&#039;.&lt;br /&gt;
* an add-on has been updated, if you have &#039;&#039;Auto update&#039;&#039; &#039;&#039;&#039;enabled&#039;&#039;&#039;.&lt;br /&gt;
* an add-on has been enabled (only when installing a new add-on or when doing rollbacks).&lt;br /&gt;
* an installation has failed.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
== Rollback ==&lt;br /&gt;
Rollback is a function to reinstall a previous version of an add-on. The reason to do this can be that you don&#039;t like the new version (e.g changed features) or that the new version introduced a bug. &lt;br /&gt;
&lt;br /&gt;
Rollback is &#039;&#039;only&#039;&#039; available if you&#039;ve had a previous version installed before getting the add-on manually or automatically updated. I.e. if you install a new add-on only the latest version will be installed, thus you can&#039;t rollback to any other version.&lt;br /&gt;
&lt;br /&gt;
If you rollback from version B to A and version C is added to its repository the add-on will automatically get updated (if you have &#039;&#039;Auto update&#039;&#039; enabled) to version C and you&#039;ll have to rollback again to version A. To stop this from happening disable &#039;&#039;Auto update&#039;&#039; or uninstall the associated repository. The latter is not always practical or even possible, e.g. the official repositories.&lt;br /&gt;
&lt;br /&gt;
To do a rollback, from the &#039;&#039;home screen&#039;&#039; go to the Add-on manager&lt;br /&gt;
;&amp;lt;big&amp;gt;{{highlight|bordered=yes|System -&amp;gt; Add-ons}}&amp;lt;/big&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
then&lt;br /&gt;
;&amp;lt;big&amp;gt;{{highlight|bordered=yes|Select &#039;&#039;Enabled Add-ons&#039;&#039; -&amp;gt; Select the category -&amp;gt; Select the add-on -&amp;gt; Select &#039;&#039;Rollback&#039;&#039; -&amp;gt; Select a previous version to reinstall }}&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Rollback1a.png|&#039;&#039;&#039;Step 1:&#039;&#039;&#039; Select &#039;&#039;Enabled Add-ons&#039;&#039;.&lt;br /&gt;
File:Rollback1b.png|&#039;&#039;&#039;Step 2:&#039;&#039;&#039; Select the category. &lt;br /&gt;
File:rollback1.png|&#039;&#039;&#039;Step 3:&#039;&#039;&#039; Select the add-on.&lt;br /&gt;
File:rollback3.png|&#039;&#039;&#039;Step 4:&#039;&#039;&#039; Select &#039;&#039;Rollback&#039;&#039;.&lt;br /&gt;
File:rollback4.png|&#039;&#039;&#039;Step 5:&#039;&#039;&#039; Select a previous version to reinstall.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Force refresh ==&lt;br /&gt;
[[File:Repo_refresh.png|500px|thumb|right|Force repository refresh]]If the repository list is empty or you are suspect you don&#039;t receive any add-on updates you can try fixing it with &#039;&#039;Force refresh&#039;&#039;. Bring up the &#039;&#039;[[context menu]]&#039;&#039; when the &#039;&#039;repository is highlighted&#039;&#039; and select &#039;&#039;Force refresh&#039;&#039;. This will re-download the list from the server and hopefully the add-ons will show. This should work for the default XBMC.org repositories or any 3rd party repository installed. Updating will take some time so be patient.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To try to fix an empty or stale repository:&lt;br /&gt;
;&amp;lt;big&amp;gt;{{highlight| Highlight the repository -&amp;gt; Bring up the &#039;&#039;context menu&#039;&#039; -&amp;gt; Select &#039;&#039;Force refresh&#039;&#039;|bordered=yes}}&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the repository still remains empty after some time you can try to hard reset the database by removing addons**.db from the [[userdata]] folder.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[:Category:All add-ons]]&lt;br /&gt;
* [[3rd party add-on repositories]]&lt;br /&gt;
&#039;&#039;&#039;Development:&#039;&#039;&#039;&lt;br /&gt;
* [[Add-on development]]&lt;br /&gt;
* [[Python development]]&lt;br /&gt;
* [[Skinning]]&lt;br /&gt;
* [[Add-on repositories]]&lt;br /&gt;
* [[Official add-on repository]]&lt;br /&gt;
{{frodo updated}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Add-ons]]&lt;br /&gt;
[[Category:Settings]]&lt;br /&gt;
[[Category:Manual]]&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Settings&amp;diff=83912</id>
		<title>Settings</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Settings&amp;diff=83912"/>
		<updated>2015-01-10T22:18:43Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: {{kodi}} name changes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[General topics]]}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This section covers {{kodi}}&#039;s various settings and where to find them.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
== Settings levels ==&lt;br /&gt;
[[File:Confluence - settings level.jpg|400px|right]]&lt;br /&gt;
In XBMC v13 &amp;quot;Gotham&amp;quot; or later there are tiered settings levels. Each mode unlocks more settings, and is available by selecting the &amp;quot;Settings level&amp;quot; button, which will also display the currently used level.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
== System settings ==&lt;br /&gt;
[[File:System settings.png|400px|right]]&lt;br /&gt;
&lt;br /&gt;
Most of {{kodi}}&#039;s global settings can be configured via the GUI (Graphical User Interface) under Settings (labeled &amp;quot;System&amp;quot; under the default skin, Confluence).&lt;br /&gt;
&lt;br /&gt;
Choosing Settings from the Home Screen opens the Settings Window. In this window, you are able to configure {{kodi}}&#039;s options:&lt;br /&gt;
{{-}}&lt;br /&gt;
{{Index two column&lt;br /&gt;
 | image 1 = Crystal Clear app kcoloredit.png&lt;br /&gt;
 | link 1 = Settings/Appearance&lt;br /&gt;
 | link name 1 = Appearance&lt;br /&gt;
 | image 2 = Video.svg&lt;br /&gt;
 | link 2 = Settings/Videos&lt;br /&gt;
 | link name 2 = Videos&lt;br /&gt;
 | image 3 = Television.svg&lt;br /&gt;
 | link 3 = Settings/Live TV&lt;br /&gt;
 | link name 3 = Live TV&lt;br /&gt;
 | image 4 = IYY logo.png&lt;br /&gt;
 | link 4 = Settings/Music&lt;br /&gt;
 | link name 4 = Music&lt;br /&gt;
 | image 5 = Gnome-emblem-photos.svg&lt;br /&gt;
 | link 5 = Settings/Pictures&lt;br /&gt;
 | link name 5 = Pictures&lt;br /&gt;
 | image 6 = Crystal Project kweather.png&lt;br /&gt;
 | link 6 = Weather&lt;br /&gt;
 | image 7 = Nuvola apps kthememgr.png&lt;br /&gt;
 | link 7 = Add-on manager&lt;br /&gt;
 | image 8 = Crystal Project Network Connection Manager.png&lt;br /&gt;
 | link 8 = Settings/Services&lt;br /&gt;
 | link name 8 = Services&lt;br /&gt;
 | image 9 = Gnome-system-run.svg&lt;br /&gt;
 | link 9 = Settings/System&lt;br /&gt;
 | link name 9 = System&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Additional settings ==&lt;br /&gt;
{{Index two column&lt;br /&gt;
 | image 1 = Oxygen480-actions-media-playback-start.svg&lt;br /&gt;
 | link 1 = Video playback&lt;br /&gt;
 | link name 1 = Video OSD settings&lt;br /&gt;
 | description 1 = Some video playback settings can (currently) only be accessed while playing a video back and accessing the on-screen-display. For more info see [[Video playback]]. These include subtitle and audio track selection, zoom (aspect ratio) options, and more.&lt;br /&gt;
 | link 2 = Media sources&lt;br /&gt;
 | description 2 = [[Media sources]] and [[scrapers]] control what files are listed in {{kodi}} and what is scanned into the library. These settings can also control what information is pulled from the internet.&lt;br /&gt;
 | image 3 = Nuvola apps kthememgr.png&lt;br /&gt;
 | link 3 = Add-ons#Add-on settings&lt;br /&gt;
 | link name 3 = Add-on settings&lt;br /&gt;
 | description 3 = {{#lst:Add-ons|settings}}&lt;br /&gt;
 | image 4 = Gdm.png&lt;br /&gt;
 | link 4 = Profiles&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Advanced settings ==&lt;br /&gt;
{{main|advancedsettings.xml}}&lt;br /&gt;
{{#lst:advancedsettings.xml|intro}}&lt;br /&gt;
&lt;br /&gt;
== Resetting {{kodi}} settings to default ==&lt;br /&gt;
{{see also|userdata}}&lt;br /&gt;
Delete your [[userdata]] folder to remove all {{kodi}} settings and library databases. Deleting some individual files/folders in the [[userdata]] folder will also selectively reset those settings.&lt;br /&gt;
&lt;br /&gt;
== Other settings related pages ==&lt;br /&gt;
* [[Audio]]&lt;br /&gt;
&lt;br /&gt;
{{gotham updated}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Settings|*]]&lt;br /&gt;
[[Category:Manual]]&lt;br /&gt;
[[Category:General topics]]&lt;br /&gt;
[[Category:Index]]&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL/Advanced_notes&amp;diff=83911</id>
		<title>MySQL/Advanced notes</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL/Advanced_notes&amp;diff=83911"/>
		<updated>2015-01-10T22:11:53Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: /* Windows */ Kodi name changes, some consistency edits&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:MySQL/Contents}}&lt;br /&gt;
{{mininav| [[MySQL]] }}&lt;br /&gt;
__TOC__&lt;br /&gt;
{{-}}&lt;br /&gt;
==advancedsettings.xml==&lt;br /&gt;
For a full listing of the advancedsettings.xml parameters, see [[advancedsettings.xml#&amp;lt;musicdatabase&amp;gt;/&amp;lt;videodatabase&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MySQL speed-up tweaks==&lt;br /&gt;
From: [http://xbmcstuff.bossanova808.net/2011/03/summary-of-xbmc-mysql-database.html?m=1 MySQL speed-up tweaks for XBMC]. For XBMC v11 (Eden) only the first two tweaks are necessary. See Comments for more information.&lt;br /&gt;
=== In advancedsettings.xml: ===&lt;br /&gt;
Use the IP address and NOT the hostname of your MySQL server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== In my.ini: ===&lt;br /&gt;
(add to mysqld section)&lt;br /&gt;
skip-name-resolve&lt;br /&gt;
&lt;br /&gt;
==Automated Backup ==&lt;br /&gt;
=== Windows ===&lt;br /&gt;
This will allow you to make a regular backup of your MySQL database using the schedule of your choosing and saving the backups for however many days you choose. Recommend performing daily backups and saving for a minimum of 7 days. This will give you enough time to discover a problem with the DB and restore to a previous version that did not have problems. &lt;br /&gt;
&lt;br /&gt;
To begin, go ahead and download the [http://www.7-zip.org/download.html command line version of 7zip]. We will use this to compress our MySQL dumps. Create a new folder in your C directory named KODISQLBACKUP. So you should have a C:\KODISQLBACKUP\ location now. In this location, create another new folder and name it zip. So you should now have C:\KODISQLBACKUP\zip. Extract the contents of the 7zip download to this location. Once complete you should have:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;C:\KODISQLBACKUP\zip\7za.exe&lt;br /&gt;
&lt;br /&gt;
C:\KODISQLBACKUP\zip\7-zip.chm&lt;br /&gt;
&lt;br /&gt;
C:\KODISQLBACKUP\zip\license.txt&lt;br /&gt;
&lt;br /&gt;
C:\KODISQLBACKUP\zip\readme.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We&#039;re going to create a down and dirty batch file to perform the actual backup, then we&#039;ll execute the batch script with the task scheduler built into Windows. For the purpose of these instructions, it is assumed that you are running MySQL 5.5 installed to the default location. If not, be sure to adjust your path(s) accordingly. It&#039;s also a good idea to save your backups to a network location to protect against local drive failure, so the paths here will reflect this. So here are the batch file contents:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;winbatch&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
:: All lines that start with 2 colons are comments, they do not affect the script itself. These comments are explanations of each command, as well as instructions for the things that you will need to edit. Pay close attention to all comments.&lt;br /&gt;
&lt;br /&gt;
:: These lines do not NEED to be edited&lt;br /&gt;
set year=%DATE:~10,4%&lt;br /&gt;
set day=%DATE:~7,2%&lt;br /&gt;
set mnt=%DATE:~4,2%&lt;br /&gt;
set hr=%TIME:~0,2%&lt;br /&gt;
set min=%TIME:~3,2%&lt;br /&gt;
&lt;br /&gt;
IF %day% LSS 10 SET day=0%day:~1,1%&lt;br /&gt;
IF %mnt% LSS 10 SET mnt=0%mnt:~1,1%&lt;br /&gt;
IF %hr% LSS 10 SET hr=0%hr:~1,1%&lt;br /&gt;
IF %min% LSS 10 SET min=0%min:~1,1%&lt;br /&gt;
&lt;br /&gt;
set backuptime=%mnt%-%day%-%year%-%hr%-%min%&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:: User name for DB - NOTE that root credentials are needed for this script.&lt;br /&gt;
set dbuser=root&lt;br /&gt;
&lt;br /&gt;
:: User password - NOTE that the root credentials are needed for this script.&lt;br /&gt;
set dbpass=password&lt;br /&gt;
&lt;br /&gt;
:: Path to location where you would like to save the errors log file. For simplicity, I keep mine in the same location as the backups.&lt;br /&gt;
set errorLogPath=&amp;quot;\\REMOTE\KODI_Database\backups\dumperrors.txt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
:: We need to switch to the data directory to enumerate the folders&lt;br /&gt;
pushd &amp;quot;C:\ProgramData\MySQL\MySQL Server 5.5\data&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:: We will dump each database to it&#039;s own .sql so you can easily restore ONLY what is needed in the future. We&#039;re also going to skip the performance_schema db as it is not necessary.&lt;br /&gt;
&lt;br /&gt;
FOR /D %%F IN (*) DO (&lt;br /&gt;
&lt;br /&gt;
IF NOT [%%F]==[performance_schema] (&lt;br /&gt;
SET %%F=!%%F:@002d=-!&lt;br /&gt;
&amp;quot;C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqldump.exe&amp;quot; --user=%dbuser% --password=%dbpass% --databases --routines --log-error=%errorLogPath%  %%F &amp;gt; &amp;quot;\\REMOTE\KODI_Database\backups\%%F.%backuptime%.sql&amp;quot;&lt;br /&gt;
) ELSE (&lt;br /&gt;
echo Skipping DB backup for performance_schema&lt;br /&gt;
)&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
::Now to zip all of the .sql files in this folder and move the resulting .zip files to our network location.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\KODISQLBACKUP\zip\7za.exe&amp;quot; a -tzip &amp;quot;\\REMOTE\KODI_Database\backups\FullBackup.%backuptime%.zip&amp;quot; &amp;quot;\\REMOTE\KODI_Database\backups\*.sql&amp;quot;&lt;br /&gt;
&lt;br /&gt;
::Now we&#039;ll delete the unzipped .sql files&lt;br /&gt;
&lt;br /&gt;
del &amp;quot;\\REMOTE\KODI_Database\backups\*.sql&amp;quot;&lt;br /&gt;
&lt;br /&gt;
::Now we&#039;ll delete all zip files older than 30 days. You can adjust the number of days to suit your needs, simply change the -30 to whatever number of days you prefer. Be sure you enter the path to your backup location.&lt;br /&gt;
Forfiles -p \\REMOTE\KODI_Database\backups\ -s -m *.* -d -30 -c &amp;quot;cmd /c del /q @path&amp;quot;&lt;br /&gt;
&lt;br /&gt;
popd&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save this as Kodibackup.bat at C:\KODISQLBACKUP&lt;br /&gt;
Make &#039;&#039;sure&#039;&#039; you include the .bat at the end.&lt;br /&gt;
&lt;br /&gt;
After you have edited the above batch file to reflect your paths and saved it as a batch file, all that is left is scheduling it to run. Daily backups are best, but you can use whatever frequency you are comfortable with. To do this, open up the Windows Task Scheduler.&lt;br /&gt;
&lt;br /&gt;
In the Task Scheduler click on &amp;quot;Create Task...&amp;quot;, NOT &amp;quot;Create Basic Task...&amp;quot;. In the new task window, in the Name box put Kodi MySQL backup (or whatever name you want). &lt;br /&gt;
&lt;br /&gt;
Then click on the Triggers tab, followed by the New button. Select Daily (or whatever you want) and adjust the time you would like it to run. Click OK.&lt;br /&gt;
&lt;br /&gt;
Click on the Actions tab and click New. In the Program/Script box enter C:\KODISQLBACKUP\Kodibackup.bat (or whatever you named your batch file) and in the start in box enter C:\KODISQLBACKUP&lt;br /&gt;
&lt;br /&gt;
Click ok, then click ok in the task window. In the main task scheduler window, right click on the task you just created and select run. If everything works as it should, you should now have a zipped backup of your database(s) in your backup location. It will now do this for you automatically.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
=== Linux ===&lt;br /&gt;
[http://sourceforge.net/projects/automysqlbackup/ AutoMySQLBackup] is a script that is designed to keep daily, weekly and monthly backups of your databases.  It is very customizable and reliable.  There is useful information on installing and configuring the script here: http://www.linux.com/learn/tutorials/659107-how-to-do-painless-mysql-server-backups-with-automysqlbackup.&lt;br /&gt;
{{note|Detailed instructions on configuring AutoMySQLBackup should probably be added to this section as the linked page above could be deleted at any time and there is little beginner friendly information available on the web.}}&lt;br /&gt;
&lt;br /&gt;
==Name tag==&lt;br /&gt;
{{#lst:MySQL/Setting up XBMC|name tag}}&lt;br /&gt;
&lt;br /&gt;
==Multiple profiles with one MySQL database==&lt;br /&gt;
See: http://forum.xbmc.org/showthread.php?tid=81095&amp;amp;pid=840499#pid840499&lt;br /&gt;
&lt;br /&gt;
{{Gotham updated}}&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL/Advanced_notes&amp;diff=83910</id>
		<title>MySQL/Advanced notes</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL/Advanced_notes&amp;diff=83910"/>
		<updated>2015-01-10T22:05:58Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: /* MySQL speed-up tweaks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:MySQL/Contents}}&lt;br /&gt;
{{mininav| [[MySQL]] }}&lt;br /&gt;
__TOC__&lt;br /&gt;
{{-}}&lt;br /&gt;
==advancedsettings.xml==&lt;br /&gt;
For a full listing of the advancedsettings.xml parameters, see [[advancedsettings.xml#&amp;lt;musicdatabase&amp;gt;/&amp;lt;videodatabase&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MySQL speed-up tweaks==&lt;br /&gt;
From: [http://xbmcstuff.bossanova808.net/2011/03/summary-of-xbmc-mysql-database.html?m=1 MySQL speed-up tweaks for XBMC]. For XBMC v11 (Eden) only the first two tweaks are necessary. See Comments for more information.&lt;br /&gt;
=== In advancedsettings.xml: ===&lt;br /&gt;
Use the IP address and NOT the hostname of your MySQL server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== In my.ini: ===&lt;br /&gt;
(add to mysqld section)&lt;br /&gt;
skip-name-resolve&lt;br /&gt;
&lt;br /&gt;
==Automated Backup ==&lt;br /&gt;
=== Windows ===&lt;br /&gt;
This will allow you to make a regular backup of your MySQL database using the schedule of your choosing and saving the backups for however many days you choose. Recommend performing daily backups and saving for a minimum of 7 days. This will give you enough time to discover a problem with the DB and restore to a previous version that did not have problems. &lt;br /&gt;
&lt;br /&gt;
To begin, go ahead and download the [http://www.7-zip.org/download.html command line version of 7zip]. We will use this to compress our MySQL dumps. Create a new folder in your C directory named XBMCSQLBACKUP. So you should have a C:\XBMCSQLBACKUP\ location now. In this location, create another new folder and name it zip. So you should now have C:\XBMCSQLBACKUP\zip. Extract the contents of the 7zip download to this location. Once complete you should have:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;C:\XBMCSQLBACKUP\zip\7za.exe&lt;br /&gt;
&lt;br /&gt;
C:\XBMCSQLBACKUP\zip\7-zip.chm&lt;br /&gt;
&lt;br /&gt;
C:\XBMCSQLBACKUP\zip\license.txt&lt;br /&gt;
&lt;br /&gt;
C:\XBMCSQLBACKUP\zip\readme.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We&#039;re going to create a down and dirty batch file to perform the actual backup, then we&#039;ll execute the batch script with the task scheduler built into Windows. For the purpose of these instructions, it is assumed that you are running MySQL 5.5 installed to the default location. If not, be sure to adjust your path(s) accordingly. It&#039;s also a good idea to save your backups to a network location to protect against local drive failure, so the paths here will reflect this. So here are the batch file contents:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;winbatch&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
:: All lines that start with 2 colons are comments, they do not affect the script itself. These comments are explanations of each command, as well as instructions for the things that you will need to edit. Pay close attention to all comments.&lt;br /&gt;
&lt;br /&gt;
:: These lines do not NEED to be edited&lt;br /&gt;
set year=%DATE:~10,4%&lt;br /&gt;
set day=%DATE:~7,2%&lt;br /&gt;
set mnt=%DATE:~4,2%&lt;br /&gt;
set hr=%TIME:~0,2%&lt;br /&gt;
set min=%TIME:~3,2%&lt;br /&gt;
&lt;br /&gt;
IF %day% LSS 10 SET day=0%day:~1,1%&lt;br /&gt;
IF %mnt% LSS 10 SET mnt=0%mnt:~1,1%&lt;br /&gt;
IF %hr% LSS 10 SET hr=0%hr:~1,1%&lt;br /&gt;
IF %min% LSS 10 SET min=0%min:~1,1%&lt;br /&gt;
&lt;br /&gt;
set backuptime=%mnt%-%day%-%year%-%hr%-%min%&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:: User name for DB - NOTE that root credentials are needed for this script.&lt;br /&gt;
set dbuser=root&lt;br /&gt;
&lt;br /&gt;
:: User password - NOTE that the root credentials are needed for this script.&lt;br /&gt;
set dbpass=password&lt;br /&gt;
&lt;br /&gt;
:: Path to location where you would like to save the errors log file. For simplicity, I keep mine in the same location as the backups.&lt;br /&gt;
set errorLogPath=&amp;quot;\\REMOTE\XBMC_Database\backups\dumperrors.txt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
:: We need to switch to the data directory to enumerate the folders&lt;br /&gt;
pushd &amp;quot;C:\ProgramData\MySQL\MySQL Server 5.5\data&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:: We will dump each database to it&#039;s own .sql so you can easily restore ONLY what is needed in the future. We&#039;re also going to skip the performance_schema db as it is not necessary.&lt;br /&gt;
&lt;br /&gt;
FOR /D %%F IN (*) DO (&lt;br /&gt;
&lt;br /&gt;
IF NOT [%%F]==[performance_schema] (&lt;br /&gt;
SET %%F=!%%F:@002d=-!&lt;br /&gt;
&amp;quot;C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqldump.exe&amp;quot; --user=%dbuser% --password=%dbpass% --databases --routines --log-error=%errorLogPath%  %%F &amp;gt; &amp;quot;\\REMOTE\XBMC_Database\backups\%%F.%backuptime%.sql&amp;quot;&lt;br /&gt;
) ELSE (&lt;br /&gt;
echo Skipping DB backup for performance_schema&lt;br /&gt;
)&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
::Now to zip all of the .sql files in this folder and move the resulting .zip files to our network location.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\XBMCSQLBACKUP\zip\7za.exe&amp;quot; a -tzip &amp;quot;\\REMOTE\XBMC_Database\backups\FullBackup.%backuptime%.zip&amp;quot; &amp;quot;\\REMOTE\XBMC_Database\backups\*.sql&amp;quot;&lt;br /&gt;
&lt;br /&gt;
::Now we&#039;ll delete the unzipped .sql files&lt;br /&gt;
&lt;br /&gt;
del &amp;quot;\\REMOTE\XBMC_Database\backups\*.sql&amp;quot;&lt;br /&gt;
&lt;br /&gt;
::Now we&#039;ll delete all zip files older than 30 days. You can adjust the number of days to suit your needs, simply change the -30 to whatever number of days you prefer. Be sure you enter the path to your backup location.&lt;br /&gt;
Forfiles -p \\REMOTE\XBMC_Database\backups\ -s -m *.* -d -30 -c &amp;quot;cmd /c del /q @path&amp;quot;&lt;br /&gt;
&lt;br /&gt;
popd&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save this as XBMCbackup.bat at C:\XBMCSQLBACKUP&lt;br /&gt;
Make &#039;&#039;sure&#039;&#039; you include the .bat at the end.&lt;br /&gt;
&lt;br /&gt;
After you have edited the above batch file to reflect your paths and saved it as a batch file, all that is left is scheduling it to run. Daily backups are best, but you can use whatever frequency you are comfortable with. To do this, open up the Windows Task Scheduler.&lt;br /&gt;
&lt;br /&gt;
In the Task Scheduler click on &amp;quot;Create Task...&amp;quot;, NOT &amp;quot;Create Basic Task...&amp;quot;. In the new task window, in the Name box put XBMC MySQL backup (or whatever name you want). &lt;br /&gt;
&lt;br /&gt;
Then click on the Triggers tab, followed by the New button. Select Daily (or whatever you want) and adjust the time you would like it to run. Click OK.&lt;br /&gt;
&lt;br /&gt;
Click on the Actions tab and click New. In the Program/Script box enter C:\XBMCSQLBACKUP\xbmcdump.bat (or whatever you named your batch file) and in the start in box enter C:\XBMCSQLBACKUP&lt;br /&gt;
&lt;br /&gt;
Click ok, then click ok in the task window. In the main task scheduler window, right click on the task you just created and select run. If everything works as it should, you should now have a zipped backup of your database(s) in your backup location. It will now do this for you automatically.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
=== Linux ===&lt;br /&gt;
[http://sourceforge.net/projects/automysqlbackup/ AutoMySQLBackup] is a script that is designed to keep daily, weekly and monthly backups of your databases.  It is very customizable and reliable.  There is useful information on installing and configuring the script here: http://www.linux.com/learn/tutorials/659107-how-to-do-painless-mysql-server-backups-with-automysqlbackup.&lt;br /&gt;
{{note|Detailed instructions on configuring AutoMySQLBackup should probably be added to this section as the linked page above could be deleted at any time and there is little beginner friendly information available on the web.}}&lt;br /&gt;
&lt;br /&gt;
==Name tag==&lt;br /&gt;
{{#lst:MySQL/Setting up XBMC|name tag}}&lt;br /&gt;
&lt;br /&gt;
==Multiple profiles with one MySQL database==&lt;br /&gt;
See: http://forum.xbmc.org/showthread.php?tid=81095&amp;amp;pid=840499#pid840499&lt;br /&gt;
&lt;br /&gt;
{{Gotham updated}}&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL/Portable_devices_and_profiles&amp;diff=83909</id>
		<title>MySQL/Portable devices and profiles</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL/Portable_devices_and_profiles&amp;diff=83909"/>
		<updated>2015-01-10T22:05:11Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: /* Configure the MySQL profile */  {{kodi}} name changes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:MySQL/Contents}}&lt;br /&gt;
{{mininav| [[MySQL]] }}&lt;br /&gt;
If you use your device (notebook or mobile iOS device) in multiple situations, you can create multiple profiles. You can use one profile at home, using a central MySQL database and another profile for use when travelling. &lt;br /&gt;
&lt;br /&gt;
First create two profiles. Configure one profile for &amp;quot;local use&amp;quot; (internal HDD only, while traveling, etc) and another for using a central database. You can even make profiles for different wifi networks that have different centralized databases (your home, a friend&#039;s home, etc).&lt;br /&gt;
&lt;br /&gt;
== Create profiles ==&lt;br /&gt;
{{main|Profiles}}&lt;br /&gt;
#Configure the Master User profile:&lt;br /&gt;
## Open the Profile settings&lt;br /&gt;
## Modify the Master User profile&lt;br /&gt;
## Rename the profile, for example &amp;quot;Portable&amp;quot;&lt;br /&gt;
#Configure the Second profile:&lt;br /&gt;
## Create a new profile&lt;br /&gt;
## Enter a name for the second profile, for example &amp;quot;Home&amp;quot;&lt;br /&gt;
## Accept the default profile path&lt;br /&gt;
## Select &amp;quot;Separate&amp;quot; for &amp;quot;Media info&amp;quot;  and &amp;quot;Media sources&amp;quot;&lt;br /&gt;
# Enable the login screen to select a profile on startup&lt;br /&gt;
&lt;br /&gt;
== Configure the MySQL profile ==&lt;br /&gt;
Create a new file &amp;quot;advancedsettings.xml&amp;quot; in [[userdata]]/profiles/&amp;lt;username&amp;gt;/:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;advancedsettings&amp;gt;&lt;br /&gt;
    &amp;lt;videodatabase&amp;gt;&lt;br /&gt;
        &amp;lt;type&amp;gt;mysql&amp;lt;/type&amp;gt;&lt;br /&gt;
        &amp;lt;host&amp;gt;***.***.***.***&amp;lt;/host&amp;gt;&lt;br /&gt;
        &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;&lt;br /&gt;
        &amp;lt;user&amp;gt;kodi&amp;lt;/user&amp;gt;&lt;br /&gt;
        &amp;lt;pass&amp;gt;kodi&amp;lt;/pass&amp;gt;&lt;br /&gt;
    &amp;lt;/videodatabase&amp;gt; &lt;br /&gt;
&lt;br /&gt;
    &amp;lt;musicdatabase&amp;gt;&lt;br /&gt;
        &amp;lt;type&amp;gt;mysql&amp;lt;/type&amp;gt;&lt;br /&gt;
        &amp;lt;host&amp;gt;***.***.***.***&amp;lt;/host&amp;gt;&lt;br /&gt;
        &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;&lt;br /&gt;
        &amp;lt;user&amp;gt;kodi&amp;lt;/user&amp;gt;&lt;br /&gt;
        &amp;lt;pass&amp;gt;kodi&amp;lt;/pass&amp;gt;&lt;br /&gt;
    &amp;lt;/musicdatabase&amp;gt;&lt;br /&gt;
&amp;lt;/advancedsettings&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See [[MySQL/Setting up XBMC|Setting up XMBC]] for more information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Gotham updated}}&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL/Setting_up_Kodi&amp;diff=83908</id>
		<title>MySQL/Setting up Kodi</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL/Setting_up_Kodi&amp;diff=83908"/>
		<updated>2015-01-10T22:03:03Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:MySQL/Contents}}&lt;br /&gt;
{{mininav| [[MySQL]] }}&lt;br /&gt;
Each device that will be sharing a library will need an [[Advancedsettings.xml|advancedsetting.xml]] file.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
{{-}}&lt;br /&gt;
==Make files accessible over the network==&lt;br /&gt;
If you haven&#039;t already done so, you will need to make your media files accessible to all your {{kodi}} devices by sharing them on the network through file sharing. {{kodi}} itself or the MySQL server will not share the actual files for this setup. Most operating systems have built-in methods for sharing files to the network, or a [[NAS]] device can be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{note|&lt;br /&gt;
*If you use passwords on your network shares then you will need to copy (or [[MySQL/Sync other parts of XBMC|sync]]) your passwords.xml file from the userdata folder to each {{kodi}} device.&lt;br /&gt;
*Do not use mapped drives on the OS-level, as {{kodi}} will see those as local drives.&lt;br /&gt;
*If you use smb:// paths, you may want to use static IP addresses rather than NetBIOS names, as not all your devices may be able to resolve the latter.&lt;br /&gt;
*&#039;&#039;&#039;Even if the media is on the same computer as one of the {{kodi}} instances, you MUST use a network share path. You cannot use a local file path with MySQL.&#039;&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See [[:Category:File Sharing]] for some of the file sharing methods that work with {{kodi}}.&lt;br /&gt;
&lt;br /&gt;
==Exporting==&lt;br /&gt;
{{see also|HOW-TO:Backup the video library|Import-export library}}&lt;br /&gt;
&lt;br /&gt;
{{note|You only need to do the exporting steps if you are migrating an existing local library to a MySQL database. The MySQL setup creates an entirely new library on the MySQL server, so this step allows you to preserve your old library and restore it once MySQL is used in {{kodi}}.}}&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;Warning:&#039;&#039;&#039; |This will create individual &amp;quot;.nfo&amp;quot; and image files along side your video files. This is considered the safest way to backup and/or migrate a library (MySQL or otherwise), but some users might not want the file clutter. For an alternative method see &#039;&#039;&#039;[[why multiple files|here]]&#039;&#039;&#039;.}}&lt;br /&gt;
&lt;br /&gt;
#Open {{kodi}} on the computer that has the library you want to share&lt;br /&gt;
##Export the Video Library by doing the following:&lt;br /&gt;
###Go to &#039;&#039;&#039;System/Settings -&amp;gt; Video -&amp;gt; Library&#039;&#039;&#039; and select &#039;&#039;&#039;Export library&#039;&#039;&#039;&lt;br /&gt;
###Select &#039;&#039;&#039;Multiple files&#039;&#039;&#039;&lt;br /&gt;
##Export the Music Library by doing the following:&lt;br /&gt;
###Go to &#039;&#039;&#039;System/Settings -&amp;gt; Music -&amp;gt; Library&#039;&#039;&#039; and select &#039;&#039;&#039;Export library&#039;&#039;&#039;&lt;br /&gt;
###Select &#039;&#039;&#039;Multiple files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==MySQL and advancedsettings.xml==&lt;br /&gt;
{| class=infobox&lt;br /&gt;
| advancedsettings.xml:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;advancedsettings&amp;gt;&lt;br /&gt;
  &amp;lt;videodatabase&amp;gt;&lt;br /&gt;
    &amp;lt;type&amp;gt;mysql&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;host&amp;gt;***.***.***.***&amp;lt;/host&amp;gt;&lt;br /&gt;
    &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;&lt;br /&gt;
    &amp;lt;user&amp;gt;xbmc&amp;lt;/user&amp;gt;&lt;br /&gt;
    &amp;lt;pass&amp;gt;xbmc&amp;lt;/pass&amp;gt;&lt;br /&gt;
  &amp;lt;/videodatabase&amp;gt; &lt;br /&gt;
  &amp;lt;musicdatabase&amp;gt;&lt;br /&gt;
    &amp;lt;type&amp;gt;mysql&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;host&amp;gt;***.***.***.***&amp;lt;/host&amp;gt;&lt;br /&gt;
    &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;&lt;br /&gt;
    &amp;lt;user&amp;gt;xbmc&amp;lt;/user&amp;gt;&lt;br /&gt;
    &amp;lt;pass&amp;gt;xbmc&amp;lt;/pass&amp;gt;&lt;br /&gt;
  &amp;lt;/musicdatabase&amp;gt;&lt;br /&gt;
  &amp;lt;videolibrary&amp;gt;&lt;br /&gt;
    &amp;lt;importwatchedstate&amp;gt;true&amp;lt;/importwatchedstate&amp;gt;&lt;br /&gt;
    &amp;lt;importresumepoint&amp;gt;true&amp;lt;/importresumepoint&amp;gt;&lt;br /&gt;
  &amp;lt;/videolibrary&amp;gt;&lt;br /&gt;
&amp;lt;/advancedsettings&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;&#039;&#039;See also this note about using the &amp;lt;name&amp;gt; tag: [[#Name tag]]&amp;lt;br/&amp;gt;&amp;lt;importwatchedstate&amp;gt; is only needed when you&#039;re importing a previous library from exported files.&amp;lt;/small&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
#Create (or add to, if you already have one) an [[Advancedsettings.xml#.3Cmusicdatabase.3E.2F.3Cvideodatabase.3E|advancedsettings.xml]] file:&lt;br /&gt;
##Open up a plain text editor&lt;br /&gt;
##Copy and paste the text from the right-hand box into a new text document&lt;br /&gt;
##Replace the two instances of &amp;lt;code&amp;gt;***.***.***.***&amp;lt;/code&amp;gt; with local network IP address of your MySQL server. If you installed MySQL on a Windows machine, do not use its NetBIOS name, as not all devices may be able to resolve them.&lt;br /&gt;
##Save the file as &#039;&#039;&#039;advancedsettings.xml&#039;&#039;&#039;&lt;br /&gt;
#Copy this &#039;&#039;advancedsettings.xml&#039;&#039; file you just created to the &#039;&#039;&#039;[[userdata folder]]&#039;&#039;&#039; of every {{kodi}} install you want to sync with.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Importing==&lt;br /&gt;
At this point {{kodi}} is using the MySQL server for the database, which means it has a new blank library. Now we can either import an old library (see below) or simply start a new library (see [[adding videos to the library]]). From this point on, {{kodi}} behaves exactly like it would as if it had a local database, except that database is on the MySQL server and multiple installs can access that single database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Open any of your installs and re-import your library data, &#039;&#039;or&#039;&#039; simply set up a new library if you are starting fresh.&lt;br /&gt;
# Add (or just &amp;quot;set content&amp;quot; on) the networked video source to {{kodi}} and scan it in as if you were setting up your library for the first time (see [[adding videos to the library]]). However, {{kodi}} will read the exported nfo files and images and use those instead of rebuilding the library from scratch. The end result will be an identical library, and your watched status for videos will be preserved.&lt;br /&gt;
#:{{Note|You must add a network source using {{kodi}}&#039;s standard formatting. For example, use &amp;quot;smb://192.168.1.20/Videos/&amp;quot; and not &amp;quot;\\BOBPC\Videos\&amp;quot;.  Try to use static IP addresses over NetBIOS names if using SMB.}}&lt;br /&gt;
# Import the Music Library by doing the following: Same idea as videos, but using the steps for [[adding music to the library]]. You&#039;ll end up with an identical library.&lt;br /&gt;
You can now add files and update the library from any of your devices and the library for all of them will stay in sync.&lt;br /&gt;
&lt;br /&gt;
== Adding new {{kodi}} devices to the MySQL setup ==&lt;br /&gt;
Since the database has now been set up on the MySQL server, all you need to do for any additional devices is add the advancedsettings.xml file. You don&#039;t need to do any of the other steps, such as rescanning or reimporting. If it works on one device then it should work on all of them, as they are basically sharing the same &amp;quot;brain&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you however used a metadata collector add-on ([[scraper]]) that does not ship by default with new installations, such as the [[Add-on:Universal Movie Scraper|Universal Movie Scraper]] you will not be able to display the [[Video_navigation#Media_information_screen|media information screen]] on the new {{kodi}} device. To fix that you need to install the same metadata collector add-on on the new device.&lt;br /&gt;
&lt;br /&gt;
==Name tag==&lt;br /&gt;
&amp;lt;section begin=&amp;quot;name tag&amp;quot; /&amp;gt;&lt;br /&gt;
An additional &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag can be used for both the &amp;lt;code&amp;gt;&amp;lt;videodatabase&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;musicdatabase&amp;gt;&amp;lt;/code&amp;gt; entries in advancedsettings.xml file, if you want to change the name of the database. The &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag is not required. {{kodi}} will use &amp;quot;MyVideos&amp;quot; and &amp;quot;MyMusic&amp;quot; as database names if the &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag is not specified. &lt;br /&gt;
&lt;br /&gt;
You may want to do this if you want to have multiple separate libraries (with different content) on the same MySQL server. For example, if you want to create multiple profiles, each with their own shared library, so that each {{kodi}} device can &amp;quot;log-into&amp;quot; that library. (a kids library, a guest library, etc)&lt;br /&gt;
&lt;br /&gt;
{{note|Don&#039;t try to merge the video and music databases! You need to use different values in the &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag or you&#039;ll end up confusing {{kodi}} leading to the library functionality not working at all. In other words, don&#039;t use &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;Kodi&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt; for both music and videos, but instead use something like &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;Kodi-music&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;Kodi-video&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
{{Gotham updated}}&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL/Setting_up_MySQL&amp;diff=83907</id>
		<title>MySQL/Setting up MySQL</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL/Setting_up_MySQL&amp;diff=83907"/>
		<updated>2015-01-10T22:01:58Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: {{kodi}} name changes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:MySQL/Contents}}&lt;br /&gt;
{{mininav| [[MySQL]] }}&lt;br /&gt;
You&#039;ll need to choose which of your computers, XBMC devices, or [[NAS]] will be the MySQL server. The server needs to be on 24/7 or have wake-on-lan (preferably the former), and needs to have a local static IP. You will probably want the XBMC device that is hosting most or all of your videos and music to also be the MySQL server, but this is not required.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
{{note|XBMC v13 seems to have fixed the issue with MySQL 5.6, making it safe to use with XBMC.}}&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;Please Note:&#039;&#039;&#039;| Don&#039;t create the MySQL databases on your server&#039;&#039;&#039;. Simply set up the MySQL server itself, as XBMC will create the specific databases by itself.}}&lt;br /&gt;
&lt;br /&gt;
MySQL can be installed on just about every major OS:&lt;br /&gt;
&lt;br /&gt;
=Ubuntu Linux=&lt;br /&gt;
&#039;&#039;&#039;Ubuntu Linux:&#039;&#039;&#039;&lt;br /&gt;
#&amp;lt;code&amp;gt;$sudo apt-get install mysql-server&amp;lt;/code&amp;gt; &#039;&#039;(see also: https://help.ubuntu.com/10.04/serverguide/C/mysql.html )&#039;&#039;&lt;br /&gt;
#Create a password when asked&lt;br /&gt;
#To configure MySQL to listen for connections from network hosts, edit &#039;&#039;/etc/mysql/my.cnf&#039;&#039; and change the bind-address directive to the server&#039;s IP address:&lt;br /&gt;
##from: &amp;lt;code&amp;gt;bind-address = 127.0.0.1&amp;lt;/code&amp;gt; &lt;br /&gt;
##to: &amp;lt;code&amp;gt;bind-address = 192.168.0.5&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Note: Replace 192.168.0.5 with the appropriate address.&lt;br /&gt;
#*Note: To allow local and remote access try comment out bind-address using a hash(#) or use &amp;lt;code&amp;gt;bind-address = 0.0.0.0&amp;lt;/code&amp;gt;&lt;br /&gt;
#Restart your MySQL server. &amp;lt;code&amp;gt;$sudo restart mysql&amp;lt;/code&amp;gt;&lt;br /&gt;
#Get into the MySQL command line utility: &amp;lt;code&amp;gt;$mysql -u root -p&amp;lt;/code&amp;gt;&lt;br /&gt;
#Enter the following commands:&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;CREATE USER &#039;kodi&#039; IDENTIFIED BY &#039;kodi&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;kodi&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
#Close out the command line tool with &amp;lt;code&amp;gt;\q&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Arch Linux=&lt;br /&gt;
&#039;&#039;&#039;Arch Linux:&#039;&#039;&#039;&lt;br /&gt;
*Please note: Arch, along with many other distributions, has migrated to the faster and more open MariaDB. It is a drop in replacement to MySQL and, thus, XBMC will require no modifications to work with it.&lt;br /&gt;
#Install MariaDB: &amp;lt;code&amp;gt;$ sudo pacman -S mariadb&amp;lt;/code&amp;gt;&lt;br /&gt;
#Start the service: &amp;lt;code&amp;gt;$ sudo systemctl start mysqld&amp;lt;/code&amp;gt;&lt;br /&gt;
#To have it automatically launch at startup: &amp;lt;code&amp;gt;$ sudo systemctl enable mysqld&amp;lt;/code&amp;gt;&lt;br /&gt;
#Create a password: &amp;lt;code&amp;gt;$ /usr/bin/mysql_secure_installation&amp;lt;/code&amp;gt; &#039;&#039;This will also clean up the demo database.&#039;&#039;&lt;br /&gt;
#Get into the MariaDB command line utility: &amp;lt;code&amp;gt;$ mysql -u root -p&amp;lt;/code&amp;gt;&lt;br /&gt;
#Enter the following commands:&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;CREATE USER &#039;kodi&#039; IDENTIFIED BY &#039;kodi&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;kodi&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
#Close out the command line tool with &amp;lt;code&amp;gt;\q&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=RedHat based Linux=&lt;br /&gt;
&#039;&#039;&#039;RedHat based Linux (RHEL, CentOS, Fedora):&#039;&#039;&#039;&lt;br /&gt;
#&amp;lt;code&amp;gt;$sudo yum install mysql-server&amp;lt;/code&amp;gt;&lt;br /&gt;
#Create a password when asked&lt;br /&gt;
#To configure MySQL to listen for connections only from network hosts, edit &#039;&#039;/etc/mysql/my.cnf&#039;&#039; and add the bind-address directive to the server&#039;s IP address:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;bind-address = 192.168.0.5&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Note: Replace 192.168.0.5 with the appropriate address.&lt;br /&gt;
#*Note: Alternatively you can leave this file as is to allow local and remote access.&lt;br /&gt;
#Restart your MySQL server. &amp;lt;code&amp;gt;$sudo /sbin/service mysqld restart&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Recommended - Set your MySQL root password with &amp;lt;code&amp;gt;/usr/bin/mysqladmin -u root password &#039;new-password&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
#Get into the MySQL command line utility: &amp;lt;code&amp;gt;$mysql -u root -p&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Enter your MySQL root password as set above, or just press enter if you didn&#039;t set one to log in with a blank password&lt;br /&gt;
#Enter the following commands:&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;CREATE USER &#039;kodi&#039; IDENTIFIED BY &#039;kodi&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;kodi&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
#Close out the command line tool with &amp;lt;code&amp;gt;\q&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Mac OS X=&lt;br /&gt;
&#039;&#039;&#039;Mac OS X:&#039;&#039;&#039;&lt;br /&gt;
#Download a copy of MySQL server from http://dev.mysql.com/downloads/mysql/&lt;br /&gt;
#In Mac OS X, go to System Preferences -&amp;gt; MySQL, and click on “Start MySQL Server”.  You’ll also want to tick to enable the “Automatically … on Startup” option.&lt;br /&gt;
#Now to set up the &amp;quot;kodi&amp;quot; user in MySQL and give it access. Launch Terminal.app on your Mac and issue the following commands, one line at a time:&lt;br /&gt;
##&amp;lt;code&amp;gt;sudo /usr/local/mysql/bin/mysql&amp;lt;/code&amp;gt;&lt;br /&gt;
##&amp;lt;code&amp;gt;CREATE USER &#039;kodi&#039; IDENTIFIED BY &#039;kodi&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
##&amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;kodi&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
##&amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
#Remain in Terminal.app. Now you&#039;ll be giving other computers on your network access to MySQL. Enter the next set of commands, one line at a time:&lt;br /&gt;
##&amp;lt;code&amp;gt;cd /usr/local/mysql/support-files/&amp;lt;/code&amp;gt;&lt;br /&gt;
##&amp;lt;code&amp;gt;sudo cp my-huge.cnf /etc/my.cnf&amp;lt;/code&amp;gt;&lt;br /&gt;
##:&#039;&#039;The command line will ask for your Mac OS X user password. Enter it and press return. No text will show when you type your password in, this is normal.&lt;br /&gt;
##&amp;lt;code&amp;gt;cd /etc&amp;lt;/code&amp;gt;&lt;br /&gt;
##&amp;lt;code&amp;gt;sudo nano my.cnf&amp;lt;/code&amp;gt;&lt;br /&gt;
##:&#039;&#039;This opens a file in a command line text editor&#039;&#039;&lt;br /&gt;
##Scroll down to the [mysqld] section and add or edit the following line so that it appears as:&lt;br /&gt;
##:&amp;lt;code&amp;gt;bind-address = ***.***.***.***&amp;lt;/code&amp;gt;&lt;br /&gt;
##Save and exit from the command line text editor&lt;br /&gt;
#Reboot the Mac, or restart the MySQL service from the System Preferences pane you installed earlier&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Alternative guide for Mac OS X: http://forum.xbmc.org/showthread.php?tid=151631&lt;br /&gt;
&lt;br /&gt;
=Windows=&lt;br /&gt;
== Installing MySQL on Windows ==&lt;br /&gt;
If you have chocolatey installed run &#039;&#039;&#039;choco install mysql&#039;&#039;&#039; &lt;br /&gt;
:&#039;&#039;&#039;or&#039;&#039;&#039;&lt;br /&gt;
#Download a copy of MySQL server from http://dev.mysql.com/downloads/mysql/&lt;br /&gt;
#Select &#039;&#039;Standard configuration&#039;&#039;&lt;br /&gt;
#Create a password when asked&lt;br /&gt;
#Select that you want the database to have network access when prompted during installation.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using a firewall such as the one that&#039;s built into Windows, you will need to follow the steps below for the version of windows you installed XBMC/Kodi on.&lt;br /&gt;
=== Windows 7/8/8.1 Built-in Firewall ===&lt;br /&gt;
: Run the following command in powershell or execute all the steps below.&lt;br /&gt;
  &#039;&#039;&#039;New-NetFirewallRule -DisplayName &amp;quot;Allow inbound TCP Port 3306 for MySQL&amp;quot; -Direction inbound –LocalPort 3306 -Protocol TCP -Action Allow&#039;&#039;&#039;&lt;br /&gt;
:#Go to control panel and open Windows Firewall&lt;br /&gt;
:#Click on Advanced Settings&lt;br /&gt;
:#Click on Inbound Rules, then New Rule&lt;br /&gt;
:#For the Rule Type, choose &#039;&#039;&#039;&#039;&#039;Port&#039;&#039;&#039;&#039;&#039; and hit Next&lt;br /&gt;
:#For Protocol and Ports, select TCP protocol and type in &#039;&#039;&#039;&#039;&#039;3306&#039;&#039;&#039;&#039;&#039; for the &#039;&#039;&#039;&#039;&#039;Specific local ports&#039;&#039;&#039;&#039;&#039; and hit Next&lt;br /&gt;
:#For Action, leave it at default which is &#039;&#039;&#039;&#039;&#039;Allow the connection&#039;&#039;&#039;&#039;&#039; and hit Next&lt;br /&gt;
:#For Profile, you can leave it as default (everything checked by default) and hit Next&lt;br /&gt;
:#For Name, set it to &#039;&#039;&#039;&#039;&#039;MySQL&#039;&#039;&#039;&#039;&#039; or any name that you will know what it is and click Finished&lt;br /&gt;
=== Windows XP Built-in Firewall ===&lt;br /&gt;
:#Open Control Panel and Set to &#039;Classic View&#039;&lt;br /&gt;
:#Double Click on Windows Firewall&lt;br /&gt;
:#Click on tab that says Exceptions&lt;br /&gt;
:#Click on Add Port&lt;br /&gt;
:#Name it &#039;&#039;&#039;&#039;&#039;MySQL&#039;&#039;&#039;&#039;&#039; or any other name&lt;br /&gt;
:#Set the port number to &#039;&#039;&#039;3306&#039;&#039;&#039;&lt;br /&gt;
:#Choose &#039;&#039;&#039;&#039;&#039;TCP&#039;&#039;&#039;&#039;&#039; and click OK&lt;br /&gt;
&lt;br /&gt;
== Setup users in MySQL for XBMC/Kodi clients ==&lt;br /&gt;
&lt;br /&gt;
#Open the &amp;quot;MySQL Command Line Client&amp;quot; from the MySQL start menu&lt;br /&gt;
#Enter the following commands:&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;CREATE USER &#039;kodi&#039; IDENTIFIED BY &#039;kodi&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;kodi&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
#Close out the command line tool&lt;br /&gt;
&lt;br /&gt;
{{Note|If XBMC is unable to connect to the MySQL server, returning an error code [1130]:}}&amp;lt;br/&amp;gt;&lt;br /&gt;
If this occurs to you, try amending Step 2 above to read &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;xbmc&#039;@&#039;xxx.xxx.xxx.%&#039;;&amp;lt;/code&amp;gt; where xxx.xxx.xxx is the first three quadrants of your home network&#039;s IP address (192.168.1 for example) and % as the last quadrant to allow addresses on the same subnet to connect.&lt;br /&gt;
&lt;br /&gt;
=Other NAS=&lt;br /&gt;
MySQL can also be installed on some [[w:network-attached storage|network-attached storage (NAS)]] device devices. Here are some guides for various NAS devices that can have a MySQL server installed:&lt;br /&gt;
&lt;br /&gt;
*Devices running Arch Linux ARM (such as the PogoPlug, Dockstar, etc) can use the [[HOW-TO:Share libraries using MySQL/Setting up MySQL/ALARM|Arch Linux instructions]] on this page.&lt;br /&gt;
*[http://quixventure.com/2011/12/configure-a-synology-nas-as-mysql-server-for-xbmc/ Synology NAS as MySQL server for XBMC] and http://youtu.be/3PmmDtK65ks&lt;br /&gt;
*http://www.robvanhamersveld.nl/2013/02/05/share-your-xbmc-12-0-library-on-a-synology-ds-or-other-nas/ Synology DS with MySQL guide based on Frodo&lt;br /&gt;
*http://forum.xbmc.org/showthread.php?tid=172548 - unRAID&lt;br /&gt;
&lt;br /&gt;
=FreeNAS and freeBSD=&lt;br /&gt;
&lt;br /&gt;
== About FreeNAS ==&lt;br /&gt;
&lt;br /&gt;
http://www.freenas.org/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
FreeNAS is a FreeBSD based NAS system that can be run on almost any hardware - it uses ZFS for disk and file management. It is used at home and in enterprise businesses. 99% of tasks can be done via the web interface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example below is based on FreeNAS 9.1.1 on 12/12/13, and assumes you have already configured your nas with drives, datasets etc&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
=== Make a jail ===&lt;br /&gt;
&lt;br /&gt;
create a Jail via the FreeNAS webui - if unsure see here http://doc.freenas.org/index.php/Adding_Jails&lt;br /&gt;
&lt;br /&gt;
make a note of the jail IP address shown - you will need this to put in the advancedsettings.xml file on the XBMC machine later&lt;br /&gt;
&lt;br /&gt;
=== Prepare the jail ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*ssh into FreeNAS&lt;br /&gt;
**If you have a windows PC use putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) &lt;br /&gt;
**(easiest) click the &amp;quot;shell&amp;quot; button in the left of the FreeNAS webui&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
type the following commands&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;jls&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take note of the JID of the jail you created, use it in the command below and replace n with the number of the jail you just created&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;jexec n csh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install mysql ===&lt;br /&gt;
You are now inside your jail&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;pkg install mysql55-server&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;pkg install nano&amp;lt;/code&amp;gt;&lt;br /&gt;
**(nano is a text editor you will need shortly)&lt;br /&gt;
&lt;br /&gt;
We now need to enable mysql in rc.conf&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;nano /etc/rc.conf&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
insert the line below into the rc.conf file&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;mysql_enable=&amp;quot;YES&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
save the file and exit (see bottom of nano edit page for keystrokes info)&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;service mysql-server start&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Optional step below - this is an automated script that will secure you mysql instance - it will prompt you for answers to questions. Its up to you if you do this.&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;mysql_secure_installation&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure mysql ready for xbmc to use ===&lt;br /&gt;
&lt;br /&gt;
type in&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;mysql -u root -p&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You are now in mysql administration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;CREATE USER &#039;kodi&#039; IDENTIFIED BY &#039;kodi&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;kodi&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;quit;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Restricting MySQL access rights=&lt;br /&gt;
&#039;&#039;&#039;Optional:&#039;&#039;&#039; &#039;&#039;&#039;If you only use the MySQL server for XBMC and that server has non-critical data on it, then this probably not necessary.&#039;&#039;&#039;&lt;br /&gt;
For a more secure MySQL installation use these 2 commands to grant permission only to databases XBMC uses. This is useful if you plan on using your MySQL server for more than just XBMC, or if you&#039;re worried about your internal network being exposed and wanting to lock things down more, etc. &lt;br /&gt;
#&amp;lt;code&amp;gt;GRANT ALL ON `MyMusic%`.* TO &#039;kodi&#039;@&#039;%&#039; IDENTIFIED BY &#039;kodi&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
#&amp;lt;code&amp;gt;GRANT ALL ON `MyVideos%`.* TO &#039;kodi&#039;@&#039;%&#039; IDENTIFIED BY &#039;kodi&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Divbox|orange||&lt;br /&gt;
The limited grants on this page don&#039;t give the kodi user permissions to create required TRIGGERs during install or upgrade. &lt;br /&gt;
&#039;&#039;&#039;{{kodi}} requires these TRIGGERs to function properly.&#039;&#039;&#039; &lt;br /&gt;
Use the broader grant *.* statement that is explained on the previous tabs while creating or upgrading the tables. Only restrict rights afterwards, if you need to. &lt;br /&gt;
&lt;br /&gt;
Alternatively, figure out how to specifically give the account the right to create the require TRIGGERS - this varies between MySQL versions. }}&lt;br /&gt;
&amp;lt;headertabs /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Next|[[MySQL/Setting up XBMC|Setting up XBMC]]}}&lt;br /&gt;
&lt;br /&gt;
{{Gotham updated}}&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL/Upgrading&amp;diff=83906</id>
		<title>MySQL/Upgrading</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL/Upgrading&amp;diff=83906"/>
		<updated>2015-01-10T21:56:13Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: /* Making sure {{kodi}} can update the library */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{mininav| [[MySQL]] }}&lt;br /&gt;
{{Kodi MySQL}}&lt;br /&gt;
{{:MySQL/Contents}}&lt;br /&gt;
&lt;br /&gt;
When updating to a new version, {{kodi}} will make a copy of the current DB and upgrade the copy. That way if anything goes wrong in the upgrading you still have an original untouched copy of your DB.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{big|{{note|Updating your library may take a few minutes, so be sure to give {{kodi}} time to do its thing. Stopping midway will mess up the updated DB. }} }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Backing up the database==&lt;br /&gt;
{{big|&#039;&#039;&#039;BACKUP YOUR DATABASE JUST IN CASE.&#039;&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
Even though {{kodi}} makes a copy of your DB and updates that, it is still highly recommended to [[Import - Export Video Library#Import .2F Export options|export]] your library from your current version before beginning the upgrade process. You don&#039;t want to find yourself starting your library from scratch, and it&#039;s better to be safe than sorry.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It&#039;s also a good idea to make periodic backups of your library even if you are not updating Kodi. Disks can fail, bugs can happen, and if you&#039;ve put a lot of time in setting up your library then you should play it safe.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To backup simply [[export]] the library to a single file using {{highlight|bordered=yes|[[Settings/Videos#Library|Settings -&amp;gt; Videos -&amp;gt; Library]] -&amp;gt; Export library}} and select &amp;quot;multiple files&amp;quot;. &amp;quot;Single file&amp;quot; also works, but &amp;quot;multiple files&amp;quot; is recommended as it is the most fail-safe method, especially for saving/resorting images. For more information see &#039;&#039;&#039;[[HOW-TO:Backup the library]]&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Making sure {{kodi}} can update the library==&lt;br /&gt;
{{Note|If you originally set up MySQL using this {{kodi}} Wiki guide then you should not have to worry about this section. It never hurts to double check the settings, though.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Note|if you used &#039;xbmc&#039; as a username in the past, you can keep using it even though the program has changed names to Kodi. It makes no difference as long as that is the name you set up MySQL with.}}&lt;br /&gt;
&lt;br /&gt;
For {{kodi}} to update the library from a previous version, you may need to make changes to your MySQL server. The user made for the MySQL DB (&amp;quot;xbmc&amp;quot; in most guides) will need access to create new databases. If the user already has that access then you don&#039;t need to do anything. If not, you will have to use the following command on your MySQL server:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;kodi&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or if using an old xbmc username:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;xbmc&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are worried about security then you can limit Kodi&#039;s access in MySQL once it has created the new video DB. However, you will need to re-grant these privileges the next time you update Kodi. If the only thing you use MySQL for is {{kodi}} then you don&#039;t really need to worry about security.&lt;br /&gt;
&lt;br /&gt;
==Common problems==&lt;br /&gt;
===Upgrade fails===&lt;br /&gt;
;Method 1&lt;br /&gt;
&lt;br /&gt;
# Downgrade {{kodi}} on one of your {{kodi}} devices to the previous version of {{kodi}} (you only need to do this to one device). [[Export]] the library to multiple files using {{highlight|bordered=yes|[[Settings/Videos#Library|Settings -&amp;gt; Videos -&amp;gt; Library]] -&amp;gt; Export library}} and select &amp;quot;multiple files&amp;quot;.&lt;br /&gt;
#:&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039; If you backed up your {{kodi}} database, you can use that backup in place of this first step.&#039;&#039;&lt;br /&gt;
# Quit Kodi&lt;br /&gt;
# Place {{highlight|&amp;lt;nowiki&amp;gt;&amp;lt;importwatchedstate&amp;gt;true&amp;lt;/importwatchedstate&amp;gt;&amp;lt;/nowiki&amp;gt;}} in your [[advancedsettings.xml]] file on the downgraded {{kodi}} device.&lt;br /&gt;
# If you used the &amp;lt;name&amp;gt; tag in your [[advancedsettings.xml]] file, remove these lines. {{kodi}} will simply use default database names instead (MyVideos and MyMusic). Sometimes using the &amp;lt;name&amp;gt; tag will cause issues when updating the MySQL libraries, but the tag is not needed as of {{kodi}} v11 and later.&lt;br /&gt;
# Use the MySQL configuration utility to drop/delete the existing MySQL copies of the {{kodi}} database(s). &lt;br /&gt;
## When using phpMyAdmin: select &#039;&#039;Databases&#039;&#039; option from the top of the screen, put a checkbox in front of all databases called &#039;&#039;&#039;MyMusic&#039;&#039;&#039; or &#039;&#039;&#039;MyVideos&#039;&#039;&#039; followed by some digits, and select &#039;&#039;Drop&#039;&#039; underneath the list. Confirm that you want to drop the databases.&lt;br /&gt;
## When using the command line tools: enter &amp;lt;code&amp;gt;show databases;&amp;lt;/code&amp;gt; including the semicolon. Type &amp;lt;code&amp;gt;drop database &amp;lt;name&amp;gt;;&amp;lt;/code&amp;gt; for every name in the resulting list starting with &#039;&#039;&#039;MyMusic&#039;&#039;&#039; or &#039;&#039;&#039;MyVideos&#039;&#039;&#039; and followed by some digits, for example: &amp;lt;code&amp;gt;drop database MyVideos78; drop database MyMusic46;&amp;lt;/code&amp;gt; Note that actual names may vary per {{kodi}} version, and do not forget the trailing semicolon.&lt;br /&gt;
# You can now re-update the device you downgraded in step 1.&lt;br /&gt;
# Import the library by simply scanning it in as a new file source. {{kodi}} will pick up the exported data as it scans the files in.&lt;br /&gt;
# {{kodi}} will now rebuild a fresh MySQL library DB, but using all your existing information.&lt;br /&gt;
# You can now open/launch {{kodi}} on the other devices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;Method 2&lt;br /&gt;
&lt;br /&gt;
# Quit Kodi&lt;br /&gt;
# Use the MySQL configuration utility to drop/delete the existing MySQL copies of the {{kodi}} database(s). &lt;br /&gt;
## Consult the table on &#039;&#039;&#039;[[Databases/Versions]]&#039;&#039;&#039; and note the version number for the downgraded version. You will want to get rid of all of the versions &#039;&#039;&#039;after&#039;&#039;&#039; that version.&lt;br /&gt;
## When using phpMyAdmin: select &#039;&#039;Databases&#039;&#039; option from the top of the screen, put a checkbox in front of all databases (&#039;&#039;after&#039;&#039; the stable version from step 2) called &#039;&#039;&#039;MyMusic&#039;&#039;&#039; or &#039;&#039;&#039;MyVideos&#039;&#039;&#039; followed by some digits, and select &#039;&#039;Drop&#039;&#039; underneath the list. Confirm that you want to drop the databases.&lt;br /&gt;
## When using the command line tools: enter &amp;lt;code&amp;gt;show databases;&amp;lt;/code&amp;gt; including the semicolon. Type &amp;lt;code&amp;gt;drop database &amp;lt;name&amp;gt;;&amp;lt;/code&amp;gt; for every name in the resulting list, &#039;&#039;after&#039;&#039; the stable version from step 2, starting with &#039;&#039;&#039;MyMusic&#039;&#039;&#039; or &#039;&#039;&#039;MyVideos&#039;&#039;&#039; and followed by some digits, for example: &amp;lt;code&amp;gt;drop database MyVideos78; drop database MyMusic46;&amp;lt;/code&amp;gt; Note that actual names may vary per {{kodi}} version, and do not forget the trailing semicolon.&lt;br /&gt;
# Start one {{kodi}} instance that is using the version you want to use and give it lots of time to update the database.&lt;br /&gt;
# {{kodi}} will make a new updated DB using the last working DB from the previous {{kodi}} installation.&lt;br /&gt;
# You can now open/launch {{kodi}} on the other devices.&lt;br /&gt;
&lt;br /&gt;
===Different {{kodi}} versions===&lt;br /&gt;
Using MySQL to sync the library only works if all {{kodi}} devices are using the same version of Kodi.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Helix updated}}&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL/Setting_up_MySQL&amp;diff=83905</id>
		<title>MySQL/Setting up MySQL</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL/Setting_up_MySQL&amp;diff=83905"/>
		<updated>2015-01-10T21:54:06Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: /* Ubuntu Linux */ {{kodi}} name change&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:MySQL/Contents}}&lt;br /&gt;
{{mininav| [[MySQL]] }}&lt;br /&gt;
You&#039;ll need to choose which of your computers, XBMC devices, or [[NAS]] will be the MySQL server. The server needs to be on 24/7 or have wake-on-lan (preferably the former), and needs to have a local static IP. You will probably want the XBMC device that is hosting most or all of your videos and music to also be the MySQL server, but this is not required.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
{{note|XBMC v13 seems to have fixed the issue with MySQL 5.6, making it safe to use with XBMC.}}&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;Please Note:&#039;&#039;&#039;| Don&#039;t create the MySQL databases on your server&#039;&#039;&#039;. Simply set up the MySQL server itself, as XBMC will create the specific databases by itself.}}&lt;br /&gt;
&lt;br /&gt;
MySQL can be installed on just about every major OS:&lt;br /&gt;
&lt;br /&gt;
=Ubuntu Linux=&lt;br /&gt;
&#039;&#039;&#039;Ubuntu Linux:&#039;&#039;&#039;&lt;br /&gt;
#&amp;lt;code&amp;gt;$sudo apt-get install mysql-server&amp;lt;/code&amp;gt; &#039;&#039;(see also: https://help.ubuntu.com/10.04/serverguide/C/mysql.html )&#039;&#039;&lt;br /&gt;
#Create a password when asked&lt;br /&gt;
#To configure MySQL to listen for connections from network hosts, edit &#039;&#039;/etc/mysql/my.cnf&#039;&#039; and change the bind-address directive to the server&#039;s IP address:&lt;br /&gt;
##from: &amp;lt;code&amp;gt;bind-address = 127.0.0.1&amp;lt;/code&amp;gt; &lt;br /&gt;
##to: &amp;lt;code&amp;gt;bind-address = 192.168.0.5&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Note: Replace 192.168.0.5 with the appropriate address.&lt;br /&gt;
#*Note: To allow local and remote access try comment out bind-address using a hash(#) or use &amp;lt;code&amp;gt;bind-address = 0.0.0.0&amp;lt;/code&amp;gt;&lt;br /&gt;
#Restart your MySQL server. &amp;lt;code&amp;gt;$sudo restart mysql&amp;lt;/code&amp;gt;&lt;br /&gt;
#Get into the MySQL command line utility: &amp;lt;code&amp;gt;$mysql -u root -p&amp;lt;/code&amp;gt;&lt;br /&gt;
#Enter the following commands:&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;CREATE USER &#039;kodi&#039; IDENTIFIED BY &#039;xodi&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;kodi&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
#Close out the command line tool with &amp;lt;code&amp;gt;\q&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Arch Linux=&lt;br /&gt;
&#039;&#039;&#039;Arch Linux:&#039;&#039;&#039;&lt;br /&gt;
*Please note: Arch, along with many other distributions, has migrated to the faster and more open MariaDB. It is a drop in replacement to MySQL and, thus, XBMC will require no modifications to work with it.&lt;br /&gt;
#Install MariaDB: &amp;lt;code&amp;gt;$ sudo pacman -S mariadb&amp;lt;/code&amp;gt;&lt;br /&gt;
#Start the service: &amp;lt;code&amp;gt;$ sudo systemctl start mysqld&amp;lt;/code&amp;gt;&lt;br /&gt;
#To have it automatically launch at startup: &amp;lt;code&amp;gt;$ sudo systemctl enable mysqld&amp;lt;/code&amp;gt;&lt;br /&gt;
#Create a password: &amp;lt;code&amp;gt;$ /usr/bin/mysql_secure_installation&amp;lt;/code&amp;gt; &#039;&#039;This will also clean up the demo database.&#039;&#039;&lt;br /&gt;
#Get into the MariaDB command line utility: &amp;lt;code&amp;gt;$ mysql -u root -p&amp;lt;/code&amp;gt;&lt;br /&gt;
#Enter the following commands:&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;CREATE USER &#039;xbmc&#039; IDENTIFIED BY &#039;xbmc&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;xbmc&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
#Close out the command line tool with &amp;lt;code&amp;gt;\q&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=RedHat based Linux=&lt;br /&gt;
&#039;&#039;&#039;RedHat based Linux (RHEL, CentOS, Fedora):&#039;&#039;&#039;&lt;br /&gt;
#&amp;lt;code&amp;gt;$sudo yum install mysql-server&amp;lt;/code&amp;gt;&lt;br /&gt;
#Create a password when asked&lt;br /&gt;
#To configure MySQL to listen for connections only from network hosts, edit &#039;&#039;/etc/mysql/my.cnf&#039;&#039; and add the bind-address directive to the server&#039;s IP address:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;bind-address = 192.168.0.5&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Note: Replace 192.168.0.5 with the appropriate address.&lt;br /&gt;
#*Note: Alternatively you can leave this file as is to allow local and remote access.&lt;br /&gt;
#Restart your MySQL server. &amp;lt;code&amp;gt;$sudo /sbin/service mysqld restart&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Recommended - Set your MySQL root password with &amp;lt;code&amp;gt;/usr/bin/mysqladmin -u root password &#039;new-password&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
#Get into the MySQL command line utility: &amp;lt;code&amp;gt;$mysql -u root -p&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Enter your MySQL root password as set above, or just press enter if you didn&#039;t set one to log in with a blank password&lt;br /&gt;
#Enter the following commands:&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;CREATE USER &#039;xbmc&#039; IDENTIFIED BY &#039;xbmc&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;xbmc&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
#Close out the command line tool with &amp;lt;code&amp;gt;\q&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Mac OS X=&lt;br /&gt;
&#039;&#039;&#039;Mac OS X:&#039;&#039;&#039;&lt;br /&gt;
#Download a copy of MySQL server from http://dev.mysql.com/downloads/mysql/&lt;br /&gt;
#In Mac OS X, go to System Preferences -&amp;gt; MySQL, and click on “Start MySQL Server”.  You’ll also want to tick to enable the “Automatically … on Startup” option.&lt;br /&gt;
#Now to set up the &amp;quot;xbmc&amp;quot; user in MySQL and give it access. Launch Terminal.app on your Mac and issue the following commands, one line at a time:&lt;br /&gt;
##&amp;lt;code&amp;gt;sudo /usr/local/mysql/bin/mysql&amp;lt;/code&amp;gt;&lt;br /&gt;
##&amp;lt;code&amp;gt;CREATE USER &#039;xbmc&#039; IDENTIFIED BY &#039;xbmc&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
##&amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;xbmc&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
##&amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
#Remain in Terminal.app. Now you&#039;ll be giving other computers on your network access to MySQL. Enter the next set of commands, one line at a time:&lt;br /&gt;
##&amp;lt;code&amp;gt;cd /usr/local/mysql/support-files/&amp;lt;/code&amp;gt;&lt;br /&gt;
##&amp;lt;code&amp;gt;sudo cp my-huge.cnf /etc/my.cnf&amp;lt;/code&amp;gt;&lt;br /&gt;
##:&#039;&#039;The command line will ask for your Mac OS X user password. Enter it and press return. No text will show when you type your password in, this is normal.&lt;br /&gt;
##&amp;lt;code&amp;gt;cd /etc&amp;lt;/code&amp;gt;&lt;br /&gt;
##&amp;lt;code&amp;gt;sudo nano my.cnf&amp;lt;/code&amp;gt;&lt;br /&gt;
##:&#039;&#039;This opens a file in a command line text editor&#039;&#039;&lt;br /&gt;
##Scroll down to the [mysqld] section and add or edit the following line so that it appears as:&lt;br /&gt;
##:&amp;lt;code&amp;gt;bind-address = ***.***.***.***&amp;lt;/code&amp;gt;&lt;br /&gt;
##Save and exit from the command line text editor&lt;br /&gt;
#Reboot the Mac, or restart the MySQL service from the System Preferences pane you installed earlier&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Alternative guide for Mac OS X: http://forum.xbmc.org/showthread.php?tid=151631&lt;br /&gt;
&lt;br /&gt;
=Windows=&lt;br /&gt;
== Installing MySQL on Windows ==&lt;br /&gt;
If you have chocolatey installed run &#039;&#039;&#039;choco install mysql&#039;&#039;&#039; &lt;br /&gt;
:&#039;&#039;&#039;or&#039;&#039;&#039;&lt;br /&gt;
#Download a copy of MySQL server from http://dev.mysql.com/downloads/mysql/&lt;br /&gt;
#Select &#039;&#039;Standard configuration&#039;&#039;&lt;br /&gt;
#Create a password when asked&lt;br /&gt;
#Select that you want the database to have network access when prompted during installation.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using a firewall such as the one that&#039;s built into Windows, you will need to follow the steps below for the version of windows you installed XBMC/Kodi on.&lt;br /&gt;
=== Windows 7/8/8.1 Built-in Firewall ===&lt;br /&gt;
: Run the following command in powershell or execute all the steps below.&lt;br /&gt;
  &#039;&#039;&#039;New-NetFirewallRule -DisplayName &amp;quot;Allow inbound TCP Port 3306 for MySQL&amp;quot; -Direction inbound –LocalPort 3306 -Protocol TCP -Action Allow&#039;&#039;&#039;&lt;br /&gt;
:#Go to control panel and open Windows Firewall&lt;br /&gt;
:#Click on Advanced Settings&lt;br /&gt;
:#Click on Inbound Rules, then New Rule&lt;br /&gt;
:#For the Rule Type, choose &#039;&#039;&#039;&#039;&#039;Port&#039;&#039;&#039;&#039;&#039; and hit Next&lt;br /&gt;
:#For Protocol and Ports, select TCP protocol and type in &#039;&#039;&#039;&#039;&#039;3306&#039;&#039;&#039;&#039;&#039; for the &#039;&#039;&#039;&#039;&#039;Specific local ports&#039;&#039;&#039;&#039;&#039; and hit Next&lt;br /&gt;
:#For Action, leave it at default which is &#039;&#039;&#039;&#039;&#039;Allow the connection&#039;&#039;&#039;&#039;&#039; and hit Next&lt;br /&gt;
:#For Profile, you can leave it as default (everything checked by default) and hit Next&lt;br /&gt;
:#For Name, set it to &#039;&#039;&#039;&#039;&#039;MySQL&#039;&#039;&#039;&#039;&#039; or any name that you will know what it is and click Finished&lt;br /&gt;
=== Windows XP Built-in Firewall ===&lt;br /&gt;
:#Open Control Panel and Set to &#039;Classic View&#039;&lt;br /&gt;
:#Double Click on Windows Firewall&lt;br /&gt;
:#Click on tab that says Exceptions&lt;br /&gt;
:#Click on Add Port&lt;br /&gt;
:#Name it &#039;&#039;&#039;&#039;&#039;MySQL&#039;&#039;&#039;&#039;&#039; or any other name&lt;br /&gt;
:#Set the port number to &#039;&#039;&#039;3306&#039;&#039;&#039;&lt;br /&gt;
:#Choose &#039;&#039;&#039;&#039;&#039;TCP&#039;&#039;&#039;&#039;&#039; and click OK&lt;br /&gt;
&lt;br /&gt;
== Setup users in MySQL for XBMC/Kodi clients ==&lt;br /&gt;
&lt;br /&gt;
#Open the &amp;quot;MySQL Command Line Client&amp;quot; from the MySQL start menu&lt;br /&gt;
#Enter the following commands:&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;CREATE USER &#039;xbmc&#039; IDENTIFIED BY &#039;xbmc&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;xbmc&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
#Close out the command line tool&lt;br /&gt;
&lt;br /&gt;
{{Note|If XBMC is unable to connect to the MySQL server, returning an error code [1130]:}}&amp;lt;br/&amp;gt;&lt;br /&gt;
If this occurs to you, try amending Step 2 above to read &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;xbmc&#039;@&#039;xxx.xxx.xxx.%&#039;;&amp;lt;/code&amp;gt; where xxx.xxx.xxx is the first three quadrants of your home network&#039;s IP address (192.168.1 for example) and % as the last quadrant to allow addresses on the same subnet to connect.&lt;br /&gt;
&lt;br /&gt;
=Other NAS=&lt;br /&gt;
MySQL can also be installed on some [[w:network-attached storage|network-attached storage (NAS)]] device devices. Here are some guides for various NAS devices that can have a MySQL server installed:&lt;br /&gt;
&lt;br /&gt;
*Devices running Arch Linux ARM (such as the PogoPlug, Dockstar, etc) can use the [[HOW-TO:Share libraries using MySQL/Setting up MySQL/ALARM|Arch Linux instructions]] on this page.&lt;br /&gt;
*[http://quixventure.com/2011/12/configure-a-synology-nas-as-mysql-server-for-xbmc/ Synology NAS as MySQL server for XBMC] and http://youtu.be/3PmmDtK65ks&lt;br /&gt;
*http://www.robvanhamersveld.nl/2013/02/05/share-your-xbmc-12-0-library-on-a-synology-ds-or-other-nas/ Synology DS with MySQL guide based on Frodo&lt;br /&gt;
*http://forum.xbmc.org/showthread.php?tid=172548 - unRAID&lt;br /&gt;
&lt;br /&gt;
=FreeNAS and freeBSD=&lt;br /&gt;
&lt;br /&gt;
== About FreeNAS ==&lt;br /&gt;
&lt;br /&gt;
http://www.freenas.org/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
FreeNAS is a FreeBSD based NAS system that can be run on almost any hardware - it uses ZFS for disk and file management. It is used at home and in enterprise businesses. 99% of tasks can be done via the web interface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example below is based on FreeNAS 9.1.1 on 12/12/13, and assumes you have already configured your nas with drives, datasets etc&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
=== Make a jail ===&lt;br /&gt;
&lt;br /&gt;
create a Jail via the FreeNAS webui - if unsure see here http://doc.freenas.org/index.php/Adding_Jails&lt;br /&gt;
&lt;br /&gt;
make a note of the jail IP address shown - you will need this to put in the advancedsettings.xml file on the XBMC machine later&lt;br /&gt;
&lt;br /&gt;
=== Prepare the jail ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*ssh into FreeNAS&lt;br /&gt;
**If you have a windows PC use putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) &lt;br /&gt;
**(easiest) click the &amp;quot;shell&amp;quot; button in the left of the FreeNAS webui&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
type the following commands&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;jls&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take note of the JID of the jail you created, use it in the command below and replace n with the number of the jail you just created&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;jexec n csh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install mysql ===&lt;br /&gt;
You are now inside your jail&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;pkg install mysql55-server&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;pkg install nano&amp;lt;/code&amp;gt;&lt;br /&gt;
**(nano is a text editor you will need shortly)&lt;br /&gt;
&lt;br /&gt;
We now need to enable mysql in rc.conf&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;nano /etc/rc.conf&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
insert the line below into the rc.conf file&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;mysql_enable=&amp;quot;YES&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
save the file and exit (see bottom of nano edit page for keystrokes info)&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;service mysql-server start&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Optional step below - this is an automated script that will secure you mysql instance - it will prompt you for answers to questions. Its up to you if you do this.&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;mysql_secure_installation&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure mysql ready for xbmc to use ===&lt;br /&gt;
&lt;br /&gt;
type in&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;mysql -u root -p&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You are now in mysql administration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;CREATE USER &#039;xbmc&#039; IDENTIFIED BY &#039;xbmc&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;xbmc&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;quit;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Restricting MySQL access rights=&lt;br /&gt;
&#039;&#039;&#039;Optional:&#039;&#039;&#039; &#039;&#039;&#039;If you only use the MySQL server for XBMC and that server has non-critical data on it, then this probably not necessary.&#039;&#039;&#039;&lt;br /&gt;
For a more secure MySQL installation use these 2 commands to grant permission only to databases XBMC uses. This is useful if you plan on using your MySQL server for more than just XBMC, or if you&#039;re worried about your internal network being exposed and wanting to lock things down more, etc. &lt;br /&gt;
#&amp;lt;code&amp;gt;GRANT ALL ON `MyMusic%`.* TO &#039;xbmc&#039;@&#039;%&#039; IDENTIFIED BY &#039;xbmc&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
#&amp;lt;code&amp;gt;GRANT ALL ON `MyVideos%`.* TO &#039;xbmc&#039;@&#039;%&#039; IDENTIFIED BY &#039;xbmc&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Divbox|orange||&lt;br /&gt;
The limited grants on this page don&#039;t give the xbmc user permissions to create required TRIGGERs during install or upgrade. &lt;br /&gt;
&#039;&#039;&#039;XBMC requires these TRIGGERs to function properly.&#039;&#039;&#039; &lt;br /&gt;
Use the broader grant *.* statement that is explained on the previous tabs while creating or upgrading the tables. Only restrict rights afterwards, if you need to. &lt;br /&gt;
&lt;br /&gt;
Alternatively, figure out how to specifically give the account the right to create the require TRIGGERS - this varies between MySQL versions. }}&lt;br /&gt;
&amp;lt;headertabs /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Next|[[MySQL/Setting up XBMC|Setting up XBMC]]}}&lt;br /&gt;
&lt;br /&gt;
{{Gotham updated}}&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL/Sync_other_parts_of_Kodi&amp;diff=83904</id>
		<title>MySQL/Sync other parts of Kodi</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL/Sync_other_parts_of_Kodi&amp;diff=83904"/>
		<updated>2015-01-10T21:50:56Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: {{kodi}} name changes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:MySQL/Contents}}&lt;br /&gt;
{{mininav| [[MySQL]] }}&lt;br /&gt;
{{divbox|orange||&#039;&#039;&#039;Note:&#039;&#039;&#039; Path substitution or any kind of sharing of setting files is not officially supported (with the exception of playlists). It probably won&#039;t hurt anything, but some things might not always work right depending on what you are substituting. The following settings on this page are believed to work okay, but if something doesn&#039;t work out, just copy the file instead of trying to share/pathsub it.}}&lt;br /&gt;
&lt;br /&gt;
Many things can be synced using [[path substitution]]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DO NOT TRY TO SHARE DATABASES WITH THIS METHOD.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This works with both directories and single files. The following directories and files are generally safe to share between {{kodi}} devices:&lt;br /&gt;
__TOC__&lt;br /&gt;
{{-}}&lt;br /&gt;
==Steps==&lt;br /&gt;
#Share your existing [[userdata folder]] or a new folder with those files via NFS, SMB, or AFP (make sure have write access, not just read-only access). Most users to do this from the same computer/device as the MySQL server.&lt;br /&gt;
#{{highlight|bordered=yes|Copy the text from the right hand boxes and add it to your &#039;&#039;&#039;advancedsettings.xml&#039;&#039;&#039; file, between the &amp;lt;code&amp;gt;&amp;lt;pathsubstitution&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;/pathsubstitution&amp;gt;&amp;lt;/code&amp;gt; tags.}}&lt;br /&gt;
#Note/copy the network path of your shared data folder and use that to replace &#039;&#039;&#039;PROTOCOL://YOUR_NETWORK_SHARE/kodi/userdata/&#039;&#039;&#039;, for example an SMB share holding your playlists use &amp;lt;code&amp;gt;smb://NAS/share/kodi_stuff/Playlists/&amp;lt;/code&amp;gt;&lt;br /&gt;
#Make sure all {{kodi}} devices that are being synced have this addition to their &#039;&#039;advancedsettings.xml&#039;&#039; file.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Playlists===&lt;br /&gt;
{| class=&amp;quot;infobox&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;substitute&amp;gt;&lt;br /&gt;
    &amp;lt;from&amp;gt;special://profile/playlists/&amp;lt;/from&amp;gt;&lt;br /&gt;
    &amp;lt;to&amp;gt;PROTOCOL://YOUR_NETWORK_SHARE/kodi/userdata/playlists/&amp;lt;/to&amp;gt;&lt;br /&gt;
  &amp;lt;/substitute&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
The Playlist folder in {{kodi}} contains music, video and mixed [[playlists]]. If you have imported from pre-existing media libraries then you can use your old playlist folder to save time on recreating the various playlists.  If your playlists include local file paths, you will need to edit them to use network shares instead.&lt;br /&gt;
{{-}}&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Keymaps===&lt;br /&gt;
{| class=&amp;quot;infobox&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;substitute&amp;gt;&lt;br /&gt;
    &amp;lt;from&amp;gt;special://profile/keymaps/&amp;lt;/from&amp;gt;&lt;br /&gt;
    &amp;lt;to&amp;gt;PROTOCOL://YOUR_NETWORK_SHARE/kodi/userdata/keymaps/&amp;lt;/to&amp;gt;&lt;br /&gt;
  &amp;lt;/substitute&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Useful if you want the controls on all your {{kodi}} devices to be the same. Might not be a good idea if you use different types of remotes on different devices, as you&#039;ll likely want to have individual configurations for them.&lt;br /&gt;
{{-}}&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Sources===&lt;br /&gt;
{| class=&amp;quot;infobox&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;substitute&amp;gt;&lt;br /&gt;
    &amp;lt;from&amp;gt;special://profile/sources.xml&amp;lt;/from&amp;gt;&lt;br /&gt;
    &amp;lt;to&amp;gt;PROTOCOL://YOUR_NETWORK_SHARE/kodi/userdata/sources.xml&amp;lt;/to&amp;gt;&lt;br /&gt;
  &amp;lt;/substitute&amp;gt;&lt;br /&gt;
  &amp;lt;substitute&amp;gt;&lt;br /&gt;
    &amp;lt;from&amp;gt;special://profile/mediasources.xml&amp;lt;/from&amp;gt;&lt;br /&gt;
    &amp;lt;to&amp;gt;PROTOCOL://YOUR_NETWORK_SHARE/kodi/userdata/mediasources.xml&amp;lt;/to&amp;gt;&lt;br /&gt;
  &amp;lt;/substitute&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
The sources.xml file contains a list of all the sources your media will be collected from, including both local and network-based media. This will also allow you to sync everything that is just in Files view and not in the video library.&lt;br /&gt;
&lt;br /&gt;
If an {{kodi}} device has a source that is specific to it (such as on an internal hard drive that is not shared with the rest of the devices) then you might not want to share sources.xml.&lt;br /&gt;
&lt;br /&gt;
mediasources.xml is similar to sources.xml, but only effects the options seen when you add a new source and select &amp;quot;browse&amp;quot;. It really doesn&#039;t matter much if you share this file or not.&lt;br /&gt;
{{-}}&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===RSS Feeds===&lt;br /&gt;
{| class=&amp;quot;infobox&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;substitute&amp;gt;&lt;br /&gt;
    &amp;lt;from&amp;gt;special://profile/RssFeeds.xml&amp;lt;/from&amp;gt;&lt;br /&gt;
    &amp;lt;to&amp;gt;PROTOCOL://YOUR_NETWORK_SHARE/kodi/userdata/RssFeeds.xml&amp;lt;/to&amp;gt;&lt;br /&gt;
  &amp;lt;/substitute&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
This file tells {{kodi}} what RSS feed to show on the home screen, if enabled.&lt;br /&gt;
{{-}}&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Favourites===&lt;br /&gt;
{| class=&amp;quot;infobox&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;substitute&amp;gt;&lt;br /&gt;
    &amp;lt;from&amp;gt;special://profile/favourites.xml&amp;lt;/from&amp;gt;&lt;br /&gt;
    &amp;lt;to&amp;gt;PROTOCOL://YOUR_NETWORK_SHARE/xodi/userdata/favourites.xml&amp;lt;/to&amp;gt;&lt;br /&gt;
  &amp;lt;/substitute&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
This will sync your [[favorites]] selections between all {{kodi}} devices. If the favorite depends on a file path that is specific to one  device then this might not work for the other devices.&lt;br /&gt;
{{-}}&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Network share passwords===&lt;br /&gt;
{| class=&amp;quot;infobox&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;substitute&amp;gt;&lt;br /&gt;
    &amp;lt;from&amp;gt;special://profile/passwords.xml&amp;lt;/from&amp;gt;&lt;br /&gt;
    &amp;lt;to&amp;gt;PROTOCOL://YOUR_NETWORK_SHARE/kodi/userdata/passwords.xml&amp;lt;/to&amp;gt;&lt;br /&gt;
  &amp;lt;/substitute&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
If your network shares use passwords (at least for SMB) then you will need to manually copy the passwords.xml file over to each {{kodi}} device. This file keeps track of those passwords.&lt;br /&gt;
&lt;br /&gt;
{{Gotham updated}}&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL/Setting_up_Kodi&amp;diff=83903</id>
		<title>MySQL/Setting up Kodi</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL/Setting_up_Kodi&amp;diff=83903"/>
		<updated>2015-01-10T21:39:14Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: {{kodi}} name changes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:MySQL/Contents}}&lt;br /&gt;
{{mininav| [[MySQL]] }}&lt;br /&gt;
Each device that will be sharing a library will need an [[Advancedsettings.xml|advancedsetting.xml]] file.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
{{-}}&lt;br /&gt;
==Make files accessible over the network==&lt;br /&gt;
If you haven&#039;t already done so, you will need to make your media files accessible to all your {{kodi}} devices by sharing them on the network through file sharing. {{kodi}} itself or the MySQL server will not share the actual files for this setup. Most operating systems have built-in methods for sharing files to the network, or a [[NAS]] device can be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{note|&lt;br /&gt;
*If you use passwords on your network shares then you will need to copy (or [[MySQL/Sync other parts of XBMC|sync]]) your passwords.xml file from the userdata folder to each {{kodi}} device.&lt;br /&gt;
*Do not use mapped drives on the OS-level, as {{kodi}} will see those as local drives.&lt;br /&gt;
*If you use smb:// paths, you may want to use static IP addresses rather than NetBIOS names, as not all your devices may be able to resolve the latter.&lt;br /&gt;
*&#039;&#039;&#039;Even if the media is on the same computer as one of the {{kodi}} instances, you MUST use a network share path. You cannot use a local file path with MySQL.&#039;&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See [[:Category:File Sharing]] for some of the file sharing methods that work with {{kodi}}.&lt;br /&gt;
&lt;br /&gt;
==Exporting==&lt;br /&gt;
{{see also|HOW-TO:Backup the video library|Import-export library}}&lt;br /&gt;
&lt;br /&gt;
{{note|You only need to do the exporting steps if you are migrating an existing local library to a MySQL database. The MySQL setup creates an entirely new library on the MySQL server, so this step allows you to preserve your old library and restore it once MySQL is used in {{kodi}}.}}&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;Warning:&#039;&#039;&#039; |This will create individual &amp;quot;.nfo&amp;quot; and image files along side your video files. This is considered the safest way to backup and/or migrate a library (MySQL or otherwise), but some users might not want the file clutter. For an alternative method see &#039;&#039;&#039;[[why multiple files|here]]&#039;&#039;&#039;.}}&lt;br /&gt;
&lt;br /&gt;
#Open {{kodi}} on the computer that has the library you want to share&lt;br /&gt;
##Export the Video Library by doing the following:&lt;br /&gt;
###Go to &#039;&#039;&#039;System/Settings -&amp;gt; Video -&amp;gt; Library&#039;&#039;&#039; and select &#039;&#039;&#039;Export library&#039;&#039;&#039;&lt;br /&gt;
###Select &#039;&#039;&#039;Multiple files&#039;&#039;&#039;&lt;br /&gt;
##Export the Music Library by doing the following:&lt;br /&gt;
###Go to &#039;&#039;&#039;System/Settings -&amp;gt; Music -&amp;gt; Library&#039;&#039;&#039; and select &#039;&#039;&#039;Export library&#039;&#039;&#039;&lt;br /&gt;
###Select &#039;&#039;&#039;Multiple files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==MySQL and advancedsettings.xml==&lt;br /&gt;
{| class=infobox&lt;br /&gt;
| advancedsettings.xml:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;advancedsettings&amp;gt;&lt;br /&gt;
  &amp;lt;videodatabase&amp;gt;&lt;br /&gt;
    &amp;lt;type&amp;gt;mysql&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;host&amp;gt;***.***.***.***&amp;lt;/host&amp;gt;&lt;br /&gt;
    &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;&lt;br /&gt;
    &amp;lt;user&amp;gt;xbmc&amp;lt;/user&amp;gt;&lt;br /&gt;
    &amp;lt;pass&amp;gt;xbmc&amp;lt;/pass&amp;gt;&lt;br /&gt;
  &amp;lt;/videodatabase&amp;gt; &lt;br /&gt;
  &amp;lt;musicdatabase&amp;gt;&lt;br /&gt;
    &amp;lt;type&amp;gt;mysql&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;host&amp;gt;***.***.***.***&amp;lt;/host&amp;gt;&lt;br /&gt;
    &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;&lt;br /&gt;
    &amp;lt;user&amp;gt;xbmc&amp;lt;/user&amp;gt;&lt;br /&gt;
    &amp;lt;pass&amp;gt;xbmc&amp;lt;/pass&amp;gt;&lt;br /&gt;
  &amp;lt;/musicdatabase&amp;gt;&lt;br /&gt;
  &amp;lt;videolibrary&amp;gt;&lt;br /&gt;
    &amp;lt;importwatchedstate&amp;gt;true&amp;lt;/importwatchedstate&amp;gt;&lt;br /&gt;
    &amp;lt;importresumepoint&amp;gt;true&amp;lt;/importresumepoint&amp;gt;&lt;br /&gt;
  &amp;lt;/videolibrary&amp;gt;&lt;br /&gt;
&amp;lt;/advancedsettings&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;&#039;&#039;See also this note about using the &amp;lt;name&amp;gt; tag: [[#Name tag]]&amp;lt;br/&amp;gt;&amp;lt;importwatchedstate&amp;gt; is only needed when you&#039;re importing a previous library from exported files.&amp;lt;/small&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
#Create (or add to, if you already have one) an [[Advancedsettings.xml#.3Cmusicdatabase.3E.2F.3Cvideodatabase.3E|advancedsettings.xml]] file:&lt;br /&gt;
##Open up a plain text editor&lt;br /&gt;
##Copy and paste the text from the right-hand box into a new text document&lt;br /&gt;
##Replace the two instances of &amp;lt;code&amp;gt;***.***.***.***&amp;lt;/code&amp;gt; with local network IP address of your MySQL server. If you installed MySQL on a Windows machine, do not use its NetBIOS name, as not all devices may be able to resolve them.&lt;br /&gt;
##Save the file as &#039;&#039;&#039;advancedsettings.xml&#039;&#039;&#039;&lt;br /&gt;
#Copy this &#039;&#039;advancedsettings.xml&#039;&#039; file you just created to the &#039;&#039;&#039;[[userdata folder]]&#039;&#039;&#039; of every {{kodi}} install you want to sync with.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Importing==&lt;br /&gt;
At this point {{kodi}} is using the MySQL server for the database, which means it has a new blank library. Now we can either import an old library (see below) or simply start a new library (see [[adding videos to the library]]). From this point on, {{kodi}} behaves exactly like it would as if it had a local database, except that database is on the MySQL server and multiple installs can access that single database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Open any of your installs and re-import your library data, &#039;&#039;or&#039;&#039; simply set up a new library if you are starting fresh.&lt;br /&gt;
# Add (or just &amp;quot;set content&amp;quot; on) the networked video source to {{kodi}} and scan it in as if you were setting up your library for the first time (see [[adding videos to the library]]). However, {{kodi}} will read the exported nfo files and images and use those instead of rebuilding the library from scratch. The end result will be an identical library, and your watched status for videos will be preserved.&lt;br /&gt;
#:{{Note|You must add a network source using {{kodi}}&#039;s standard formatting. For example, use &amp;quot;smb://192.168.1.20/Videos/&amp;quot; and not &amp;quot;\\BOBPC\Videos\&amp;quot;.  Try to use static IP addresses over NetBIOS names if using SMB.}}&lt;br /&gt;
# Import the Music Library by doing the following: Same idea as videos, but using the steps for [[adding music to the library]]. You&#039;ll end up with an identical library.&lt;br /&gt;
You can now add files and update the library from any of your devices and the library for all of them will stay in sync.&lt;br /&gt;
&lt;br /&gt;
== Adding new {{kodi}} devices to the MySQL setup ==&lt;br /&gt;
Since the database has now been set up on the MySQL server, all you need to do for any additional devices is add the advancedsettings.xml file. You don&#039;t need to do any of the other steps, such as rescanning or reimporting. If it works on one device then it should work on all of them, as they are basically sharing the same &amp;quot;brain&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you however used a metadata collector add-on ([[scraper]]) that does not ship by default with new installations, such as the [[Add-on:Universal Movie Scraper|Universal Movie Scraper]] you will not be able to display the [[Video_navigation#Media_information_screen|media information screen]] on the new {{kodi}} device. To fix that you need to install the same metadata collector add-on on the new device.&lt;br /&gt;
&lt;br /&gt;
==Name tag==&lt;br /&gt;
&amp;lt;section begin=&amp;quot;name tag&amp;quot; /&amp;gt;&lt;br /&gt;
An additional &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag can be used for both the &amp;lt;code&amp;gt;&amp;lt;videodatabase&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;musicdatabase&amp;gt;&amp;lt;/code&amp;gt; entries in advancedsettings.xml file, if you want to change the name of the database. The &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag is not required. {{kodi}} will use &amp;quot;MyVideos&amp;quot; and &amp;quot;MyMusic&amp;quot; as database names if the &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag is not specified. &lt;br /&gt;
&lt;br /&gt;
You may want to do this if you want to have multiple separate libraries (with different content) on the same MySQL server. For example, if you want to create multiple profiles, each with their own shared library, so that each {{kodi}} device can &amp;quot;log-into&amp;quot; that library. (a kids library, a guest library, etc)&lt;br /&gt;
&lt;br /&gt;
{{note|Don&#039;t try to merge the video and music databases! You need to use different values in the &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag or you&#039;ll end up confusing {{kodi}} leading to the library functionality not working at all. In other words, don&#039;t use &amp;lt;code&amp;gt;&amp;lt;nameKodi&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt; for both music and videos, but instead use something like &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;Kodi-music&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;Kodi-video&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
{{Gotham updated}}&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL&amp;diff=83902</id>
		<title>MySQL</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL&amp;diff=83902"/>
		<updated>2015-01-10T21:31:13Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: {{kodi}} name changes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Syncing and sharing]]}}&lt;br /&gt;
{{divbox|orange||&amp;lt;big&amp;gt;&#039;&#039;&#039;NOTICE:&#039;&#039;&#039; This is considered an advanced (complicated) and experimental feature.&amp;lt;/big&amp;gt;}}&lt;br /&gt;
{{divbox|red||{{huge|&#039;&#039;&#039;NOTICE:&#039;&#039;&#039; Every {{kodi}} &amp;quot;client&amp;quot; &#039;&#039;&#039;must&#039;&#039;&#039; run the same version of {{kodi}}.}}&amp;lt;br /&amp;gt;Otherwise they will not be sharing the same library. There can even be differences between [[development builds]], so make sure you always use the same build dates. See &#039;&#039;&#039;[[XBMC databases/Version table|Version table]]&#039;&#039;&#039; for more info. }}&lt;br /&gt;
{{:MySQL/Contents}}&lt;br /&gt;
:&#039;&#039;For simple library sharing see: &#039;&#039;&#039;[[HOW-TO:Share libraries using UPnP]]&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
[[File:Network.png|200px|left]]&lt;br /&gt;
;&amp;lt;big&amp;gt;&amp;lt;u&amp;gt;Introduction&amp;lt;/u&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot;/&amp;gt;If you have more than one {{kodi}} device on your local network then you might want to synchronize them using a MySQL library. Using a MySQL library allows you to store information about your whole video library in a central database, so that multiple devices can access the same information at the same time.&amp;lt;section end=&amp;quot;intro&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This gives you the ability to do things like:&lt;br /&gt;
* Share watched and unwatched status for your media on all devices&lt;br /&gt;
* Stop watching a movie or TV show in one room then finish watching it in another room automatically&lt;br /&gt;
* Only one library to maintain for all devices&lt;br /&gt;
&lt;br /&gt;
{{next|[[MySQL/Setting up MySQL|Setting up MySQL]]}}&lt;br /&gt;
{{Gotham updated}}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:File sharing]]&lt;br /&gt;
[[Category:Guides]]&lt;br /&gt;
[[Category:Advanced topics]]&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Share_libraries_using_UPnP&amp;diff=83901</id>
		<title>Archive:Share libraries using UPnP</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Share_libraries_using_UPnP&amp;diff=83901"/>
		<updated>2015-01-10T21:29:36Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: {{kodi}} name changes, version clarification&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[UPnP]] {{l2| [[Syncing and sharing]] }} }}&lt;br /&gt;
:&#039;&#039;For a more complex method of sharing using MySQL see &#039;&#039;&#039;[[MySQL]]&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot;/&amp;gt;[[UPnP]] sharing between two {{kodi}} devices is the easiest way to share a library. You can also share multiple libraries, one from each {{kodi}} device, to all the other devices on the same network. UPnP also takes care of file sharing, so you do not need to do anything extra even if your files are added locally to {{kodi}}.&amp;lt;section end=&amp;quot;intro&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# For {{kodi}} device A (the &amp;quot;server&amp;quot;) go to:&lt;br /&gt;
#* If using XBMC v11 &amp;quot;Eden&amp;quot;: {{highlight|bordered=yes|[[Settings/Network#Services|Settings → Network → Services]]}}&lt;br /&gt;
#* If using XBMC v12 &amp;quot;Frodo&amp;quot;, XBMC v13 &amp;quot;Gotham&amp;quot; or Kodi: {{highlight|bordered=yes|[[Settings/Services#UPnP|Settings → Services → UPnP]]}}&lt;br /&gt;
# Enable the UPnP server (&#039;&#039;&#039;Share video and music libraries through UPnP&#039;&#039;&#039;)&amp;lt;br /&amp;gt;[[File:Share_libraries_using_UPnP_-_Main_-_2_-_12.0_Frodo.png|500px]]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
# For {{kodi}} device B (the &amp;quot;client&amp;quot;) you will add device A as a [[UPnP/Media source|media source]]: {{highlight|&#039;&#039;&#039;Videos&#039;&#039;&#039; → &#039;&#039;&#039;Files&#039;&#039;&#039; → &#039;&#039;&#039;Add Videos...&#039;&#039;&#039; → &#039;&#039;&#039;Browse&#039;&#039;&#039; → &#039;&#039;(scroll down to)&#039;&#039; &#039;&#039;&#039;UPnP Devices&#039;&#039;&#039;}}&amp;lt;br /&amp;gt;[[File:Share_libraries_using_UPnP_-_Browse_UPnP_devices.png|500px]]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
# A shows up there. Open the share and then hit &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
# Give the new video source from A a name.&lt;br /&gt;
# You should now be able to see everything as it is set up on A on B.&lt;br /&gt;
&lt;br /&gt;
== Other guides ==&lt;br /&gt;
&lt;br /&gt;
=== Video guides ===&lt;br /&gt;
;UPnP sharing (as seen in XBMC v12, Frodo)&lt;br /&gt;
&lt;br /&gt;
{{youtube|EYX-8FrB1DM}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Manual]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:UPnP]]&lt;br /&gt;
[[Category:Video library]]&lt;br /&gt;
[[Category:Music library]]&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=OSMC&amp;diff=83899</id>
		<title>OSMC</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=OSMC&amp;diff=83899"/>
		<updated>2015-01-10T21:21:24Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: /* RaspBMC */ {{kodi}} name change&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Devices]] }}&lt;br /&gt;
{{to do}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;OSMC is the future name of the RaspBMC and Crystalbuntu XBMC/OS distributions, created and maintained by Sam Nazarko.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* More info on OSMC and what it is: http://forum.stmlabs.com/showthread.php?tid=15102&lt;br /&gt;
&lt;br /&gt;
= RaspBMC = &lt;br /&gt;
&lt;br /&gt;
Raspbmc is an {{kodi}} and linux-based OS distribution for [[Raspberry Pi]], created and maintained by Sam Nazarko.&lt;br /&gt;
&lt;br /&gt;
== Main features ==&lt;br /&gt;
* Custom Linux distribution with minimalised kernel.&lt;br /&gt;
* Auto-updating&lt;br /&gt;
* UI installers for Windows, Linux and Mac OS X to allow installation onto am removable device (like USB key or external Hard drive), and NFS share&lt;br /&gt;
* PVR / AirTunes / AirPlay integration&lt;br /&gt;
* Many addons will work on Raspbmc including SpotiMC for Spotify support&lt;br /&gt;
* Same stability and support as the [[Crystalbuntu]] Linux distribution&lt;br /&gt;
* AFP, NFS and SMB file sharing&lt;br /&gt;
* Configuration utility allowing installation of custom nightlies, audio configuration, update management,&lt;br /&gt;
* Server mode – allows MySQL database hosting and Thumbnail sharing for {{kodi}} multiseat systems.&lt;br /&gt;
* 1080p decoding&lt;br /&gt;
* Free!&lt;br /&gt;
&lt;br /&gt;
== Installing Raspbmc ==&lt;br /&gt;
* [http://www.raspbmc.com/wiki/user/windows-installation/ Installing via Windows]&lt;br /&gt;
* [http://www.raspbmc.com/wiki/user/os-x-linux-installation/ Installing via Mac OS X or Linux]&lt;br /&gt;
&lt;br /&gt;
== Updating Raspbmc ==&lt;br /&gt;
Raspbmc auto-updates itself, as long as version 1.0 Final (or later) is installed and the option &#039;Keep Raspbmc updated&#039; is enabled in Raspbmc settings under System Configuration.  This only takes place if the release build of {{kodi}} is being used.  If you have updated to a nightly version then you have to switch back to the release build via the Raspbmc Settings plugin for it to auto-update.&lt;br /&gt;
&lt;br /&gt;
=== How to force an update if your Pi won&#039;t update ===&lt;br /&gt;
&lt;br /&gt;
Ssh into your Pi and run the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo -s&lt;br /&gt;
cd /scripts/upd_sys&lt;br /&gt;
rm *.sh&lt;br /&gt;
wget http://svn.stmlabs.com/svn/raspbmc/release/update-system/getfile.sh&lt;br /&gt;
wget http://svn.stmlabs.com/svn/raspbmc/release/update-system/cdn_env_prep.sh&lt;br /&gt;
reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Back Up Configuration/settings ==&lt;br /&gt;
# Login to the pi and, from the /home/pi/ dir, type: &amp;lt;code&amp;gt;tar -czf backup.tar.gz .xbmc/ &amp;lt;/code&amp;gt;&lt;br /&gt;
# Transfer that file to a secondary machine (ftp, sftp, or scp are all viable options)&lt;br /&gt;
Put back the backup on the system:&lt;br /&gt;
# Return the tar file you copied in step 2 to the Raspberry Pi&lt;br /&gt;
# Run the following commands: &amp;lt;code&amp;gt; sudo initctl stop xbmc; tar -xzf backup.tar.gz; rm backup.tar.gz; sudo initctl start xbmc &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
* http://www.raspbmc.com - Project home&lt;br /&gt;
* http://forum.stmlabs.com/forumdisplay.php?fid=7 - Raspbmc support forums&lt;br /&gt;
* http://www.raspberrypi.org/archives/604- Raspbmc announcement from RaspberryPi.org&lt;br /&gt;
* [[forum:121499|forum.xbmc.org thread about Raspbmc]]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Raspberry Pi]]&lt;br /&gt;
&lt;br /&gt;
= Crystalbuntu =&lt;br /&gt;
Crystalbuntu is an easy to use XBMC and linux-based OS distribution for [[Apple TV 1]] (silver) created and maintained by Sam Nazarko. It is based on a light weight Ubuntu 12.04 LTS distribution.&lt;br /&gt;
&lt;br /&gt;
* http://crystalbuntu.com&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Apple TV 1]]&lt;br /&gt;
* [[Apple TV 1 FAQ]]&lt;br /&gt;
* [[HOW-TO:Install XBMC on Apple TV 1 (Linux)]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Apple TV 1]]&lt;br /&gt;
[[Category:Raspberry Pi]]&lt;br /&gt;
[[Category:Embedded distro]]&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:OpenELEC&amp;diff=83898</id>
		<title>Archive:OpenELEC</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:OpenELEC&amp;diff=83898"/>
		<updated>2015-01-10T21:19:57Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[General topics]]{{l2|[[Devices]]}}|[[Installing]]{{l2|[[Linux]]}}}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=intro /&amp;gt;&#039;&#039;&#039;OpenELEC&#039;&#039;&#039; (short for &amp;quot;&#039;&#039;Open Embedded Linux Entertainment Center&#039;&#039;&amp;quot;) is a free and open source, small and very fast booting, embedded operating system. OpenELEC is a complete media center software suite that comes with a pre-configured version of {{kodi}} and third-party add-ons with retro video game console emulators and PVR plugins.&amp;lt;section end=intro /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OpenELEC is also designed to be used with flash based drives, like compact flash, USB drives, or SSDs.&lt;br /&gt;
&lt;br /&gt;
OpenELEC works on most computers you can install {{kodi}} on, even the [[Raspberry Pi]] and the [[Apple TV 1]] (silver only).&lt;br /&gt;
&lt;br /&gt;
== Main features ==&lt;br /&gt;
&lt;br /&gt;
OpenELEC includes all features that {{kodi}} has to offer.&lt;br /&gt;
&lt;br /&gt;
== Installing OpenELEC ==&lt;br /&gt;
&lt;br /&gt;
A detailed guide about installing OpenELEC can be found at their wiki page: [http://wiki.openelec.tv/index.php?title=Installation Installation]&lt;br /&gt;
&lt;br /&gt;
== Updating OpenELEC ==&lt;br /&gt;
&lt;br /&gt;
A detailed guide about updating OpenELEC can be found at their wiki page: [http://wiki.openelec.tv/index.php?title=Updating_OpenELEC Updating]&lt;br /&gt;
&lt;br /&gt;
== Back Up Configuration/settings ==&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* http://www.openelec.tv&lt;br /&gt;
* [http://wiki.openelec.tv/index.php?title=Installation Installing OpenELEC]&lt;br /&gt;
* http://openelec.thestateofme.com/ - Nightly build images for Raspberry Pi&lt;br /&gt;
* http://openelec.tv/forum/20-development-discussion/67846-xbmc-gotham-generic-nightly-builds - Nightly build (Gotham) images for generic x86 platforms&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Cubox-i]]&lt;br /&gt;
* [[Raspberry Pi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Raspberry Pi]]&lt;br /&gt;
[[Category:Embedded distro]]&lt;br /&gt;
[[Category:Apple TV 1]]&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:OpenELEC&amp;diff=83897</id>
		<title>Archive:OpenELEC</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:OpenELEC&amp;diff=83897"/>
		<updated>2015-01-10T21:18:52Z</updated>

		<summary type="html">&lt;p&gt;Sharrken: /* Main features */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[General topics]]{{l2|[[Devices]]}}|[[Installing]]{{l2|[[Linux]]}}}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=intro /&amp;gt;&#039;&#039;&#039;OpenELEC&#039;&#039;&#039; (short for &amp;quot;&#039;&#039;Open Embedded Linux Entertainment Center&#039;&#039;&amp;quot;) is a free and open source, small and very fast booting, embedded operating system. OpenELEC is a complete media center software suite that comes with a pre-configured version of XBMC and third-party add-ons with retro video game console emulators and PVR plugins.&amp;lt;section end=intro /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OpenELEC is also designed to be used with flash based drives, like compact flash, USB drives, or SSDs.&lt;br /&gt;
&lt;br /&gt;
OpenELEC works on most computers you can install XBMC on, even the [[Raspberry Pi]] and the [[Apple TV 1]] (silver only).&lt;br /&gt;
&lt;br /&gt;
== Main features ==&lt;br /&gt;
&lt;br /&gt;
OpenELEC includes all features that {{kodi}} has to offer.&lt;br /&gt;
&lt;br /&gt;
== Installing OpenELEC ==&lt;br /&gt;
&lt;br /&gt;
A detailed guide about installing OpenELEC can be found at their wiki page: [http://wiki.openelec.tv/index.php?title=Installation Installation]&lt;br /&gt;
&lt;br /&gt;
== Updating OpenELEC ==&lt;br /&gt;
&lt;br /&gt;
A detailed guide about updating OpenELEC can be found at their wiki page: [http://wiki.openelec.tv/index.php?title=Updating_OpenELEC Updating]&lt;br /&gt;
&lt;br /&gt;
== Back Up Configuration/settings ==&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* http://www.openelec.tv&lt;br /&gt;
* [http://wiki.openelec.tv/index.php?title=Installation Installing OpenELEC]&lt;br /&gt;
* http://openelec.thestateofme.com/ - Nightly build images for Raspberry Pi&lt;br /&gt;
* http://openelec.tv/forum/20-development-discussion/67846-xbmc-gotham-generic-nightly-builds - Nightly build (Gotham) images for generic x86 platforms&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Cubox-i]]&lt;br /&gt;
* [[Raspberry Pi]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Raspberry Pi]]&lt;br /&gt;
[[Category:Embedded distro]]&lt;br /&gt;
[[Category:Apple TV 1]]&lt;/div&gt;</summary>
		<author><name>Sharrken</name></author>
	</entry>
</feed>