Noob first time installing - problem starting db

For discussion of topics specific to MythTV on OSX
Post Reply
cirnek
Newcomer
Posts: 1
Joined: Sat Dec 06, 2014 6:49 am
United States of America

Noob first time installing - problem starting db

Post by cirnek »

Trying to set up a hackintosh (Intel NUC) to be a HTPC with MythTV running with the HDHomeRun Extend. Successfully installed OS X 10.10.1 and downloaded the latest MythTV macports installer (10/24/2014). Ran the installer, set up the PATH as per the cook book instructions. Went through the next four terminal instructions to set up the database and when I checked the Activity Monitor, mysqld was not running. I noticed that the mariadb folder was not accessible, but not sure if that's relevant or not. Not sure where to go from here. I've deleted /opt/dvr and Macports from Applications and tried to reinstall/restart the process, but the same results occur. Any help is appreciated. Thanks, Kenric.

Here's my terminal output:

Code: Select all

$ sudo -u _mysql mysql_install_db
Password:
Installing MariaDB/MySQL system tables in '/opt/dvr/var/db/mariadb' ...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'/opt/dvr/lib/mariadb/bin/mysqladmin' -u root password 'new-password'
'/opt/dvr/lib/mariadb/bin/mysqladmin' -u root -h Marlene-Chings-iMac.local password 'new-password'

Alternatively you can run:
'/opt/dvr/lib/mariadb/bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.

You can start the MariaDB daemon with:
cd '/opt/dvr' ; /opt/dvr/lib/mariadb/bin/mysqld_safe --datadir='/opt/dvr/var/db/mariadb'

You can test the MariaDB daemon with mysql-test-run.pl
cd '/opt/dvr/mysql-test' ; perl mysql-test-run.pl

Please report any problems at http://mariadb.org/jira

The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Support MariaDB development by buying support/new features from
SkySQL Ab. You can contact us about this at sales@skysql.com.
Alternatively consider joining our community based development effort:
http://mariadb.com/kb/en/contributing-to-the-mariadb-project/

$ sudo cp /opt/dvr/share/mythtv/database/my.cnf /opt/dvr/etc/mariadb
Password:
$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.mariadb-server.plist
$ mysql -u root < /opt/dvr/share/mythtv/database/mythconverg_init.sql
User avatar
pvr4me
Senior
Posts: 763
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada
Contact:
Canada

Re: Noob first time installing - problem starting db

Post by pvr4me »

Thanks for providing the Terminal log. No obvious errors indicated.

In Activity Monitor, you have to switch to view All Processes. Another way to confirm, however, is to use the following command:
'ps -Ax |grep mysqld'. My output:

Code: Select all

$ ps -Ax |grep mysqld
15948 ??         0:00.44 /opt/local/bin/daemondo --label=mariadb-server --start-cmd /opt/local/lib/mariadb/bin/mysqld --user=_mysql ; --pid=exec
15949 ??         2:05.03 /opt/local/lib/mariadb/bin/mysqld --user=_mysql
17364 ttys000    0:00.00 grep mysqld
If you get similar output, you're good to go.

Craig
Formerly the MacPorts guy.
Post Reply