1. Add Sql Config Data
<?xml version="1.0"?>
      <logger Type="elmah2.MySql.MySqlLogger, elmah2.MySql" ConnectionString="TestDB" Name="Dev-MySql" />
    <add name="TestDB" connectionString="Server=localhost;Database=elmah;Uid=AppLogin;Pwd=AppLogin;"/>

  • The ConnectionString attributereferences the connection name in the connectionstrings section, this is required
  • The Name attribute gives the logger a name and is required, also needs to be unique

2. Add the following lines to the <assembly> section on web.config
<add assembly="elmah2.MySql" />
<ass assembly="MySql.Data" />
  • You can either add the reference here or reference the assemblies directly in the web project

3. Download the required 3rd party library
MySql .netconnector http://www.mysql.com/downloads/connector/net/ v6.2+

Last edited Jun 16, 2010 at 1:39 AM by iamkrillin, version 2


No comments yet.