Set MySQL group_concat length

Source: Internet
Author: User

There is no default for this configuration item in the #在MySQL配置文件 (My.ini), with the default value of 1024, the following statement modifications can be executed on the client:

#SET GLOBAL Group_concat_max_len = 1024;

#该语句执行后重启客户端即可用语句:

#show variables like "Group_concat_max_len";

#查看到已经修改成功, the statement will always work before MySQL restarts, but once MySQL restarts, the default setting value is restored.

#要彻底修改, in the MySQL configuration file (My.ini), add the

Group_concat_max_len = 1 #-1 is the maximum value or fill in the maximum length you want

#并重启mysql

#在客户端执行语句:

#show variables like "Group_concat_max_len";

The #如果为自己修改的值或4294967295 (set to-1 o'clock) is modified correctly.

Set MySQL group_concat length

Related Article

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.