mysqlxpcom 
Note: missed info about MySQL explorer installation...
- Get sources from Mozilla Project
- Compile Mozilla for your platform. Help available.
Note that you _must_ compile Mozilla on MacOS X from sources as Mach-O build to use mysqlxpcom.
Mozilla switching to Mach-O build as default for MacOS X though...
- Download sources for mysqlxpcom via CVS
- In the 'mozilla' directory of Mozilla sources edit or create file named
.mozconfig
Put the following line there:
ac_add_options --enable-extensions=mysqlxpcom
The line might look like this for you:
ac_add_options --enable-extensions=xmlterm,your_own_extension,mysqlxpcom
- Mozilla 1.3a
- In the 'mozilla' directory of Mozilla sources edit file named
allmakefiles.sh
Put lines just after block started with add_makefiles "
MAKEFILES_mysqlxpcom="
extensions/mysqlxpcom/Makefile
extensions/mysqlxpcom/src/Makefile
extensions/mysqlxpcom/public/Makefile
"
In the loop started with for extension in $MOZ_EXTENSIONS; do add
mysqlxpcom ) MAKEFILES_extensions="$MAKEFILES_extensions
$MAKEFILES_mysqlxpcom"
;;
In the loop started with for mod in $BUILD_MODULES; do (at the end of the file) add
mysqlxpcom) add_makefiles "$MAKEFILES_mysqlxpcom" ;;
- Copy
src/mysqlxpcom dir for mysqlxpcom project to mozilla/extensions/
- Edit
mozilla/extensions/mysqlxpcom/src/Makefile.in to locate mysql libs and headers on your platform
- Run
make -f client.mk in mozilla dir. You may run ./configure and make instead
- Run Mozilla and open
resource:///res/mysql/example.html to test mysqlxpcom
- To create .xpi file run
make xpi in mozilla/extensions/mysqlxpcom/src