MYSQL中GROUP_CONCAT函數注意事項

show variables like 'group_concat_max_len';
在[mysqld]下新增配置:group_concat_max_len = 4294967295;

SET GLOBAL group_concat_max_len = 4294967295;

GROUP_CONCAT(copr.`create_time`)
endTime.trim() != ''
flush privileges;
grant SHOW DATABASES,SELECT on *.* to 'slave'@'%' identified by 'slavepwd';
docker run -itd -p 3307:3306 --name master -v /usr/local/mysqlData/slave/cnf:/etc/mysql/conf.d -v /usr/local/mysqlData/slave/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=slavepwd 5709795eeffa

show VARIABLES like '%max_allowed_packet%';
set global max_allowed_packet = 1024*1024*160;

SELECT DATE_FORMAT('2017-09-20 08:30:45',   '%Y-%m-%d %H:%i:%S');
相關文章
相關標籤/搜索