Send trades to a MySQL database

 
I would like to send each trade opened/closed from my MT5 client to a MySQL database. Like i am issuing trading signals to that database. How can i do that? I am a beginner with MQL5.
 
See https://www.mql5.com/en/articles/932
How to Access the MySQL Database from MQL5 (MQL4)
How to Access the MySQL Database from MQL5 (MQL4)
  • 2014.10.21
  • Eugeniy Lugovoy
  • www.mql5.com
The article describes the development of an interface between MQL and the MySQL database. It discusses existing practical solutions and offers a more convenient way to implement a library for working with databases. The article contains a detailed description of the functions, the interface structure, examples and some of specific features of working with MySQL. As for the software solutions, the article attachments include the files of dynamic libraries, documentation and script examples for the MQL4 and MQL5 languages.