MySQL executes more than one statement

Source: Internet
Author: User

Http://www.cppblog.com/fwxjj/archive/2010/08/05/122258.html
Said to be set on the connection:

    1. Link-time settings
    2. Mysql_real_connect (..., client_multi_statements);
    3. Or
    4. Midway designation
    5. Mysql_set_server_option (MySQL, mysql_option_multi_statements_on); //mysql is the name of the connection

But the driver of C # did not find a place to set it.

Search through the source code is not.

In http://www.connectionstrings.com/mysql/, you can specify in the connection string: Allowbatch, which is true by default.

Server=127.0.0.1;database=mymvcapp; Uid=root; Pwd=root; Pooling=true; minimumpoolsize=10;maximumpoolsize=500; connectionlifetime=300; Procedurecachesize=0;default command timeout=20; Connection timeout=5; Charset=utf8; Allowbatch=true;

Pending Test.

MySQL executes more than one statement

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.