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

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
Yes, this is known problem, because basically ASCII encoding was used. Now I'm working on UTF encoding support to fix this problem.
This is working for me very well..
Can anyone help me insert data by calling a stored procedure?
What are the correct methods.. Other SQLConnection usages define parameters as such:
command.Parameters.Add("@ID", SqlDbType.Int);
command.Parameters["@ID"].Value = customerID;
Thanks in advance.
Tom
This is working for me very well..
Can anyone help me insert data by calling a stored procedure?
What are the correct methods.. Other SQLConnection usages define parameters as such:
command.Parameters.Add("@ID", SqlDbType.Int);
command.Parameters["@ID"].Value = customerID;
Thanks in advance.
Tom
This can be done just using something like this: MySqlExecute(DB, "call YourProc("+(string)customerID+")")
Binding variables is not supported
For x64 platform, use the following library (with discussion)
Ok, I see you have written an expert advisor for this purposes, and it is written without recommendations I've posted in article.
So, let's move step by step: 1.
1. The calling of " DB = cMySqlConnect(Host, User, Password, Database, Port, Socket, ClientFlag); " should be made inside OnInit() standard function instead of OnTick(). 2.
2. You are uses cMySqlConnect - it's imported function form DLL, you have to use MySqlConnect function instead of cMySqlConnect function !
3. You have to call MySqlDisconnect function inside OnDeinit() stundard function.
4. You have to check database connection identifier inside OnTick() standard function to be sure that connect was successful.
Finally it will looks like.
According to this method has been solved , thank you very much!
Your programme link under Mysql in the operating system Windows Server 2008 64bit R2 SP1 , DB values are not stable, often is equal to -1, how to solve, please, please tell me, Urgent need ! Sir? please tell me, Urgent need ! Paid services , contact me email:2393607300@qq.com (I use MQL4 EA )
MySQL database server disconnects automatically when no queries was sent during specified timeout (on server side), this is why you need to check connection with db and reconnect if needed.
It's very good!
Please support Chinese.
E-MAIL: 547970398@qq.com