Interact with MySQL Server using mysql2 gem [Part 2] - Insert and Update Operations
![cover: Interact with MySQL Server using mysql2 gem [Part 2] - Insert and Update Operations](/static/dfcdc58ee52c3e04f331cfb32e31ae7e/1ea6f/interact-with-mysql-server-using-mysql2-gem-part-2-insert-and-update-operations.webp)
In this part, we will learn about how we can insert and update records to the external mysql server using mysql2 gem. We will add two new methods to our service that can insert and update records to mysql server using mysql2 gem.