EdgarWallace Posted September 9, 2014 Share Posted September 9, 2014 My issue is that I can't access the db from any remote host, hence XBMC can't even create the db. I don't know how to understand needos FIRST TIME USERS GUIDE which is saying: "A completely empty database will be generated upon first run. You must secure it by creating users and passwords." These are the required steps in general (XBMC Wiki: Setting up MySQL): Get into the MySQL command line utility: $mysql -u root -p Enter the following commands: Type in: CREATE USER 'xbmc' IDENTIFIED BY 'xbmc'; and press return Type in: GRANT ALL ON *.* TO 'xbmc'; and press return Close out the command line tool with \q But how can this be done? Quote Link to comment
PeterB Posted September 9, 2014 Share Posted September 9, 2014 I am also unable to utilise my existing XBMC database when using needo's MariaDB docker. The problem seems to be that there are values specified in the my.cnf file which conflict with the existing database. The MariaDB docker will start up and run fine with the database/configuration as delivered, however, as soon as I point it at my existing database, the docker fails with an error that the size of the ib_logfile0 size conflicts with the size specified in my.cnf. For the time being, I have reverted to MariaDB running in an ArchVM. I think you can delete that logfile and mariadb will create it when it starts. No, it's not a 'standard' logfile. It does actually hold data/table definitions. I tried substituting the ib_logfile0 which comes with the docker container and the system complained of many missing definitions. Quote Link to comment
eroz Posted September 9, 2014 Share Posted September 9, 2014 I am also unable to utilise my existing XBMC database when using needo's MariaDB docker. The problem seems to be that there are values specified in the my.cnf file which conflict with the existing database. The MariaDB docker will start up and run fine with the database/configuration as delivered, however, as soon as I point it at my existing database, the docker fails with an error that the size of the ib_logfile0 size conflicts with the size specified in my.cnf. For the time being, I have reverted to MariaDB running in an ArchVM. I think you can delete that logfile and mariadb will create it when it starts. No, it's not a 'standard' logfile. It does actually hold data/table definitions. I tried substituting the ib_logfile0 which comes with the docker container and the system complained of many missing definitions. PeterB, take a look at this. http://octathorpeweb.com/blog/2012/06/12/fixing-innodb-error-log-file-ib_logfile0-is-of-different-size-error/ Another thing might be that InnoDB might not be an enabled plugin in needo's MariaDB. Quote Link to comment
eroz Posted September 9, 2014 Share Posted September 9, 2014 My issue is that I can't access the db from any remote host, hence XBMC can't even create the db. I don't know how to understand needos FIRST TIME USERS GUIDE which is saying: "A completely empty database will be generated upon first run. You must secure it by creating users and passwords." These are the required steps in general (XBMC Wiki: Setting up MySQL): Get into the MySQL command line utility: $mysql -u root -p Enter the following commands: Type in: CREATE USER 'xbmc' IDENTIFIED BY 'xbmc'; and press return Type in: GRANT ALL ON *.* TO 'xbmc'; and press return Close out the command line tool with \q But how can this be done? EdgarWallace, I used HeidiSQL, a mySQL gui, to create users and grant privileges. Quote Link to comment
EdgarWallace Posted September 9, 2014 Share Posted September 9, 2014 eroz, I'm using Sequel Pro which is the Mac app that is doing the same. However, you need a user and password to access the database. What userid/password combination have you used initially? Quote Link to comment
eroz Posted September 9, 2014 Share Posted September 9, 2014 eroz, I'm using Sequel Pro which is the Mac app that is doing the same. However, you need a user and password to access the database. What userid/password combination have you used initially? I believe it was root and no password. Quote Link to comment
EdgarWallace Posted September 10, 2014 Share Posted September 10, 2014 eroz, this was the hint that was needed. To give something back to the community let me summarize a step-by-step approach for those who want to migrate their MariaDB from any existing VM to Docker: [*]start HeidiSQL (Windows) or Sequel Pro (Mac), open the existing database of your VM. Export both music and movie databases as SQL files [*]write down all accounts/permissions that you might need [*]install needos MariaDB [*]open your new MariaDB instance (user: root, NO password) with HeidiSQL/Sequel Pro and add users/passwords/permissions as written down in step 2 [*]change the IP of your advancedsettings.xml file (must be the IP of your server, e.g. <host>192.168.178.10</host>) [*]fire up XBMC (this will create the databases) [*]shut down XBMC [*]open HeidiSQL/Sequel Pro once more, select the movie database and import the content of your movies.sql file that has been exported in step 1 [*]do the same for the music database [*]you are done Quote Link to comment
eroz Posted September 10, 2014 Share Posted September 10, 2014 eroz, this was the hint that was needed. To give something back to the community let me summarize a step-by-step approach for those who want to migrate their MariaDB from any existing VM to Docker: [*]start HeidiSQL (Windows) or Sequel Pro (Mac), open the existing database of your VM. Export both music and movie databases as SQL files [*]write down all accounts/permissions that you might need [*]install needos MariaDB [*]open your new MariaDB instance (user: root, NO password) with HeidiSQL/Sequel Pro and add users/passwords/permissions as written down in step 2 [*]change the IP of your advancedsettings.xml file (must be the IP of your server, e.g. <host>192.168.178.10</host>) [*]fire up XBMC (this will create the databases) [*]shut down XBMC [*]open HeidiSQL/Sequel Pro once more, select the movie database and import the content of your movies.sql file that has been exported in step 1 [*]do the same for the music database [*]you are done Awesome! Glad you got it worked out. And I'm sure your steps will help someone else out and still apply if you are moving from docker to VM. Quote Link to comment
EdgarWallace Posted September 10, 2014 Share Posted September 10, 2014 I'm pretty happy with Docker - I don't think to move back to VMs. At least not for Airvideo and MariaDB Next is to migrate my ownCloud from a Debian VM under XEN to Docker. I will only keep my Windows VMs but migrating from XEN to KVM and the ArchVM as test environment. Thanks again eroz. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.