On 5/18/07, David Southwell <[EMAIL PROTECTED]> wrote:
Hi

How do I configure trac to use  mysql rather than sqlite??

You'll need to make the following changes to the ports Makefile:

1. Add `MYSQL      "Use MySQL instead of SQLite3" Off \' to OPTIONS

2. Make the following change to the database selection code:

.if defined(WITH_PGSQL)
RUN_DEPENDS+=   
${PYTHON_SITELIBDIR}/psycopg2/__init__.py:${PORTSDIR}/databases/py-psycopg2
.elif defined(WITH_MYSQL)
RUN_DEPENDS+=   
${PYTHON_SITELIBDIR}/MySQLdb/__init__.py:${PORTSDIR}/databases/py-MySQLdb
.else
RUN_DEPENDS+=   
${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20
.endif

NOTE: the trac website says that MySQL support is experimental.

Scot
--
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to