<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Sep 23, 2015 at 1:58 PM Paul Stillwell <<a href="mailto:bigboi@wackywombats.com">bigboi@wackywombats.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>I’m trying to build a new backend system. I backed up the database and then saved it on an external drive. I then installed a new hard drive and installed Fedora 22 and then installed mythtv from RPMFusion. I read this link <a href="https://www.mythtv.org/wiki/Backend_migration#Building_a_new_backend_to_replace_an_existing_machine" target="_blank">https://www.mythtv.org/wiki/Backend_migration#Building_a_new_backend_to_replace_an_existing_machine</a> which basically said all I need to do after installing myth is to restore the backup. I tried to restore the backup with <a href="http://mythconverg_restore.pl" target="_blank">mythconverg_restore.pl</a> and I get an ‘Unable to connect to database’ error. Do I need to run the restore command with the —create_database option or should I do something else?</div></div></blockquote><div><br></div><div>Yes, you would need to create the DB.  Also, if you have not done so, you need to get mysql daemon up and running -- set the password, etc. before the restore script will be able to write to the DB.</div><div><br></div><div>For example:</div><div>mysql> create user 'mythtv'@'192.168.1.%' identified by 'mythtv';</div><div>mysql> set password for 'mythtv'@'192.168.1.%' = password('mythtv'); </div><div>mysql> grant all on mythconverg.* to 'mythtv'@'192.168.1.%' identified by 'mythtv';</div><div>mysql> flush privileges;</div><div><br></div><div>Also remember to run (at least for Fedora):</div><div>$ mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql --user=root -p mysql</div><div>to get the timezone configured correctly.</div><div><br></div><div>John</div><div><br></div><div><br></div><div><br></div></div></div>