Skip to end of metadata
Go to start of metadata

An IO Error Occurred While Parsing MySQL XML Document

Problem:

An IO error occurred while parsing MySQL XML document. (Invalid byte 2 of 3-byte UTF-9 sequence.)

Solution:

UPDATE: Recent versions of the CDP Server and agent should not see this error. Everything is now converted to UTF-8 before being read.

Lets gather data.

This command will get all dbs using perl expression a-zA-Z0-9_ then store the results to file:\\

cd /var/lib/mysql find . | grep -P '[/w]' > test1.dbs


Now lets gather all the records and store to a different file.

find . -name '*' > test2.dbs

Not lets diff the files and see what is different between them.

[root@db1 mysql]# diff test1.dbs test2.dbs 41687,41689d41682 < ./mtgcent_mtgcenter/vente_foirée.frm < ./mtgcent_mtgcenter/vente_foirée.MYI < ./mtgcent_mtgcenter/vente_foirée.MYD

Login to mysql:

mysql -u root -p use mtgcent_mtgcenter; show tables;

Results shows a bunch of tables but lets focus on the ones that are simliar to the diff above and I show 2 tables that could possibly match:

| vente_foiree | vente_foir


Then check the actual disk to see which one is missing or wrong:

-rw-rw---- 1 mysql mysql 8824 Jun 9 2006 vente_foiree.frm -rw-rw---- 1 mysql mysql 55244 Sep 19 2006 vente_foiree.MYD -rw-rw---- 1 mysql mysql 5120 Sep 19 2006 vente_foiree.MYI -rw-rw---- 1 mysql mysql 8776 Sep 28 2005 vente_foirée.frm -rw-rw---- 1 mysql mysql 113400 Jun 5 2006 vente_foirée.MYD -rw-rw---- 1 mysql mysql 7168 Jun 5 2006 vente_foirée.MYI


Hmm there are 2 but not the foir one.
Looks like vente_foir is missing but on disk it has special character so lets change the name and remove ée:

-rw-rw---- 1 mysql mysql 8824 Jun 9 2006 vente_foiree.frm -rw-rw---- 1 mysql mysql 55244 Sep 19 2006 vente_foiree.MYD -rw-rw---- 1 mysql mysql 5120 Sep 19 2006 vente_foiree.MYI -rw-rw---- 1 mysql mysql 8776 Sep 28 2005 vente_foir.frm -rw-rw---- 1 mysql mysql 113400 Jun 5 2006 vente_foir.MYD -rw-rw---- 1 mysql mysql 7168 Jun 5 2006 vente_foir.MYI

Login back to mysql.
Run a check on that table mysql> check table vente_foir  

+--------------------------------+------------+------------+----------+ | Table | Op | Msg_type | Msg_text | +--------------------------------+------------+------------+----------+ | mtgcent_mtgcenter.vente_foir | check | status | OK | +--------------------------------+------------+------------+----------+ 1 row in set (0.01 sec)

Re-Ran backup and it completes just fine now.

Related Articles


Page: Agent shows a MySQL Error in the logs about MYHELPER (Archived Knowledge Base 2.0) Labels: mysql, install, cdp_server
Page: MySql Restore Fails With Internal Error db.frm Not Found (Archived Knowledge Base 2.0) Labels: mysql, 2-11-release
Page: An IO Error Occurred While Parsing MySQL XML Document (Archived Knowledge Base 2.0) Labels: mysql, xml
Page: MySQL Agent Errors - dots in table filenames (Archived Knowledge Base 2.0) Labels: mysql
Page: License Upgrade Question (Archived Knowledge Base 2.0) Labels: upgrade, license, add-on, mysql
Page: Configuring MySQL instances running inside Virtuozzo VPS (Archived Knowledge Base 2.0) Labels: mysql, add-on, vps, buagent, h/w, node
Page: Restoring MySQL Fails (Archived Knowledge Base 2.0) Labels: mysql
Page: Failed to Start Database r1backup (Archived Knowledge Base 2.0) Labels: mysql
Page: How Do I Add a New MySQL Instance? (Archived Knowledge Base 2.0) Labels: mysql
Page: MySQL Add-on Locks Up MySQL or Backup Hangs During MySQL (Archived Knowledge Base 2.0) Labels: mysql
Page: MySQL Addon - Why MySQL Backups are Not Safe Without It (Archived Knowledge Base 2.0) Labels: mysql
Page: I Have CDP Server Installed - Can I Order MySQL Agent Add-On? (Archived Knowledge Base 2.0) Labels: mysql, license
Page: Enabling MySQL Add-On (Archived Knowledge Base 2.0) Labels: mysql, license
Page: Not having UTF8 set on older mysql servers no longer stops the backup (Archived Knowledge Base 2.0) Labels: mysql
Page: If MySQL backup fails, task state is set to error (Archived Knowledge Base 2.0) Labels: mysql
Page: Added support for innodb_file_per_table (Archived Knowledge Base 2.0) Labels: mysql
Page: Adding MySql Addon for Virtuozzo MySql Instance (Archived Knowledge Base 2.0) Labels: mysql, virtuozzo
Page: Do I Need Root Password of MySQL Database? (Archived Knowledge Base 2.0) Labels: mysql
Page: Is It Safe To Backup MySQL Without Lock And Flush? (Archived Knowledge Base 2.0) Labels: mysql
Page: Can I Restore MySQL Without Having MySQL Agent Add-on Installed? (Archived Knowledge Base 2.0) Labels: mysql
Page: MySQL - Fix permission errors seen in some environments during InnoDB restore (Archived Knowledge Base 2.0) Labels: mysql
Page: MySQL - Fix timeout error during large InnoDB restore (Archived Knowledge Base 2.0) Labels: mysql
Page: MySQL Backup (Archived Knowledge Base 2.0) Labels: mysql
Page: Recovering a Running MySQL Server (Archived Knowledge Base 2.0) Labels: mysql, restore
Page: MySQL Backup Error In Logs (Archived Knowledge Base 2.0) Labels: mysql, backup_error
Showing first 25 of 27 results
Page: An IO Error Occurred While Parsing MySQL XML Document (Archived Knowledge Base 2.0) Labels: mysql, xml
Labels:
mysql mysql Delete
xml xml Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.