Welcome to the Linux Foundation Forum!
Mediatomb Mysql Socket!
5slight
Posts: 10
I have installed mediatomb on my Linux From Scratch server. I have compiled it to use mysql not msqlite as i don't want to have multiple database servers running. My problem is that when i execute mediatomb i get this:
2011-04-07 08:43:48 ERROR: The connection to the MySQL database has failed: mysql_error (2002): "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"
My mysql socket is set to /var/lib/mysql in the config file. I have no problem connecting to this via mysql client on the system. I need to know how to configure mediatomb to use that file.
Thanks in advance! ![]()
0
Comments
-
0
-
I have read most of the manual thats relevant i think. i can't find anything referring to mysql sockets. I have managed to get it to work by making my mysql server start using /tmp/mysql.sock. Is this a sensible idea or should i continue to find a way to make mediatomb use a different socket?
Also my next problem is making my clients find it. If i disable iptables i can get it to find it and play something then i can re-enable iptables and it will continue to play. I think this is to do with the protocol igmp.# Enable Mediatomb $ip -A INPUT -p tcp -m tcp --dport 49152 -j ACCEPT $ip -A OUTPUT -p tcp -m tcp --sport 49152 -j ACCEPT $ip -A INPUT -p udp -m udp --dport 49152 -j ACCEPT $ip -A OUTPUT -p udp -m udp --sport 49152 -j ACCEPT $ip -A INPUT -p udp -m udp --dport 1900 -j ACCEPT $ip -A OUTPUT -p udp -m udp --sport 1900 -j ACCEPT $ip -A INPUT -p tcp -m tcp --dport 1900 -j ACCEPT $ip -A OUTPUT -p tcp -m tcp --sport 1900 -j ACCEPT $ip -A INPUT -p igmp -j ACCEPT $ip -A OUTPUT -p igmp -j ACCEPT
When i check the status igmp doesn't show!0
Categories
- All Categories
- 176 LFX Mentorship
- 176 LFX Mentorship: Linux Kernel
- 750 Linux Foundation IT Professional Programs
- 373 Cloud Engineer IT Professional Program
- 169 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 4 DevOps & GitOps IT Professional Program
- 99 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 1 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 3 Cloud & Containers Training
- 1 Cybersecurity Training
- 1 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 1 Open Source Best Practice Training
- 1 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 768 Linux Distributions
- 81 Debian
- 67 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 946 Programming and Development
- 310 Kernel Development
- 618 Software Development
- 981 Software
- 373 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)