MacPorts with Current SQL Server instance

For discussion of topics specific to MythTV on OSX
Post Reply
eauh
Newcomer
Posts: 1
Joined: Mon Dec 29, 2014 6:13 am
United States of America

MacPorts with Current SQL Server instance

Post by eauh »

I am trying to follow the instructions to install MythTV from the MscPorts .dmg that was created (instructions: http://www.mythtv.org/wiki/MacPorts).

I am unable to successfully run this step in Terminal:
mysql -u root < /opt/dvr/share/mythtv/database/mythconverg_init.sql
I get the following error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/dvr/var/run/mariadb/mysqld.sock' (2)


I've done a lot of research and found out that do not have the org.macports.mysql5.plist file in my LaunchDaemons folder either.

And, as you can imagine, I am unable to run the MythTV Setup without getting the database connection error.

Through reading, Craig (pvr4me) has mentioned several times that the MacPort installation has SQL server already bundled and if one has a separate instance of SQL then they need to uninstall it so MythTV stops getting confused. Is their a work around because uninstalling the instance of SQL I already have is not an option.

Any help is appreciated

-Ian
User avatar
pvr4me
Senior
Posts: 763
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada
Contact:
Canada

Re: MacPorts with Current SQL Server instance

Post by pvr4me »

The plist problem sounds like http://www.mythtv.org/wiki/MacPorts#Known_issues Please confirm that you got the 2014-10-24 version of the installer:

http://sourceforge.net/projects/macport ... g/download
(419.3 MB download)

Now, you want to run MySQL on the same box as MythTV? What version of MySQL (or fork) are you currently using? How did you install it (dmg, MacPorts, Homebrew)? Myth via MacPorts uses MariaDB 5.5. Is there a reason you can't move your existing database to it once you get Myth up and running? What application are you supporting with this database?

It is _possible_ to run two different database servers on the same box but is somewhat advanced and is NOT a supported configuration for Myth via MacPorts. IOW, I put enough hours making Myth work with the delivered database...if you want to make it work in a different environment, I'll give you a few suggestions and pointers but you'll have to basically solve your own problems.

Craig
Formerly the MacPorts guy.
Post Reply