Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string _MySQLConnetedString = "server=localhost;user=root;database=plast-service;password =";
- string _MySQLCommandString = "INSERT INTO `accounts` (id, name, password, email) VALUES ('', '123', '456', '789');";
- MySqlConnection _MySQLConnected = new MySqlConnection(_MySQLConnetedString);
- try
- {
- _MySQLConnected.Open();
- MySqlCommand _MySQLCommand = new MySqlCommand(_MySQLCommandString, _MySQLConnected);
- _MySQLConnected.Close();
- MessageBox.Show("Вы зарегистрировались.");
- }
- catch
- {
- MessageBox.Show("При регистрации произошла ошибка, свяжитесь с разработчиком.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement