Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MariaDB and xbmc

Featured Replies

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?

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.

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.

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.

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?

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.

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:

  1. [*]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

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:

  1. [*]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.

I'm pretty happy with Docker - I don't think to move back to VMs. At least not for Airvideo and MariaDB  :D

 

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.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.