Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] MySQL cannot create db
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: MySQL cannot create db
26th Jan, 2014, 02:51 AM
Post: #4
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
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' Smile)))

prefix is defined in db definitions in advancedsettings, like pass or user :

<name>xbmc_MyVideos</name> =>
Code:
<videodatabase>
                    <type>mysql</type>
                    <host>192.168.0.110</host>
                    <port>3306</port>
                    <user>xbmc</user>
                    <password>xbmc</password>
<name>xbmc_MyVideos</name>
            </videodatabase>
          
            <musicdatabase>
                    <type>mysql</type>
                    <host>192.168.0.110</host>
                    <port>3306</port>
                    <user>xbmc</user>
                    <password>xbmc</password>
<name>xbmc_MyMusic</name>
            </musicdatabase>

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
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


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

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 30th Jun, 2025, 04:45 AM Powered By MyBB, © 2002-2025 MyBB Group.