Bug #5823 | mysql_install_db fails due to incorrect max_allowed_packet | ||
---|---|---|---|
Submitted: | 30 Sep 2004 11:44 | Modified: | 6 Dec 2004 15:16 |
Reporter: | Yashesh Bhatia | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Installing | Severity: | S2 (Serious) |
Version: | 4.1.5-gamma | OS: | Linux (Red Hat 8.0) |
Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
[30 Sep 2004 11:44]
Yashesh Bhatia
[25 Oct 2004 15:26]
Hartmut Holzgraefe
mysql_install_db uses --bootstrap which reads commands from stdin instead of listening on sockets. Here it seems to read into the net_buffer right away and doesn't dynamicly resice it up to max_allowed_packet. The default value of 16KB is big enough for mysql_install_db but the my-xxx.cnf sample files set net_buffer_size to 8KB instead which is too small here. mysql_install_db should add the --net_buffer_size=16K option instead of (or alongside with) --max_allowed_packet=8M when calling mysqld in --bootstrap mode. As a workaround you can change net_buffer_size=8K to net_buffer_size=16K in your /etc.my.cnf to make mysql_install_db work
[25 Oct 2004 18:21]
Hartmut Holzgraefe
the parameter name is actually net_buffer_length, not net_buffer_size
[6 Dec 2004 15:16]
Ramil Kalimullin
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html Additional info: fixed in 4.1.8