Use MySQL as Data Source
The following guide shows the steps to implement a Cute Chat and Web messenger with
.
.
1. Download Cute Chat and Web Messenger MySQL Database
It can be downloaded at
http://richscripts.com/download/MySQL_CuteChat.zip.
It contains the following files:
- MySqlDataProvider.cs
- MySqlDataProvider.sql
2. Execute MySqlDataProvider.sql against your MySQL Database.
3. MySqlDataProvider.cs should be deployed to your project.
4. In the custom ChatProvider class, override the CreateDataProvider method:
public override IAppDataProvider CreateDataProvider(AppPortal portal)
{
return new MySqlDataProvider(portal
,"Server=localhost;Database=CuteChat4;User ID=root;Password=root;charset=utf8;", "CuteChat4_");
}
MySQL dll for ASP.NET
Please make sure you are using the latest MySQL dll for ASP.NET. It can be downloaded from http://www.mysql.com/downloads/connector/net/.