Discussion of article "How to Access the MySQL Database from MQL5 (MQL4)" - page 6

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello, which version of MT5 terminal you are using?
Which version of MT5 terminal you are uses?
Please try latest update of MQLMySQL libraries, attached here.
Hello, which version of MT5 terminal you are using?
Which version of MT5 terminal you are uses?
please try latest update of MQLMySQL libraries, attached here.
Maybe you have libmysql.dll in different locations in your operating system.
If you have libmysql.dll in %WINDOWS%\SYSTEM32 folder, you have to delete it from MT4\MQL4\Experts\Libraries
so the only one dll have to be used.
The one terminal attaches the library once, even if expert advisor used for different charts. so, the reason is different.
The MQLMySQL.dll uses mutexes for accessing internal shared data, so it's also can't be a reason.
If you can, please provide me with the MQL code you are uses to raise such situation and the build number of MT4, I will try to test it and deliver the solution.
I will try to test it and deliver the solution.
Maybe you have libmysql.dll in different locations in your operating system.
If you have libmysql.dll in %WINDOWS%\SYSTEM32 folder, you have to delete it from MT4\MQL4\Experts\Libraries
so the only one dll have to be used.
The one terminal attaches the library once, even if expert advisor used for different charts. so, the reason is different.
The MQLMySQL.dll uses mutexes for accessing internal shared data, so it's also can't be a reason.
If you can, please provide me with the MQL code you are uses to raise such situation and the build number of MT4, I will try to test it and deliver the solution.
I will try to test it and deliver the solution.
MQL CODE is collect mt4 data to the mysql table, when use in one mt4 in only one, it is ok, when use four or more in two mt4, it print Access violation read to 0x00000002 in ... \MQLMySQL.dll'
Maybe you have libmysql.dll in different locations in your operating system.
If you have libmysql.dll in %WINDOWS%\SYSTEM32 folder, you have to delete it from MT4\MQL4\Experts\Libraries
so the only one dll have to be used.
The one terminal attaches the library once, even if expert advisor used for different charts. so, the reason is different.
The MQLMySQL.dll uses mutexes for accessing internal shared data, so it's also can't be a reason.
If you can, please provide me with the MQL code you are uses to raise such situation and the build number of MT4, I will try to test it and deliver the solution.
I will try to test it and deliver the solution.
I used mysql memory table, is it the problem? ENGINE=MEMORY
MQL CODE is collect mt4 data to the mysql table, when use in one mt4 in only one, it is ok, when use four or more in two mt4, it print Access violation read to 0x00000002 in ... \MQLMySQL.dll'
MySqlDisconnect(DB);
the database disconnection needed, but it's still not solve the problem.
Can you provide the source code of your EA/Script?
MQL CODE is collect mt4 data to the mysql table, when use in one mt4 in only one, it is ok, when use four or more in two mt4, it print Access violation read to 0x00000002 in ... \MQLMySQL.dll'
senddata.mq4 11 kb
The sendata.mq4 is my uploaded EA source code.
Can you provide the source code of your EA/Script?
I used three DB connect, but I used the same DB, is it need to create new DB for any new database CRUD?