How to Connect Mono with MySql
The box where I test this was a Fedora Core 2 Kernel 2.6.10-1.12
I used the mono installer available at HERE
* I installed it in /opt/mono/monobundle
* Run the XSP server from the command line: /opt/mono/monobundle/bin/xsp
* Edit an index.aspx page on /opt/mono/monobundle/bin:
<%@ Import namespace="System" %>
<%@ Import namespace="System.Data" %>
<%@ Import namespace="System.Web" %>
<%@ Assembly name="ByteFX.Data" %>
<%@ Import namespace="ByteFX.Data.MySqlClient" %>
Pagina de Inicio
Notes: I tried using the latest MySql .Net Connector
but so far I can't make the XSP Server see the assembly.
Actually, this example is working with driver that came along with the mono installer, workis w/o problems
Hope this helps others...
regards,
-eduardo s.m.