Insert button Code and Mysql data to be save and display in grdiview

Mohamed Rafi N 106 Reputation points
2022-03-17T11:49:08.293+00:00

I am very new and using visual studio community 2000 and mysql work bench 8.0,

I am having 3 textbox names like textbox1,2,3 and 1 insert button and 1 data gridview for saving data in mysql database, i need code for insert button..

This is mysql coding:

SELECT * FROM testdb.employee;
insert into testDB.employee(employee_id,employee_name,employee_salary) Values ('123','RAFI','10000')
insert into testDB.employee(employee_id,employee_name,employee_salary) Values ('456','RAJESH','20000')
insert into testDB.employee(employee_id,employee_name,employee_salary) Values ('789','RAMESH','30000')
select * from testDB.employee

I don't know how to connecting string and where to write for database connection for mysql workbench 8.0 and visual studio community 2022 pls send me step procedure

Azure Database for MySQL
Developer technologies | ASP.NET Core | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    2 deleted comments

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.