MySQL/Portable devices and profiles: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Ewillems
>Ewillems
Line 63: Line 63:
</nowiki></pre>
</nowiki></pre>


See for more information
See [[HOW-TO:Sync_multiple_libraries/Setting_up_XBMC|Setting up XMBC]] for more information.




Source:
Source:
*[[forum:92807|forum:92807- Roaming Profiles]]
*[[forum:92807|forum:92807- Roaming Profiles]]

Revision as of 21:09, 5 February 2012

HOW-TO:Sync multiple libraries/Contents

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.

First create two profiles. Configure one profile for local use (while travelling) and one using a central database.

Create profiles

Configure the Master User profile:

  • Open the Profile settings
  • Modify the Master User profile
  • Rename the profile, for example "Local" or "Mobile"

Configure the Second profile:

  • Create a new profile
  • Enter a name for the second profile, for example "Network"
  • Accept the default profile path
  • Select "Separate" for "Media info" and "Media sources"
  • Enable the login screen to select a profile on startup

See Profiles for more information about the profile feature.

Configure the Local (or Master) profile

Configure the Master user profile, using a local database. Create a new file: "advancedsettings.xml" in the default userdata directory.

<advancedsettings>

<musicdatabase>
  <type>sqlite3</type>
  <host>/var/mobile/Library/Preferences/XBMC/userdata/Database</host>
  <name>MyMusic7</name>
</musicdatabase>

<videodatabase>
  <type>sqlite3</type>
  <host>/var/mobile/Library/Preferences/XBMC/userdata/Database</host>
  <name>/MyVideos34</name>
</videodatabase>

</advancedsettings>

Configure the Network profile

Restart XBMC and select the Network profile. This creates the profile directory. Then exit XBMC. Create a new file "advancedsettings.xml" in the userdata/profiles/Network directory:

<advancedsettings>
    <videodatabase>
        <type>mysql</type>
        <host>***.***.***.***</host>
        <port>3306</port>
        <user>xbmc</user>
        <pass>xbmc</pass>
    </videodatabase> 

    <musicdatabase>
        <type>mysql</type>
        <host>***.***.***.***</host>
        <port>3306</port>
        <user>xbmc</user>
        <pass>xbmc</pass>
    </musicdatabase>
</advancedsettings>

See Setting up XMBC for more information.


Source: