Compiler errors when using database

 

Hi, I don't understand why I have errors when compiling.. someone can help me please? In the documentation there's anything that can help me..

I attach the screenshot.

Files:
screenshot.jpg  287 kb
 

You haven't included the database library!

Follow the example from here: 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)
  • www.mql5.com
The problem of interaction of MQL with databases is not new, however it's still relevant. Use of databases can greatly enhance the possibilities of MetaTrader: storage and analysis of the price history, copying trades from one trading platform to another, providing quotes/trades in real time, heavy analytical computations on the server side...
 
What MT5 build are you using ?
 
Mirc0s:

Hi, I don't understand why I have errors when compiling.. someone can help me please? In the documentation there's anything that can help me..

I attach the screenshot.

Insert: 
#include <MQLMySQL.mqh>

 
Carl Schreiber:

You haven't included the database library!

Follow the example from here: https://www.mql5.com/en/articles/932

This is not the same thing that I want to use, this is what I want to use: https://www.mql5.com/en/docs/database
Documentation on MQL5: Working with databases
Documentation on MQL5: Working with databases
  • www.mql5.com
An important feature of this engine is that the entire database is placed in a single standard file located on a user's PC. Simplicity of implementation is achieved by the fact that the database file is locked before the file write transaction starts. Several...
 
Alain Verleyen:
What MT5 build are you using ?
I'm using the 2286 build
 
tomm73:
Insert: 

I don't have the file "MQLMySQL.mqh" so it doesn't work..
 
Mirc0s:
I don't have the file "MQLMySQL.mqh" so it doesn't work..
Did you even read the link? It's a github project
 

I want to use SQLite like in the Documentation at this link: https://www.mql5.com/en/docs/database but I think that the author forgot a step because it doesn't work.

I need to use SQLite, so the link is useless because it talks about MySQL that is a different thing and I don't need it.

Documentation on MQL5: Working with databases
Documentation on MQL5: Working with databases
  • www.mql5.com
An important feature of this engine is that the entire database is placed in a single standard file located on a user's PC. Simplicity of implementation is achieved by the fact that the database file is locked before the file write transaction starts. Several...
 

Anyway you have to include the library (you want/need) firstly as tommy73 has shown!

Then see whether your library compiles or not!

BTW to say I need this means probably that you have to code it yourself - or you accept the (ready made) solutions provided by MQ or some users!

 

Please guys I ask for a solution, not for answer that doesn't help, please.

I'm not a beginner (I'm a programmer with many years of experience, but I start programming MQL recentrly) and I already thought that I need to include something. So my problem is what?

I'm not able to find anything usefull in the Documentetaion at this link: https://www.mql5.com/en/docs/database so If someone can help me with usefull information I really appreciate it, thank you!

Documentation on MQL5: Working with databases
Documentation on MQL5: Working with databases
  • www.mql5.com
An important feature of this engine is that the entire database is placed in a single standard file located on a user's PC. Simplicity of implementation is achieved by the fact that the database file is locked before the file write transaction starts. Several...
Reason: