Great article but there are a few security concerns:
Firstly *never* store a database username and password in the App.Config file, there should always be a dialog box asking for it.
Secondly, *never* use the "root" user in an application, it is very insecure and this example assumes you don't even have a root user password. Create a new DB user like so:
Lastly, before running the SQL script to create the table. Edit the itemsdb.sql file and add this line to the very top of it:
USING inventorydb ;
If you don't, then your new table will either not be created at all, or it will be created in another of your databases and you will have to hunt it/find it/then delete it.
How you can add reference for MySql.Data (If It gives Error/Warning)
Delete MySql.Data from references of Your project(If Unable to do read last lines first)
Then
Right Click on project in solution explorer
Choose Add Reference
Click Browse from top menu
Go to c->program files->MySql->MySQL Connector Net->Assemblies->v2.0->
You will find here MySql.Data click it
Enjoy
Click +sign of references of your project (this is below the project name in solution explorer)..
You will find MySql.Data with a yellow sign. If it is not found follow above instructions to add it.. If it is found without yellow sign.. Then your reference to MySql.Data is already OK