Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 5.6.14 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trade of Oracle Corporation and/or its
affiliates. Other names may be trades of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show VARIABLES like '%max_allowed_packet%';
+--------------------------+------------+
| Variable_name | Value |
+--------------------------+------------+
| max_allowed_packet | 4194304 |
| slave_max_allowed_packet | 1073741824 |
+--------------------------+------------+
2 rows in set (0.00 sec)
mysql> set global max_allowed_packet = 2*1024*1024*10;
ERROR 1227 (42000): Access denied; you need (at least one of) the SUPER privileg
e(s) for this operation
mysql> set global max_allowed_packet = 16M;
ERROR 1227 (42000): Access denied; you need (at least one of) the SUPER privileg
e(s) for this operation
mysql>
使用的平台式Win7 企业版 64位,数据库版本是MySQL 5.6
遇到的问题与http://bbs.csdn.net/topics/390603639一样,求助如何修改其中的值呢?改为多大都行么?比如说1024M之类的?根目录下也没有my-ini,只有一个my-default.ini,添加新的my-ini也不能实现,重启后恢复为4M~
Your MySQL connection id is 10
Server version: 5.6.14 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trade of Oracle Corporation and/or its
affiliates. Other names may be trades of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show VARIABLES like '%max_allowed_packet%';
+--------------------------+------------+
| Variable_name | Value |
+--------------------------+------------+
| max_allowed_packet | 4194304 |
| slave_max_allowed_packet | 1073741824 |
+--------------------------+------------+
2 rows in set (0.00 sec)
mysql> set global max_allowed_packet = 2*1024*1024*10;
ERROR 1227 (42000): Access denied; you need (at least one of) the SUPER privileg
e(s) for this operation
mysql> set global max_allowed_packet = 16M;
ERROR 1227 (42000): Access denied; you need (at least one of) the SUPER privileg
e(s) for this operation
mysql>
使用的平台式Win7 企业版 64位,数据库版本是MySQL 5.6
遇到的问题与http://bbs.csdn.net/topics/390603639一样,求助如何修改其中的值呢?改为多大都行么?比如说1024M之类的?根目录下也没有my-ini,只有一个my-default.ini,添加新的my-ini也不能实现,重启后恢复为4M~
此项参数不要设置太大影响性能。最好4-16M
改成my.ini不是my-ini