Good morning everyone, I have this problem when I try to connect to a computer where I install XAMPP
to host a database server MYSQL
locally and also a database for a clock checker, through PHPMYADMIN
if I can access the database, tables and records, but I need to develop an interface where the payroll manager can filter the check records, entering the database server remotely by means of the address IP
of the team, then I leave the code I'm using.
MySqlConnection cadenaconexion;
/*Abrir conexión con la BD*/
public Conexion()
{
try
{
//conectado = false;
cadenaconexion = new MySqlConnection ("Server=1.1.1.1;Database=relojchecador;Uid=root;Pwd=password,Port=3306");
cadenaconexion.Open();
//conectado = true;
MessageBox.Show("Se realizo la conexión con exito");
}
catch (Exception ex)
{
ex.ToString();
}
}
Thanks again for your valuable help and being able to establish the connection correctly.