MySQL/Portable devices and profiles: Difference between revisions
>Ewillems No edit summary |
>Ewillems |
||
Line 43: | Line 43: | ||
== Configure the Network profile == | == 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: | 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: | ||
<pre><nowiki> | |||
<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> | |||
</nowiki></pre> | |||
See for more information | |||
Source: | Source: | ||
*[[forum:92807|forum:92807- Roaming Profiles]] | *[[forum:92807|forum:92807- Roaming Profiles]] |
Revision as of 21:08, 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 for more information
Source: