connection problem to my database in C# and MySql

Mar 2 2017 8:17 PM
Hello friends my name is Stalin and I have a connection problem to my database
I made a software and I connect through my local database;
When I install it on others PCs in my environment, the connection fail and prints this error:
Error: "host" Stalin-PC "is not allowed to connect to this mysql server"
 
My connection is via App.exe.config with the "System.Data.SqlClient" extension.
This is my connection. I did it dynamically for this reasons :
1) Connection to the database
2) License by installation date.
3) Disappear the button that makes possible the creation of the connection
 
 
Note: The language is C # (WPF) and Mysql (AppServer)

Answers (3)