Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi-
i am trying to get mythtv running, but seem to be having some trouble with databases. Mythtv requires mysql, which i have installed, but i apparently dont understand how to set it up properly. Every command regarding either mythtv or mysql yields the same error:
Code:
myk@linux:~> mythfilldatabase
Unable to connect to database!
Driver error was [1/2002]:
QMYSQL3: Unable to connect
Database error was:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
couldn't open db
myk@linux:~>
how do i get this database going?
Please advise if more information is needed.
Thanks,
-myk
as root it's something like:
mysql -p < /usr/share/mythtv/mysql/mc.sql
that will set up the database access and users. that's not the right command though... only similar to that... i'm sure the path is wrong. also make sure mysql is actually running
myk@linux:~/Downloads/mythtv/mythtv-0.16/database> mysql -p < mc.sql
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
myk@linux:~/Downloads/mythtv/mythtv-0.16/database>
I would think there would be a problem w/ your install of mysql. I am currently using SuSE 9.1 and have done the install through FTP and had no problems w/ MySQL when I installed it. So I would recomend reinstalling it through YaST and see what is going on. Then start it up. COnnect via mysql -u USERNAME -p PASSWORD and create the databases.
nope. you should have a service script /etc/init.d/mysqld probably, run that with a "start" parameter. alterntivaly i'm sure yast can start it for you.
okay, i understand. I'll check the runlevel editor in yast. This determines startup services. I can also enable and disable services while running here. Will post back after i get home tonight.
myk@linux:~> mythtv
Unable to connect to database!
Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user: 'mythtv@localhost' (Using password: YES)
couldn't open db
myk@linux:~> mythbackend
Unable to connect to database!
Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user: 'mythtv@localhost' (Using password: YES)
Couldn't open database
myk@linux:~>
dont know what to do. I am trying to read through these directions, but they are a little too plentiful..
Here what I did to install and get the mysql database running under SuSE 9.2. They assume a basic understanding of SuSE 9.2 and Yast.
Install the MySql database in Yast. You will need the database, the database client and the devel files.
Once they are installed you will need to go into the runlevel editor in Yast and start MySQL. The quotations, and %, and ; in the commands are necessary, be sure to include them.
Now in a console as user root (su) run the commands below.
cd /usr/share/mythtv/database
mysql < mc.sql
mysql -u root mythconverg
Your prompt will look different now because you are in the mysql command prompt.
mysql> grant all on mythconverg.* to mythtv@"%" identified by "mythtv";
mysql> flush privileges;
mysql> \q
Again as user root in a console, restart the database
/etc/init.d/mysql restart
Once the database has restarted you can then start to setup mythtv
still having some trouble. I have subscribed at Zap2it for TV listings, placed my username and password in MythTV for the setup, setup my tvtuner/video device as best as i could figure out... i get a green screen with static, and it cant seem to import any channels.. here's an excerpt from console after running "mythfilldatabase"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.