vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   Mysql Setting - how do I change it?? (https://vborg.vbsupport.ru/showthread.php?t=198682)

Lulubelle 12-12-2008 01:23 PM

Mysql Setting - how do I change it??
 
Hi

I'm pretty sure that this has been asked already but done a search and couldn't find anything in the forums.

I have a max_allowed_packets error when uploading attachments.

I have googled my heart out trying to find out how to change this. When I follow the directions given it doesn't work.

I SSH onto my server and type a mysql command - tried this but it came back with an authentication error despite using the root login.

I change the my.cnf file in the /etc folder manually by editing it in notepad++ - which is something else suggested but there is no setting in that file for max packet upload.

I am not technical but I do need to change this setting myself, can someone give me an idiot proof way of doing this please?

Help would be very much appreciated :)

Lynne 12-12-2008 02:28 PM

If it wasn't in the my.cnf file, then you just need to add it like this:
Code:

max_allowed_packet = 64M

(Change 64M to what you want.) You need to restart mysql after you do the change.

SEOvB 12-12-2008 02:57 PM

Quote:

Originally Posted by Lulubelle (Post 1683813)
Hi

I'm pretty sure that this has been asked already but done a search and couldn't find anything in the forums.

I have a max_allowed_packets error when uploading attachments.

I have googled my heart out trying to find out how to change this. When I follow the directions given it doesn't work.

I SSH onto my server and type a mysql command - tried this but it came back with an authentication error despite using the root login.

I change the my.cnf file in the /etc folder manually by editing it in notepad++ - which is something else suggested but there is no setting in that file for max packet upload.

I am not technical but I do need to change this setting myself, can someone give me an idiot proof way of doing this please?

Help would be very much appreciated :)

Don't edit system files in notepad++ or notepad or anything like that, most of them can save extra characters or cause errors in the files.

Use nano or pico to edit the files, and make sure to back them up first before making changes.

Code:

cp my.cnf my.cnf.bak
Then when you restart mySQL if you have errors, you can simply copy the old working one back over the broken one with

Code:

cp my.cnf.bak my.cnf

Lynne gave the correct code for changing the setting you need to change ;) so good luck.

Lulubelle 12-12-2008 07:23 PM

Thanks for the help guys, my.cnf file did read:

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

It now reads:

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
max_allowed_packet = 1028M
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

is this ok?

Lynne 12-12-2008 09:38 PM

That is the correct format for adding in the max_allowed_packet setting.

Marco van Herwaarden 12-15-2008 07:26 AM

1028 MB might be too much.


All times are GMT. The time now is 01:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01839 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete