Perform a file
check against the _mysql.so
file:
% file _mysql.so
_mysql.so: Mach-O 64-bit bundle x86_64
Make sure that it is compiled for the right architecture on the Macs on which it is not working. If you are trying to use it on any PowerPC (PPC) Macs, you will need to re-compile MySQLDB as a Universal binary.
For example, a Universal binary (such as the pre-installed version of Python) would look like this:
% file /usr/bin/python
/usr/bin/python: Mach-O universal binary with 3 architectures
/usr/bin/python (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/bin/python (for architecture i386): Mach-O executable i386
/usr/bin/python (for architecture ppc7400): Mach-O executable ppc
So to answer your question: Yes, it seems like you might have compiled the module without Universal support, however I can't answer this definitively without more information.