Using the database settings in MPNews, you can store all the messages in your newsgroups in a MySQL database. This can help improve performance, simplify backing up your server and allows you to integrate your newsgroups with other systems and reporting tools.
Download the driver
MPNews requires the "Connector/Net" driver for MySQL, which you can download free from
http://www.mysql.com/products/connector/net/. Install this before continuing.
Setting up the database
You must first create and configure the database to use in MySQL. You can either use an existing database or create a new one; you will normally use a new database for MPNews.
Create a new database in the mysql command line tool by entering the command:
mysql> CREATE DATABASE MPNews;
Query OK, 1 row affected (0.00 sec)
Securing the database
Normally, the only thing that needs direct access to the database is MPNews itself. You can create a new user account for MPNews to use by entering the command:
mysql> GRANT ALL ON MPNews.* TO
MPNews@localhost IDENTIFIED BY 'password';
Query OK, 0 rows affected (0.11 sec)
Configuring MPNews
Log in to the main MPNews administration site, select the "Storage" option and select the "Database" option.
Ensure the "Supported database types" option is selected, and select the "MySQL" option from the drop down list.
Enter the connection string Server=localhost;Database=MPNews;User ID=username;Password=password, replacing the values as appropriate to match the server, database, login and password you are using in SQL Server.
Set the "Named parameter prefix" option to ? and click on "Save"
Back on the main Storage screen, change the "Currently selected storage engine" to "Database".
Finished
MPNews is now set up to use a MySQL database. It will have created the tables it requires in the database automatically, and you can use standard MySQL tools to read the data it creates for your own purposes. For example, you can use some simple queries to produce reports of how many messages are posted by each user, over a certain size, at what time of day and much more.