FromDual TechFeed (de)

MySQL Server Error Codes and Messages 1700 - 1749

Oli Sennhauser - Mon, 2010-12-06 12:00

1650 - 1699 2000 - 2049

  • Error: 1700 SQLSTATE: HY000 (ER_GRANT_PLUGIN_USER_EXISTS)

    Message: GRANT with IDENTIFIED WITH is illegal because the user %-.
    *s already exists

  • Error: 1701 SQLSTATE: 42000 (ER_TRUNCATE_ILLEGAL_FK)

    Message: Cannot truncate a table referenced in a foreign key constraint (%s)

  • Error: 1702 SQLSTATE: HY000 (ER_PLUGIN_IS_PERMANENT)

    Message: Plugin ‘%s’ is force_plus_permanent and can not be unloaded

  • Error: 1703 SQLSTATE: HY000 ( …


Taxonomy upgrade extras:  Mysql  Support  Error  Help 

MySQL Server Error Codes and Messages 1650 - 1699

Oli Sennhauser - Mon, 2010-12-06 11:59

1600 - 1649 1700 - 1749

  • Error: 1650 SQLSTATE: HY000 (ER_SLAVE_IGNORE_SERVER_IDS)

    Message: The requested server id %d clashes with the slave startup option –replicate-same-server-id

  • Error: 1651 SQLSTATE: HY000 (ER_QUERY_CACHE_DISABLED)

    Message: Query cache is disabled; restart the server with query_cache_type=1 to enable it

  • Error: 1652 SQLSTATE: HY000 (ER_SAME_NAME_PARTITION_FIELD)

    Message: Duplicate partition field name ‘%s’

  • Error: 1653 SQLSTATE: HY000 ( …


Taxonomy upgrade extras:  Mysql  Support  Error  Help  General Query Log 

MySQL Server Error Codes and Messages 1600 - 1649

Oli Sennhauser - Mon, 2010-12-06 11:54

1550 - 1599 1650 - 1699


Taxonomy upgrade extras:  Mysql  Support  Error  Help 

MySQL Server Error Codes and Messages 1550 - 1599

Oli Sennhauser - Mon, 2010-12-06 11:53

1500 - 1549 1600 - 1649

  • Error: 1550 SQLSTATE: HY000 (ER_EVENT_COMPILE_ERROR)

    Message: Error during compilation of event’s body

  • Error: 1551 SQLSTATE: HY000 (ER_EVENT_SAME_NAME)

    Message: Same old and new event name

  • Error: 1552 SQLSTATE: HY000 (ER_EVENT_DATA_TOO_LONG)

    Message: Data for column ‘%s’ too long

  • Error: 1553 SQLSTATE: HY000 (ER_DROP_INDEX_FK)

    Message: Cannot drop index ‘%s’: needed in a foreign key constraint

  • Error: 1554 SQLSTATE: HY000 ( …


Taxonomy upgrade extras:  Mysql  Support  Error  Help 

MySQL Server Error Codes and Messages 1500 - 1549

Oli Sennhauser - Mon, 2010-12-06 11:52

1450 - 1499 1550 - 1599


Taxonomy upgrade extras:  Mysql  Support  Error  Help 

MySQL Server Error Codes and Messages 1450 - 1499

Oli Sennhauser - Mon, 2010-12-06 11:51

1400 - 1449 1500 - 1549

  • Error: 1450 SQLSTATE: HY000 (ER_FORBID_SCHEMA_CHANGE)

    Message: Changing schema from ‘%s’ to ‘%s’ is not allowed.

  • Error: 1451 SQLSTATE: 23000 (ER_ROW_IS_REFERENCED_2)

    Message: Cannot delete or update a parent row: a foreign key constraint fails (%s)

  • Error: 1452 SQLSTATE: 23000 (ER_NO_REFERENCED_ROW_2)

    Message: Cannot add or update a child row: a foreign key constraint fails (%s)

  • Error: 1453 SQLSTATE: 42000 (ER_SP_BAD_VAR_SHADOW)

    Message: Variable …


Taxonomy upgrade extras:  Mysql  Trigger  Support  Error  Help 

MySQL Server Error Codes and Messages 1400 - 1449

Oli Sennhauser - Mon, 2010-12-06 11:50

1350 - 1399 1450 - 1499

  • Error: 1400 SQLSTATE: XAE09 (ER_XAER_OUTSIDE)

    Message: XAER_OUTSIDE: Some work is done outside global transaction

  • Error: 1401 SQLSTATE: XAE03 (ER_XAER_RMERR)

    Message: XAER_RMERR: Fatal error occurred in the transaction branch - check your data for consistency

  • Error: 1402 SQLSTATE: XA100 (ER_XA_RBROLLBACK)

    Message: XA_RBROLLBACK: Transaction branch was rolled back

  • Error: 1403 SQLSTATE: 42000 (ER_NONEXISTING_PROC_GRANT)

    Message: There is no such grant defined for user …


Taxonomy upgrade extras:  Mysql  Trigger  Support  Error  Help 

MySQL Server Error Codes and Messages 1350 - 1399

Oli Sennhauser - Mon, 2010-12-06 11:49

1300 - 1349 1400 - 1449

  • Error: 1350 SQLSTATE: HY000 (ER_VIEW_SELECT_CLAUSE)

    Message: View’s SELECT contains a ‘%s’ clause

  • Error: 1351 SQLSTATE: HY000 (ER_VIEW_SELECT_VARIABLE)

    Message: View’s SELECT contains a variable or parameter

  • Error: 1352 SQLSTATE: HY000 (ER_VIEW_SELECT_TMPTABLE)

    Message: View’s SELECT refers to a temporary table ‘%s’

  • Error: 1353 SQLSTATE: HY000 (ER_VIEW_WRONG_LIST)

    Message: View’s SELECT and view’s field list have …


Taxonomy upgrade extras:  Mysql  Trigger  Support  Error  Help 

MySQL Server Error Codes and Messages 1300 - 1349

Oli Sennhauser - Mon, 2010-12-06 11:46

1250 - 1299 1350 - 1399


Taxonomy upgrade extras:  Mysql  Support  Error  Help 

MySQL Server Error Codes and Messages 1250 - 1299

Oli Sennhauser - Mon, 2010-12-06 11:45

1200 - 1249 1300 - 1349


Taxonomy upgrade extras:  Mysql  Support  Error  Help 

MySQL Server Error Codes and Messages 1200 - 1249

Oli Sennhauser - Mon, 2010-12-06 11:43

1150 - 1199 1250 - 1299


  Error: 1200 SQLSTATE: HY000 (ER_BAD_SLAVE)
  Message: The server is not configured as slave; fix in config file or with CHANGE MASTER TO

How does the MySQL error message look like?


  Error: 1201 SQLSTATE: HY000 (ER_MASTER_INFO)
  Message: Could not initialize master info structure; more error messages can be found in the MySQL error log

How does the MySQL error message look like?


  Error: 1202 SQLSTATE: HY000 (ER_SLAVE_THREAD)
  Message: Could not create slave thread; …

Taxonomy upgrade extras:  Mysql  Support  Error  Help 

MySQL Server Error Codes and Messages 1150 - 1199

Oli Sennhauser - Mon, 2010-12-06 11:42

1100 - 1149 1200 - 1249


  Error: 1153 SQLSTATE: 08S01 (ER_NET_PACKET_TOO_LARGE)
  Message: Got a packet bigger than …

Taxonomy upgrade extras:  Mysql  Support  Error  Help 

MySQL Server Error Codes and Messages 1100 - 1149

Oli Sennhauser - Mon, 2010-12-06 11:41

1050 - 1099 1150 - 1199

  • Error: 1100 SQLSTATE: HY000 (ER_TABLE_NOT_LOCKED)

    Message: Table ‘%s’ was not locked with LOCK TABLES

  • Error: 1101 SQLSTATE: 42000 (ER_BLOB_CANT_HAVE_DEFAULT)

    Message: BLOB/TEXT column ‘%s’ can’t have a default value

  • Error: 1102 SQLSTATE: 42000 (ER_WRONG_DB_NAME)

    Message: Incorrect database name ‘%s’

  • Error: 1103 SQLSTATE: 42000 (ER_WRONG_TABLE_NAME)

    Message: Incorrect table name ‘%s’

  • Error: 1104 SQLSTATE: 42000 ( …


Taxonomy upgrade extras:  Mysql  Support  Error  Help 

MySQL Server Error Codes and Messages 1050 - 1099

Oli Sennhauser - Mon, 2010-12-06 11:38

1000 - 1049 1100 - 1149


Error: 1050 SQLSTATE: 42S01 (ER_TABLE_EXISTS_ERROR)

Message: Table ‘%s’ already exists


Taxonomy upgrade extras:  Mysql  Support  Error  Help 

MySQL Server Error Codes and Messages 1000 - 1049

Oli Sennhauser - Mon, 2010-12-06 11:32

1050 - 1099

  • Error: 1000 SQLSTATE: HY000 (ER_HASHCHK)

    Message: hashchk

  • Error: 1001 SQLSTATE: HY000 (ER_NISAMCHK)

    Message: isamchk

  • Error: 1002 SQLSTATE: HY000 (ER_NO)

    Message: NO

  • Error: 1003 SQLSTATE: HY000 (ER_YES)

    Message: YES

  • Error: 1004 SQLSTATE: HY000 (ER_CANT_CREATE_FILE)

    Message: Can’t create file ‘%s’ (errno: %d)

  • Error: 1005 SQLSTATE: HY000 (ER_CANT_CREATE_TABLE)

    Message: Can’t create table ‘%s’ (errno: %d)


  Error: 1006 SQLSTATE: HY000 …

Taxonomy upgrade extras:  Mysql  Support  Error  Help 

MySQL Error codes and messages

Oli Sennhauser - Wed, 2010-12-01 14:56

Just a general rule with error messages: Usually they are not as good as they could be. But nevertheless read them carefully. Most of the time they tell you what you need to know…

And an other wisdom: Errors are really errors and they have to be solved. Warnings are warnings and you should investigate if they appear. Do not ignore both of them unless you have clearly understood what you are doing.

With MySQL:

mysql> SHOW WARNINGS

is often your friend! Further sources to find the problems are: …


Taxonomy upgrade extras:  Mysql  Support  Error  Help  Mysql Support 

MariaDB, Galera and MySQL Support

Oli Sennhauser - Wed, 2010-12-01 12:26

FromDual is a support partner of MariaDB plc, Codership Oy and Oracle Corporation. This gives us the opportunity to offer you customized enterprise support subscriptions for your mission-critical MariaDB, Galera or MySQL databases for all three vendors.

Alternatively, we can offer you our remote DBA services (without SLA) or our MariaDB, Galera and MySQL trainings.

MariaDB and MariaDB Cluster Support Subscriptions

  • MariaDB Enterprise support subscription: 7x24 support subscription, duration: 1 to 3 years, …

Taxonomy upgrade extras:  Replication  Cluster  Support  Mysql Support  Mysql-Replication  Mariadb Support  Galera Support  Galera 

Results from using PBXT with AVG_ROW_LENGTH

Oli Sennhauser - Wed, 2010-11-24 15:03

We dug some further with this problem of too big rows. The results you can find below.

NameEngineRow_formatRowsAvg_row_lengthData_lengthIndex_lengthCreate_options
t_innodb_varcharInnoDBCompact52483337194478087880704
t_innodb_varcharlongInnoDBCompact52483337194478087880704
t_innodb_charInnoDBCompact52440399519864327880704
t_innodb_tinytextInnoDBCompact52483337194478087880704
t_innodb_smalltextInnoDBCompact52483337194478087880704
t_innodb_mediumtextInnoDBCompact52483337194478087880704 …

Taxonomy upgrade extras: 

Partitioning with PBXT MEMORY tables

Oli Sennhauser - Wed, 2010-11-24 09:53

Further discussion we had about PBXT MEMORY tables partitioned:

Q: Is there a good case where partitioned PBXT MEMORY tables could make sense?

A: To have some partitions on disk and other in memory could be useful.

Unfortunately MySQL (up to 5.6.1) and MariaDB (up to 5.2.3) do not support mixing different Storage Engines for a partitioned table yet:

ERROR 1497 (HY000): The mix of handlers in the partitions is not allowed in this version of MySQL

Lit: CREATE TABLE


Taxonomy upgrade extras: 

AVG_ROW_LENGTH = 12

Oli Sennhauser - Tue, 2010-11-23 16:43

Hi Stewart,

Thanks for your comment. Paul made some similar conclusions:

The problem could be that the fixed length record component is too large. PBXT tries to estimate the average row length of a table when it is created. It then sets the fixed length record component to the estimated average row length value.

If the estimate is not good, you can set it explicitly by setting AVG_ROW_LENGTH.

Optimizing the average row length is explained in my talk.

For the moment you can just try AVG_ROW_LENGTH = 12. …


Taxonomy upgrade extras: 

Pages

Subscribe to FromDual aggregator - FromDual TechFeed (de)