1. No user installed addons are supported, python or otherwise.
2. No, they really are not supported.
3. They are not coming back
4. Read from 1. again

Any mention of illegal streaming sites, addons or any pirated material will not be tolerated. This is not democracy and any offenders will be banned and posts deleted immediately without warning.

Other than that, we hope you enjoy MrMC so far and we welcome any input and feedback you might have.

Team MrMC.

MySQL GUI Config Not Working

Report any issues you might have in here
Post Reply
virtuallysafe
Posts: 4
Joined: 05 Nov 2015, 08:54

MySQL GUI Config Not Working

Post by virtuallysafe »

Hi Davilla and Amet.

Love your work. I'm a long time XBMC / Kodi user and have been using a MySQL DB for many years. Having just purchased MrMC I am having issues configuring the MySQL connection though the new GUI. My standard advancedsettings.xml working config (from a number of cross platform hosts) is as follows:

Code: Select all

    <videodatabase>
        <type>mysql</type>
        <host>Kodi-Database</host>
        <port>3306</port>
        <user>xbmc</user>
        <pass>xbmc</pass>
        <name>Kodi_Video</name>
    </videodatabase> 

    <musicdatabase>
        <type>mysql</type>
        <host>Kodi-Database</host>
        <port>3306</port>
        <user>xbmc</user>
        <pass>xbmc</pass>
        <name>Kodi_Music</name>
    </musicdatabase>
 
When enabling this through the GUI, I get a KAI Toast dialog stating 'Couldn't open database". My MySQL server has the following databases:

Code: Select all

    kodi_music54
    kodi_music55
    kodi_music56
    kodi_video93
    kodi_video94
    kodi_video96
    kodi_video97
    kodi_video99
I have tried changing the server dns name to an IP address (which does resolve), changed the case of the database names.

Any suggestions? Is there a way to get more verbose logs off the ATV4?

As always, appreciate the help.
Last edited by virtuallysafe on 09 Dec 2015, 05:25, edited 1 time in total.
User avatar
amet
Team MrMC
Posts: 3787
Joined: 26 Oct 2015, 16:59
Location: Dubai/Novi Sad

Re: MySQL GUI Config Not Working

Post by amet »

Hi,

Have you tried entering database names lowercase? If database doesn't exist it would create it.... As a test, see what happens on server if you put some random DB name

Unfortunately no easy way to get logs, we are looking into options
virtuallysafe
Posts: 4
Joined: 05 Nov 2015, 08:54

Re: MySQL GUI Config Not Working

Post by virtuallysafe »

Hi Amet.

Yep, had already tried the differing case.

Additional troubleshooting steps:

Tried new (non exiting) video and music db names in the setting GUI, enabled:
No new databases created
"Couldn't open database" error

Killed application

Configured settings again (Server = 192.168.30.20, Username = xbmc, Password = xbmc)
Enabled config again
application hung (symptom, 'Working...' Spinner frozen)
No new databases created

Killed application

FYI, mysql permissions are as follows:

Code: Select all

mysql> SELECT host,user from mysql.user;
+-----------+------+
| host      | user |
+-----------+------+
| %         | xbmc |
| localhost | root |
+-----------+------+
2 rows in set (0.03 sec)
virtuallysafe
Posts: 4
Joined: 05 Nov 2015, 08:54

Re: MySQL GUI Config Not Working

Post by virtuallysafe »

Further to the above, my MySQL version is 5.5.35.
User avatar
amet
Team MrMC
Posts: 3787
Joined: 26 Oct 2015, 16:59
Location: Dubai/Novi Sad

Re: MySQL GUI Config Not Working

Post by amet »

Hm,

its been reported working by others, let's see why it's not working for you.

Check if user "xbmc" is allowed to connect from any ip(or specifically the one ATV is on)

Edit: I see permissions now...
virtuallysafe
Posts: 4
Joined: 05 Nov 2015, 08:54

Re: MySQL GUI Config Not Working

Post by virtuallysafe »

amet wrote: Check if user "xbmc" is allowed to connect from any ip(or specifically the one ATV is on)
Thanks Amet, to confirm I can ping the ATV address from the SQL Server IP address. So likely no network issues in the way...
Post Reply