Edgewall Software

Changes between Version 52 and Version 53 of MySqlDb


Ignore:
Timestamp:
Aug 2, 2010, 7:13:57 PM (14 years ago)
Author:
Dennis McRitchie <dmcr@…>
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • MySqlDb

    v52 v53  
    9898 - [http://mysql-python.svn.sourceforge.net/viewvc/mysql-python/tags/MySQLdb-1.2.2/MySQLdb/site.cfg?revision=499&view=raw MySQLdb-1.2.2/MySQLdb/site.cfg]
    9999
     100Note that even if you build MySQLdb to use the thread-safe libraries, ''About Trac'' may still report that it is not thread-safe. If that happens, verify that it is thread-safe by calling MySQLdb.thread_safe() from a standalone Python script (i.e., not under apache). If the stand-alone test reports that MySQLdb is indeed thread-safe, then the problem may lie with the PHP module. For example, the Red Hat rpm for PHP is built to use the non-thread-safe MySQL libraries, and the apache PHP module apparently gets loaded first. So when python and MySQLdb load, they end up using the already loaded MySQL libraries, which are not thread-safe. The circumvention for this problem is to replace the non-thread-safe libs in /usr/lib/mysql with soft links, so as to have the non-thread-safe lib names point to the thread-safe libs, restart apache, and now Trac should be running in thread-safe mode.
    100101
    101102== Conversion Procedures == #Conversion