Problem: MySQL cannot create db
|
26th Jan, 2014, 02:51 AM
Post: #4
|
|||
|
|||
RE: MySQL cannot create db
unfortunately XBMC will try to create NEW DB with upgrades if structure changes. that leads to concern, that you have to give CREATE privilege but can be partially mitigated by telling XBMC to always name the DB with prefix (or instance 'xbmc_') and then you give full including create just to 'xbmc_%'
like this: INSERT INTO `db` (`Host`, `Db`, `User`, `Select_priv`, `Insert_priv`, `Update_priv`, `Delete_priv`, `Create_priv`, `Drop_priv`, `Grant_priv`, `References_priv`, `Index_priv`, `Alter_priv`, `Create_tmp_table_priv`, `Lock_tables_priv`, `Create_view_priv`, `Show_view_priv`,`Create_routine_priv`, `Alter_routine_priv`, `Execute_priv`, `Event_priv`, `Trigger_priv`) VALUES ('%','xbmc_%','xbmc','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'); second row is dbname, third what you see as 'xbmc' is user name. so in you case 'xbmc' ))) prefix is defined in db definitions in advancedsettings, like pass or user : <name>xbmc_MyVideos</name> => Code: <videodatabase> in that case xbmc will always alter only number and lla version will have name xbmc_MyVideos or Music. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
MySQL cannot create db - thebestneo - 26th Jan, 2014, 01:40 AM
RE: MySQL cannot create db - mk01 - 26th Jan, 2014, 02:24 AM
RE: MySQL cannot create db - thebestneo - 26th Jan, 2014, 02:30 AM
RE: MySQL cannot create db - mk01 - 26th Jan, 2014 02:51 AM
RE: MySQL cannot create db - thebestneo - 26th Jan, 2014, 04:29 AM
RE: MySQL cannot create db - mk01 - 26th Jan, 2014, 05:20 AM
RE: MySQL cannot create db - thebestneo - 26th Jan, 2014, 06:04 AM
RE: MySQL cannot create db - mk01 - 26th Jan, 2014, 12:59 PM
RE: MySQL cannot create db - thebestneo - 26th Jan, 2014, 08:50 PM
RE: MySQL cannot create db - thebestneo - 28th Jan, 2014, 06:31 AM
RE: MySQL cannot create db - teekay - 28th Jan, 2014, 06:44 AM
R: RE: MySQL cannot create db - thebestneo - 28th Jan, 2014, 06:53 AM
RE: MySQL cannot create db - thebestneo - 1st Feb, 2014, 09:10 PM
RE: MySQL cannot create db - thebestneo - 2nd Feb, 2014, 08:03 PM
|