sorry sir, I amend it, this is only wrong type...
anyway, I have change to , still can not make change(cant connect)...
 )?  Show us the exact code you're using and tell us exactly what happens.  If there's an exception thrown when you try to connect then give us the exact error message.  Don't be vague because we only know what you tell us so you have to tell us everything that's relevant and precisely.
)?  Show us the exact code you're using and tell us exactly what happens.  If there's an exception thrown when you try to connect then give us the exact error message.  Don't be vague because we only know what you tell us so you have to tell us everything that's relevant and precisely.
using System;using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MySql.Data;
using MySql.Data.MySqlClient;
namespace Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            
            
             //String connectingstring = "Server=127.0.0.1;Port=3306;UID=root;PWD=123;Database=test";
            //-> code previously above for using connect to localhost(PC of standalone) and there nothing problem , then connection was success full..
             
            String connectingstring = "Server=192.168.0.2;Port=3306;UID=root;PWD=123;Database=test"; 
           //--> this is I used to connect to Server MariaDB(CentOS) via LAN and could not to be connected.
            MySqlConnection conn = new MySqlConnection(connectingstring);
            try
            {
                conn.Open();
                MessageBox.Show("Connected successfull");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
    }
}
