[mythtv-users] mysql database setup help

Joe Ripley vitaminjoe at gmail.com
Tue Aug 15 23:07:39 UTC 2006


Although you probably already know this, I'll say it for those reading this
that may not:

The command 'mysql -u root < mc.sql' runs the MySQL client program (mysql)
and logs into the database as user 'root' (-u root).  The '< mc.sql' portion
redirects the file 'mc.sql' into the mysql client program.  The 'mc.sql'
file contains all of the necessary SQL commands to properly create the
database and insert the initial data.

You can view the SQL statements by simply doing 'cat mc.sql'.

Of course, the above commands will only work if they can find 'mc.sql',
which is assumed to be in the current working directory.

- Joe

On 8/15/06, Jake Sallee <spark at breathedeeply.com> wrote:
> I knew what the error meant, it was fine.  I'm not that much of a
> newbie.  ;)
> What I think is misleading about the documentation I've found for
> installing
> mythtv, both on the mythtv.org wiki and from the guide i was using, was
> that
> the instructions said, "to setup the initial database, run this
> command:  /usr/share/mythtv/database> mysql -u root < mc.sql"
> I was under the impression by running that command, mysql was going to
> create
> database "mc.sql", especially since mc.sql didn't exist in the database
> directory.  So, I ran locate and found the file
> in /usr/share/doc/packages/mythtv/database/mc.sql
> That is what stumped me.
> --
> Jake Sallee spark at breathedeeply.com
> www.breathedeeply.com
> Registered Linux User #358012 http://counter.li.org
> Open SuSE Linux http://www.opensuse.org
> K Desktop Environment http://www.kde.org
> Firefox Web Browser http://www.mozilla.org/firefox
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060815/da06b6f4/attachment.htm 

More information about the mythtv-users mailing list