Posts Tagged ‘MySQL’

MySQL Error in the errmsg.sys file

Friday, August 5th, 2011

I came across a simple fix for an odd MySQL issue. We recently had a MySQL server that needed to be restored from backups. After reinstalling all the essentials and importing the data, the database engine wouldn’t start. The log file indicated the following error.

[ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 481 error messages,
but it should contain at least 641 error messages.

After some googling, I found that some of the official RPM packages for MySQL actually contain the incorrect errmsg.sys files. The recommended fix listed on several sites was to either recompile from scratch or, vaguely, to “replace it with the correct errmsg.sys file.” I decided to try the vague reference and make it more specific here.

  • First, determine the version of MySQL installed. In our case it was 5.1.56
  • Second, locate a zip file of the raw uncompiled tar.gz of that version. I used http://mysql.llarian.net/Downloads/MySQL-5.1/mysql-5.1.56.tar.gz
  • Third, download and extract the file to a location of your choosing.
    cd /usr/local/src
    wget http://mysql.llarian.net/Downloads/MySQL-5.1/mysql-5.1.56.tar.gz
    tar -zxf mysql-5.1.56.tar.gz
  • Fourth, backup the existing errsg.sys file.
    mv /usr/share/mysql/english/errmsg.sys /usr/share/mysql/english/errmsg.sys.old
  • Fifth, copy the errmsg.sys file from the extrated source code to the live location.
    cp /usr/local/src/mysql-5.1.56/sql/share/english/errmsg.sys /usr/share/mysql/english/errmsg.sys

After that’s done, MySQL should start normally unless it encounters other errors.

-Mark Kraus
Senior Systems Administrator

SociBook del.icio.us Digg Facebook Google Yahoo Buzz StumbleUpon

PHP Script Tips and Resources

Monday, February 1st, 2010

php PHP is a language absolutely made for websites. PHP code can be inserted into an html page to enable dynamic creation. Many content management systems like Drupal, Joomla, and osCommerce  use PHP together with MySQL to build webpages. (more…)

SociBook del.icio.us Digg Facebook Google Yahoo Buzz StumbleUpon

MySQL Version 6 Preview

Tuesday, January 5th, 2010

mysql There is a new version of MySQL currently in development that will be version 6. MySQL is an open source software package that allows data to be stored and queried in tables. MySQL is used my millions, and many websites use it to store data. I think the reason it is very popular is because most versions are free and works very well. In my experience the performance is comparable to commercial SQL software from Sybase, Oracle, and Microsoft. (more…)

SociBook del.icio.us Digg Facebook Google Yahoo Buzz StumbleUpon

Do I need a dedicated database server?

Wednesday, June 17th, 2009

Well not always, but typically, yes. If you just want to sort your wedding or vacation pictures for family viewing, then probably not. Otherwise, three very good reasons why you should consider it are Security, Performance, Scalability. (more…)

SociBook del.icio.us Digg Facebook Google Yahoo Buzz StumbleUpon