MySQL/Setting up MySQL: Difference between revisions
< MySQL
Jump to navigation
Jump to search
No edit summary |
m (I changed the colors: three times in row people who were not getting it working and asking in chat about this., Turns out they only read the green box (must be the recommended way) and missed the note. - without th triggers XBMC will not work at all.) |
||
Line 194: | Line 194: | ||
<headertabs /> | <headertabs /> | ||
{{Divbox| | {{Divbox|orange||'''Optional:''' 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're worried about your internal network being exposed and wanting to lock things down more, etc. '''If you only use the MySQL server for XBMC and that server has non-critical data on it, then this probably not necessary.''' | ||
#<code>GRANT ALL ON `MyMusic%`.* TO 'xbmc'@'%' IDENTIFIED BY 'xbmc';</code> | #<code>GRANT ALL ON `MyMusic%`.* TO 'xbmc'@'%' IDENTIFIED BY 'xbmc';</code> | ||
#<code>GRANT ALL ON `MyVideos%`.* TO 'xbmc'@'%' IDENTIFIED BY 'xbmc';</code> | #<code>GRANT ALL ON `MyVideos%`.* TO 'xbmc'@'%' IDENTIFIED BY 'xbmc';</code>}} | ||
{{Divbox|red||'''Note:''' These grants do not appear to give the xbmc user permissions to create required TRIGGERs. So either figure out how to do an additional limited grant to create TRIGGERs or use the broader grant *.* statement above. }} | |||
'''Note:''' These grants do not appear to give the xbmc user permissions to create required TRIGGERs. So either figure out how to do an additional limited grant to create TRIGGERs or use the broader grant *.* statement above. }} | |||
Revision as of 18:06, 26 May 2014
Share libraries w/MySQL, guide: |
MySQL | Setting up MySQL |
You'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.
Note: XBMC v13 seems to have fixed the issue with MySQL 5.6, making it safe to use with XBMC.
MySQL can be installed on just about every major OS:
Next step: | Setting up XBMC |