Kodi Community Forum

Full Version: How to resolve Drobo MySQL database view Issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have come across a couple of issues regarding the Drobo NAS devices and their native MySQL ported app and have created fixes for them.

Issue #1: MySQL on Drobo may fail installation and "Stop" halfway through. Re-installing may not work and restarting the device has no effect. Although there is already a thread regarding this issue, the "fix" given for it does not work for everyone.

Issue #2: After starting MySQL on the Drobo and granting all necessary MySQL permissions to the XBMC/Kodi user, XBMC/Kodi library views (tvshowview, movieview, episodeview, musicvideoview, etc..) may not be created or populated when the databases are made. When this happens, selecting a library such as Movies or TV Shows within XBMC/Kodi will result in the user being presented with the "genre, title, year..." view rather than the library content view.

This is because proper access hasnt been granted by the MySQL application for all the tables that the SQLite3 format in XBMC/Kodi uses and therefore certain tables, in this case "views", are not created. MySQL 5.6 is more SQL-2003 compliant and therefore has more data security that previous mySQL editions did not.


Issue #1 Resolution
Anyone who owns a Drobo NAS and is planning on using it for an XBMC/Kodi source and MySQL Server should know that the Drobo port of the Perl App needs to be installed manually before the installation of MySQL can be completed. Sometimes however; As stated previously, even when installing Perl first, the MySQL installation may ultimately fail and re-installing MySQL or restarting the Drobo or PC may not resolve the issue.

That Is where this thread comes in.

There are some consistency issues with the newest Drobo Perl5 application and the Drobo MySQL 5.6 app that prevents MySQL installation from completing.
To solve this and allow MySQL to install completely and begin running, perform the following actions:

1. Uninstall MySQL if it has been partially installed or has stopped running.
2. Copy the "Perl5" folder to the same DroboApps directory it is already in and rename the copy "Perl" without the 5. Do not delete the original "Perl5" folder. Both directories are needed for this fix to work. There should now be a "Perl" and "Perl5" folder in the DroboApps directory.
3. Restart the MySQL installation and it should complete successfully and begin running on its own.
4. SSH into the Drobo MySQL app and create the XBMC/Kodi user and grant all necessary permissions. There is another thread that explains how to do this.

The MySQL 5.6 application sometimes looks for data in both the "Perl" and "Perl5" folders for installation. I do not know why this is. The information is obviously identical. MySQL installation scripts for the Drobo ported app may not have been updated properly to call upon data in directories of newer Perl versions.

Issue #2 Resolution
Because the Drobo port for MySQL has been updated to 5.6 there are some inherent issues with XBMC/Kodi compatibility. One of these issues pertains to certain access rights that are denied to applications attempting to alter or create tables externally. If you are one of the few people having issues accessing your library views or saving the content settings for your XBMC/Kodi source folders, follow these steps:

1. Access your DroboApps folder and find the MySQL application directory. Inside locate the folder titled "etc" and open it.
2. Within the "etc" folder there is a file titled "my.cnf". Open this file using notepad or Notepad++
3. Locate the line that says "mysql mode = "
4. In the parameters that follow remove these two strings: "STRICT_TRANS_TABLES" and "ONLY_FULL_GROUP_BY". Be sure to remove the "," if there is one before the first, or after the last parameter in that section. These parameters prevent some access to table modifications in MySQL even if the user has been granted full access to make changes.
5. Log into your MySQL app and remove any schemas that were already created in your Drobo MySQL database.
6. Make sure your XBMC/Kodi "advancedsettings.xml" points your XBMC/Kodi application to the Drobo's MySQL database. Setting the host by IP is the best practice
7. Open XBMC/Kodi, create/set content for your source directories and scan for content.
8. Once some media files have been added to your library like Movies or TV Shows, open one and see if the proper content view opens.


I hope this helps. I spent a long time trying to resolve these issues myself and there were not alot of topics on the web that provided good answers.
First of all, thanks so much for this post. I spent all weekend on this issue. I was able to get this working on Windows MySQL, but I was determined to get it working on my Drobo. One suggestion I would make, to fix the perl5 issue, I would just create sym link

ln -s perl perl5


This way you do not touch code or have duplicate files, etc.


Again,thanks so much for your post. I just wish I found it sooner. I was looking on the drobo forms most of the the time... Since it was drobo issue.


Kyle