FromDual TechFeed (de)

MySQL Server Error Codes and Messages 1300 - 1349

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

1250 - 1299 1350 - 1399


MySQL Server Error Codes and Messages 1250 - 1299

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

1200 - 1249 1300 - 1349


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; …

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 …

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 ( …


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


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 …

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: …


MariaDB, Galera and MySQL Support

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

FromDual is a support partner of MariaDB Corp. and Oracle Corp.. 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, unlimited number of …

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 …

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


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. …


MySQL Plugins and UDF's

Oli Sennhauser - Sat, 2010-11-20 12:58

At the DOAG 2010 we found that there are already a lot of Plugins etc. for MySQL available. Therefor it will be a good time to start with a collection of Plugins, UDF’s etc. available.

Because we have done already a collection of MySQL Storage Engines earlier please look there form more information.

NameTypeworks withVersionLicenseUseful for
mnoGoSearchPluginMySQL 5.1v3.2.43GPL v2?Pluggable fulltext parsers interface.
HandlerSocketPluginMySQLPublic Domain?HandlerSocket …

Why shall 2 LCPs be kept?

Oli Sennhauser - Fri, 2010-11-19 11:15

Hi Baomin Wang,

After some thinking an talking to some colleagues I found the answer:

When MySQL Cluster writes LCP’s it first writes LCP 1, then LCP 2. After LCP 2 it OVERwrites the LCP 1 again and then overwrites LCP 2 again and so on…

This assures that we have always ONE complete and good LCP from where we can recover in case of a complete Cluster crash.

When we would have only 1 LCP file this cannot be assured.

Regards, Oli


Why shall 2 LCPs be kept?

Oli Sennhauser - Fri, 2010-11-19 11:09

Hi Baomin Wang,

  1. I come back with an answer later…

  2. MySQL Cluster is mainly an In-Memory-Database. In a typical set-up we do not have such things like tablespaces or data files as in other MySQL Storage engines. Just the LCP- and GCP-files (and some others files related to the MySQL Cluster). MySQL Cluster also knows disk based data (which is a less common set-up). There you have indeed such tablespace and UNDO log files. But I did not consider it in this picture because it is a less often used …


Advanced MySQL DBA Workshop - draft

Oli Sennhauser - Sat, 2010-09-11 15:13

With a partner we are planning and Advanced MySQL DBA workshop. As the name says it should be a workshop. Its planned duration is 2 days. So within 2 days we can cover 4 to 8 topics more deeply.

Requirements: VirtualBox, VMware, own Laptop?

Possible exercises during the workshop

  • Set-up a Master-Master replication with 2 Slaves
  • Load balance on master with MySQL Proxy and on Slaves with LVS.
  • Design a little schema and load with data from foodmart
  • Do a backup with XtraDB and LVM
  • Do a PITR and and InnoDB crash …

Who is corrupting InnoDB blocks?

Oli Sennhauser - Tue, 2010-08-10 18:01

Because I have seen this week again a similar situation I thought about what could cause such InnoDB block corruptions. I came to the following evil-doers:

  • Editing the InnoDB tablespace file with a normal text editor.
  • Virus checker
  • fsck / chkdsk
  • Active/active DRBD/SAN (2 mysqld processes accessing the same InnoDB tablespace files at the same time)
  • Human interaction (on purpose?)
  • Broken I/O controller or other issues with the I/O system

If you have some more ideas. I would be happy to …


FromDual references

Oli Sennhauser - Mon, 2010-08-02 12:35

What customers say about FromDual

Translate...
Wir sind mit der Funktionalität und der Einführung sehr zufrieden. Das gesamte Cluster läuft absolut stabil. Dies ist ein erheblicher Vorteil für unseren Kunden denn wir können unsere Dienstleistungen unterbrechungsfrei anbieten. Wir werden Galera bei weiteren Projekten einsetzen und bestehende Master/Slave-Anwendungen umstellen.
A. Rempening, Datenbank-Administrator, KiKxxl GmbH
 
Neben den fachlich sehr fundierten Tipps und Diskussionen hat mich …

CREATE ALGORITHM = TEMPTABLE VIEW

Oli Sennhauser - Fri, 2010-06-11 10:34

To find out more about the VIEW’s behaviour I was playing around with the ALGORITHM = TEMPTABLE feature [1]. It was also related to a customers question of how VIEW’s effect performance of queries.

The results are ambivalent:

EXPLAIN
SELECT * FROM v LIMIT 10;
CREATE ALGORITHM = MERGE VIEW v
+----+-------------+-------+--------+---------------+---------+---------+-------------+--------+-------------+
| id | select_type | table | type   | possible_keys | key     | key_len | ref         | rows …

FlexViews - Materialized Views for MySQL

Oli Sennhauser - Thu, 2010-05-06 21:45

Justin Swanhart from Percona just poked me an told me about FlexViews, a package for Materialized Views he built, based on my ideas. Please have also a look there, possibly it can help you any further…


Pages

Subscribe to FromDual aggregator - FromDual TechFeed (de)