MySql

wwBusiness also supports the MySql Open Source database as one of the data providers. You can download the latest MySql Server and the OleDb and ODBC drivers from here:

http://www.mysql.com/downloads/

There are a actually several ways to access MySql from .Net in general:

You can use all three approaches with wwBusiness. However, the last is the only one that provides reliable operation as the OleDb and ODBC drivers have a number of problems with data type conversions and lack of useful error reporting.

The wwDataMySql class

The wwBusiness classes include a wwDataMySql class which can utilize the ByteFX managed MySql assemblies. To use this class you must do the following:


Note:
wwBusiness supports MySql. However, due to data type issues we have not provided a version of a MySql database that works with the Web Store at this time.


Issues we've found

The driver and class combination works well together, but if you're mixing or converting from existing systems (especially SQL Server) you will find a number of type conversion issues. It appears it doesn't translate Bool values - it uses TinyInt which are treated as byte values that can't be coerced into a boolean value. Text values and nulls too behave differently than they do in Sql Server. The bottom line is that if you start from scratch with MySql you can check for proper types from the start and just work around these issues (such as always making sure you use numeric comparisons instead of bools), but if you're porting an existing application from SQL Server there will be a number of changes required. For this reason MySql support is not provided for the Web Store with Data.


 Last Updated: 8/23/2004 | Send topic feedback