While importing a table, my HeidiSQL stopped and displayed the following message:
"Error while reading file: E:\...\phpbb2_privmsgs.sql:
SQL Error (1153): Got a packet bigger than 'max_allowed_packet' bytes"
How do I fix this?
- j
* Note: I abbreviated the above filepath.
Error #1153
That happens when max_allowed_packet is lower than an INSERT you are about to execute. You can adjust that variable using HeidiSQL's "Host" > "Variables" tab:
- find the "max_allowed_packet" item and doubleclick it
- increase the value by factor 2 or 5
- check "Global"
- disconnect and reconnect to that server
- try to import the file again - should work
You may not have the privilege to adjust variables but let's try that before diving into more complicated stuff.
- find the "max_allowed_packet" item and doubleclick it
- increase the value by factor 2 or 5
- check "Global"
- disconnect and reconnect to that server
- try to import the file again - should work
You may not have the privilege to adjust variables but let's try that before diving into more complicated stuff.
Does this problem have something to do with:
Syntax:
SHOW PRIVILEGES
SHOW PRIVILEGES shows the list of system privileges that the MySQL
server supports. The exact list of privileges depends on the version of
your server.
URL: http://dev.mysql.com/doc/refman/5.0/en/show-privileges.html
?
- j
Syntax:
SHOW PRIVILEGES
SHOW PRIVILEGES shows the list of system privileges that the MySQL
server supports. The exact list of privileges depends on the version of
your server.
URL: http://dev.mysql.com/doc/refman/5.0/en/show-privileges.html
?
- j
Is this the answer?
mysql> SHOW GRANTS FOR 'root'@'localhost';
+---------------------------------------------------------------------+
| Grants for root@localhost |
+---------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION |
+---------------------------------------------------------------------+
- j
mysql> SHOW GRANTS FOR 'root'@'localhost';
+---------------------------------------------------------------------+
| Grants for root@localhost |
+---------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION |
+---------------------------------------------------------------------+
- j
Trying to move things along, I changed my password and re-entered:
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost'
...on the query panel, but, again, Heidisql displayed an Error #1045 message.
So, I seem to be going around in circles, here.
So, what is the fasted and simplest way for me to access Heidisql's user manager?
...and please keep in mind that I am the administrator.
- j
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost'
...on the query panel, but, again, Heidisql displayed an Error #1045 message.
So, I seem to be going around in circles, here.
So, what is the fasted and simplest way for me to access Heidisql's user manager?
...and please keep in mind that I am the administrator.
- j
Thanks for the idea, but I can't.
Initially, I thought it would only effect my instance of Heidisql, but my host's tech says otherwise.
He told me:
"This is not a desirable nor permanent solution as this essentially bypasses all authentication mechanisms and lets anyone connect to the server without auth. This feature is really only intended for use when a lost MySQL root password needs to be reset."
So, I can't.
How about helping me to create a permissions table and helping me to set the SUPER permission, for me, instead?
- j
Initially, I thought it would only effect my instance of Heidisql, but my host's tech says otherwise.
He told me:
"This is not a desirable nor permanent solution as this essentially bypasses all authentication mechanisms and lets anyone connect to the server without auth. This feature is really only intended for use when a lost MySQL root password needs to be reset."
So, I can't.
How about helping me to create a permissions table and helping me to set the SUPER permission, for me, instead?
- j
I have a theory.
There might be a syntax error or something like that corrupting both files and that might explain the conflict with Heidisql's factory settings.
So, during the course of the next few weeks, I'm going to go over those files with as much of a 'fine-tooth comb' as I can and see if I can resolve the situation that way.
Now, about the other matter, being the administrator, I think I should know more about handling Heidisql's user manager.
So, I want to create a permissions table and assign to myself SUPER privileges.
I don't intend to reset any settings, but might want to assign privileges, from time to time.
I suspect that I could create the table and, maybe, establish my privileges via cPanel or phpMyAdmin, but I would prefer to learn how to do it via Heidisql.
So, any idea as to how I could go about doing that?
- j
There might be a syntax error or something like that corrupting both files and that might explain the conflict with Heidisql's factory settings.
So, during the course of the next few weeks, I'm going to go over those files with as much of a 'fine-tooth comb' as I can and see if I can resolve the situation that way.
Now, about the other matter, being the administrator, I think I should know more about handling Heidisql's user manager.
So, I want to create a permissions table and assign to myself SUPER privileges.
I don't intend to reset any settings, but might want to assign privileges, from time to time.
I suspect that I could create the table and, maybe, establish my privileges via cPanel or phpMyAdmin, but I would prefer to learn how to do it via Heidisql.
So, any idea as to how I could go about doing that?
- j
Why are you repeatedly second-guessing me?
Although I have changed my mind about changing factory settings, I have figured out that I should establish a privileges table and assign to myself what Heidisql calls Super privileges.
So, any idea as to how I could go about doing that, via Heidisql?
- j
Although I have changed my mind about changing factory settings, I have figured out that I should establish a privileges table and assign to myself what Heidisql calls Super privileges.
So, any idea as to how I could go about doing that, via Heidisql?
- j
If I was second-guessing you I'm sorry. As said I have the feeling I don't get what you really want now.
> assign to myself what Heidisql calls Super privileges
Not HeidiSQL calls this "super", it's your MySQL server.
> So, if not me, then who?
Man, please look into your mysql.user table - it contains all existing users and you will find a column "Super_priv", which must be set to "Y" to assign super privileges. But that's the same as the user manager does so maybe you will get the same error when trying to change data there.
> assign to myself what Heidisql calls Super privileges
Not HeidiSQL calls this "super", it's your MySQL server.
> So, if not me, then who?
Man, please look into your mysql.user table - it contains all existing users and you will find a column "Super_priv", which must be set to "Y" to assign super privileges. But that's the same as the user manager does so maybe you will get the same error when trying to change data there.
Please login to leave a reply, or register at first.