[mythtv-users] 0.26 upgrade "no database selected"

Steven Adeff adeffs.mythtv at gmail.com
Wed Oct 3 15:52:17 UTC 2012


On Wed, Oct 3, 2012 at 10:59 AM, Martin Moores <moores.martin at gmail.com> wrote:
> On 3 October 2012 15:53, Steven Adeff <adeffs.mythtv at gmail.com> wrote:
>> it's a packaging issue with Ubuntu. you have to manually edit the
>> post-install script for the mythdatabase package with your specific
>> information. I put it in manually as I didn't want to take the time to
>> figure out how they're "extracting" the info. It's really quite
>> annoying.
>>
>
> Steve,
>
> Thanks for the reply!  The thought did cross my mind that these could be
> edited, but where abouts are they located?  No idea where to start looking.
>
> Many thanks
>
> Martin

/var/lib/dpkg/info/mythtv-database.postinst

search for 'case "$1"' it should be line 74, you'll see where you can
manually place your database info. I think you also need to fix the
permissions for remote frontends to be able to connect. I'll figure
that out for sure the next time I do a package update.

case "$1" in
    configure)
    . /usr/share/debconf/confmodule

    db_get mythtv/mysql_mythtv_dbname
    database="HERE"

    db_get mythtv/mysql_mythtv_user
    mythtv_username="HERE"

    db_get mythtv/mysql_mythtv_password
    mythtv_password="HERE"

    db_get mythtv/mysql_admin_user
    admin_username="HERE"

    if [ "$admin_username" = "debian-sys-maint" ]; then
        SECURITY_INFO="--defaults-file=/etc/mysql/debian.cnf"
    else
        db_get mythtv/mysql_host
        hostname="HERE"

        db_get mythtv/mysql_admin_password
        admin_password="HERE"

        if [ "$admin_password" != "" ]; then
            admin_password="-p$admin_password"
        fi
        SECURITY_INFO="--host=$hostname --user=$admin_username $admin_password"
    fi


-- 
Steve
http://www.mythtv.org/wiki/User:Steveadeff
Before you ask, read the FAQ!
http://www.mythtv.org/wiki/Frequently_Asked_Questions
then search the Wiki, and this list,
http://www.gossamer-threads.com/lists/mythtv/
Mailinglist etiquette - http://www.mythtv.org/wiki/Mailing_List_etiquette


More information about the mythtv-users mailing list