I'm working on a program that include user log-in and sign-up. I'm using MySQL with HeidiSQL app which is free. I can use my app in my own pc but when I start it an another pc it doesn't even connect to database. I want to make a setup program which contains my app and mysql installer. I want to setup mysql to my customers' computer so they can all have their own databases and connect to them. How can i achieve this?
My connection string is:
public MySqlConnection mysqlbaglan = new MySqlConnection("Server=localhost;Database=x;Uid=root;Pwd='';");
You should rethink your architecture. You could try SQLite which is portable and does not need installation as a server.
Check out this relevant SO question.