MySQL: Using FogBugz for Windows With MySQL on Windows

Applies to FogBugz 6 Only

If you intend to use MySQL on Windows with your FogBugz installation, please carefully read every line in this guide. Many headaches are created for users who think they have MySQL working, only to find one month later that, for example, large email attachments are inexplicably failing or Japanese characters aren't showing up correctly.

Some key things will be put in red text below, because many readers of this guide skip over them.

Before you Get Started

Versions of MySQL That We Have Tested:

Configuring MySQL for FogBugz Use

Create a System DSN

Once MySQL is running, go to:

Windows Start Menu > Settings > Control Panel > Administrative Tools > Data Sources (ODBC)

Make sure you click the System Tab, as shown here:

 

Create a new MyODBC System DSN named FogBugz.

Do not just try to use a connection string (e.g. ODBC) instead of a System DSN. FogBugz needs this DSN because it handles things like type conversion, needed by VBScript.

You must select the following options:

  • "Don't Optimize Column Width"
  • "Return Matching Rows"
  • "Change BIGINT Columns to INT"
  • "Disable Transactions"

Screenshots:

Create the FogBugz Database 

If you are not importing your FogBugz trial database:

Create a new empty database in MySQL. We use and recommend MySQL Control Center, these instructions will describe using this tool. You can do everything on the command line if you prefer.   

  • Expand Databases folder
  • Right click on Databases folder, choose New Database, name it Fogbugz
  • Double click on the new Fogbugz database
  • Click the SQL icon on the menu bar
  • Go to File > Open
  • Open the mysql.sql file in your accessories folder, e.g. C:\Program Files\FogBugz\accessories\mysql.sql)
  • Click the exclamation point icon on the menu bar to run this script
  • This file creates the needed tables in your new FogBugz database

If you are importing your FogBugz trial database:

Follow the steps in this guide.

Connect FogBugz to MySQL

  • Run FogBugz setup, choosing Access as your database type. 
  • Log in as Administrator and click on Site (top right). Find the Database settings and change that to ODBC, and just type in the name of the System DSN you created: FogBugz.

If you get an error at this point that says "cannot connect to database" be sure that the permissions for the FogBugz user are set correctly in IIS by following this guide.

If you still get errors, please go back to the top of this guide and read it again. Every time someone encounters a problem with MySQL, we update this guide to better address that problem in the future. It's very comprehensive. Oh, and remember to pay close attention to the parts in red! :)

If you do not get errors, and you are able to log in, FogBugz is now running against the MySQL database! Pat yourself on the back and go have some ice cream. (Note: it will ask you to reinstall your licenses, which you can safely do.)