DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-11-01 20:12:49

profm2
Member
Registered: 2008-11-14
Posts: 18

Mediatomb and MySQL?

Ok, after a long night of getting MySQL, PHP, and Mediatomb all up and running correctly, I want to now switch Mediatomb from using the SQLite database to MySQL.

In the config.xml file I added the SQL support ...

Code:

<storage>
  <sqlite3 enabled="no">
    <database-file>mediatomb.db</database-file>
  </sqlite3>
  <mysql enabled="yes">
    <host>localhost</host>
    <port>3306</port>
    <username>mediatomb</username>
    <password>mediatomb</password>
    <database>mediatomb</database>
  </mysql>
</storage>

However, when I attempt to restart Mediatomb, I get the following error:

Code:

Starting /ffp/bin/mediatomb -d --interface egiga0  --home /ffp/var --cfgdir mediatomb --add /mnt/HD_a2/Media
2009-11-01 11:09:15    INFO: Loading configuration from: /ffp/var/mediatomb/config.xml
2009-11-01 11:09:15    INFO: Checking configuration...
2009-11-01 11:09:15   ERROR: You disabled both, sqlite3 and mysql but one database driver must be active!

So my current best guess, is that MySQL is not currently compiled in the ffp 0.5 version of Mediatomb ... is that correct?  and will I have to recompile it with MySQL support?

Offline

 

#2 2009-11-02 11:47:49

oxygen
Member
Registered: 2008-03-01
Posts: 320
Website

Re: Mediatomb and MySQL?

you can check with ldd `which mediatomb` if it's compiled with mysql support, then it should say sth like libmysqlclient_r.so.15. but you are probably right, that it's not compiled in.

Offline

 

#3 2009-11-03 06:53:58

profm2
Member
Registered: 2008-11-14
Posts: 18

Re: Mediatomb and MySQL?

Well, it's "/ffp/bin/mediatomb" ... so its v0.11.0-5 (I believe), and I wasn't sure if "all" the options are in there.

Code:

/ # ldd /ffp/bin/mediatomb
ldd: can't open cache '/ffp/etc/ld.so.cache'
        libiconv.so.2 => /ffp/lib/libiconv.so.2 (0x4000e000)
        libmagic.so.1 => /ffp/lib/libmagic.so.1 (0x400f5000)
        libsqlite3.so.0 => /ffp/lib/libsqlite3.so.0 (0x40110000)
        libz.so.1 => /ffp/lib/libz.so.1 (0x40174000)
        libexpat.so.1 => /ffp/lib/libexpat.so.1 (0x40191000)
        libstdc++.so.6 => /ffp/lib/libstdc++.so.6 (0x401b6000)
        libm.so.0 => /ffp/lib/libm.so.0 (0x402ab000)
        libgcc_s.so.1 => /ffp/lib/libgcc_s.so.1 (0x402c6000)
        libpthread.so.0 => /ffp/lib/libpthread.so.0 (0x402d8000)
        libc.so.0 => /ffp/lib/libc.so.0 (0x402f2000)
        ld-uClibc.so.0 => /ffp/lib/ld-uClibc.so.0 (0x40000000)

Just as you suggested ... no mysql.  Thanks.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB