473,473 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MYSQL max_allowed_packet won't change, can't restore..

1 New Member
Hi all,
Could someone please give some insight on the following please?

Screnario: would like to restore a medium database (846MB), what has a lot of BLOB attachments.

During restore, i get the error message that one of this attachments are larger then max_allowed_packet.
The attachment is 10124159 bytes~10Mb.

(i use
Expand|Select|Wrap|Line Numbers
  1. mysql -u root -p -v --max_allowed_packet=1024M -h mydbserver db1 < db1_bak.sql
  2.  
locally in terminal)

My my.cnf is set up with
max_allowed_packet=16M

i tried a couple of things like putting
--max_allowed_packet=1024M into the restore command, set it by set global in mysql prompt, but nothing seems to help.

Restarted the server several times..

One thing i noticed, that after setting the global in mysql prompt the show variables still shows the 16M size.. but it's accepting the set... I don't get it.. i'm in with DBA root, useing the local root user & even sudo...

Can someone help me please?
I'm on MySQL 5.1.37 on a virtualized XUbuntu 9.10 (2 cores AMD 2GB dedicated RAM for the VM, full 16GB on the VM Host)

Thank you, regards.
Daniel
Jun 10 '11 #1
1 3971
mwasif
802 Recognized Expert Contributor
Is max_allowed_packet=16M written under [mysqld] in my.cnf?

Run the following command on mysql prompt and post the out put here
Expand|Select|Wrap|Line Numbers
  1. SHOW VARIABLES LIKE 'max_allowed_packet';
Jun 12 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: dschneiderman | last post by:
Hello All, I am not a SQL Server expert, but I have been put in a pretty precarious situtation and I am close to panicking :( I have need to restore a SQL database from backup (through...
4
by: BadBob | last post by:
I installed a new application and it over wrote my passwords. I can not get back in to mysql. Someone suggested there is a way to set the password without knowing the old password. Can anyone help...
3
by: cefrancke | last post by:
The only reason I ask is that no one has made this subject clear or given a definitive answer. What I would like to do is, after turning off all the menus/tbars/etc using the startup options. ...
1
by: Bob Powell | last post by:
** High Priority ** Hello everyone, I have a restore file created by pg_dumpall. The restore file has two users associated with ownership of tables. The postgres user and a user called...
7
by: phillip.s.powell | last post by:
We're looking at a GUI interface for our MySQL DB and I am interested in MySQL Administrator, however, one of our requirements is to be able to import/export databases. Is this possible or do I...
6
by: frank78 | last post by:
Hi everyone, I am having a little bit of trouble backing up some mySQL tables. I've been trying to adapt a script I found on the internet at...
7
by: Paul | last post by:
I recently installed php 4.4.4 using windows binaries on Windows XP Pro. I also installed MySQL 4.1. I usually use Pear DB but I tried MDB2 and it worked fine until a client uses a different...
4
by: Geethu03 | last post by:
Hi My Question is how can i store the database from one System to another System? I have a database with large no of data's.I want to store these data to another system with all data. I...
4
by: prosad | last post by:
hi! my problems: 1. i can not restore my database from my command line i type gives me: /*!40101 SET @OLD_CHARACTER...
1
by: Nekator | last post by:
Hi everyone. I´ve backuped my MySQL Databases to transport them from Windows to UNIX Server. Backup worked fine, but the restore won´t. It typically get´s the following errors: 090428...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.