| Summary: | MythTV init script does not start mythtv due to variations in mysql.txt locations | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | MasterC <MasterCLC> |
| Component: | Current packages | Assignee: | Television related Applications in Gentoo's Portage <media-tv> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | major | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://forums.gentoo.org/viewtopic-t-327940-highlight-mysql+txt.html | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
MasterC
2005-06-24 12:50:39 UTC
If you server is local then this is due to the fact that you're MySQL instance is not starting because of a permissions problem with your MySQL directories. The new MySQL requires that the owner be mysql:mysql and not root:mysql. If you want to change the location of the MySQL server please use myth-setup. (In reply to comment #1) > If you server is local then this is due to the fact that you're MySQL instance > is not starting because of a permissions problem with your MySQL directories. > The new MySQL requires that the owner be mysql:mysql and not root:mysql. > If you want to change the location of the MySQL server please use myth-setup. The mythbackend is both local and remote from other frontends, but the mysql implementation is remote for both mythbackend and the frontends. The problem is not with mysql. You can start mythbackend directly from the command line and it works without a hitch. Read about MySQL before commenting. Right here in your error message... "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)" That's a local socket. That's the proper file for Gentoo's MySQL. Which means that if it can't connect to it via that file, then your MySQL is not running. Due to recent upgrades with the MySQL ebuild, some people have had the issue that I described above and it was fixed with the instructions I provided. You did not specify in your report whether the MySQL server was local or remote which is why I covered both bases. Considering that the directory /var/run/mythtv is not used by the initscript NOR by mythtv, you are once again incorrect. The proper file to edit is /etc/mythtv/mysql.txt, which happens to be the mysql.txt file that MythTV uses. If you want you can edit /usr/share/mythtv/mysql.txt if you want, since it's only a symlink to /etc/mythtv/mysql.txt Closing this bug as invalid. (In reply to comment #3) > Read about MySQL before commenting. > Right here in your error message... "Can't connect to local MySQL server through > socket '/var/run/mysqld/mysqld.sock' (2)" > That's a local socket. That's the proper file for Gentoo's MySQL. Which means > that if it can't connect to it via that file, then your MySQL is not running. > Due to recent upgrades with the MySQL ebuild, some people have had the issue > that I described above and it was fixed with the instructions I provided. > You did not specify in your report whether the MySQL server was local or remote > which is why I covered both bases. > Considering that the directory /var/run/mythtv is not used by the initscript NOR > by mythtv, you are once again incorrect. > The proper file to edit is /etc/mythtv/mysql.txt, which happens to be the > mysql.txt file that MythTV uses. If you want you can edit > /usr/share/mythtv/mysql.txt if you want, since it's only a symlink to > /etc/mythtv/mysql.txt > Closing this bug as invalid. I appreciate your responses. I must have not been as clear as I had thought. The problem is that the file mentioned gets modified/overwritten back to a generic mysql.txt (/var/run/mythtv) upon reboot. If I edit /etc/mythtv/mysql.txt or any other mysql.txt on the entire system, upon reboot, the init script does not start, and it shows that error. IF I don't reboot, indeed it works. I must have made the point that the init script is overwriting the file, I meant to ask for the init script to point to a mysql.txt that isn't overwritten. Thanks for all your hardwork. No mysql.txt files should be overwritten. They definitely aren't being overwritten by the init script. Also, this doesn't seem to be happening to anyone else. I think you need to track down what's overwriting it yourself since we can't reproduce this. |