Errors

081218 12:48:05 [ERROR] Error message file ‘/usr/share/mysql/english/errmsg.sys’ had only 480 error messages,
but it should contain at least 617 error messages.

Can’t find messagefile ‘/usr/share/mysql/english/errmsg.sys’

if you get this message check what my.cnf you are using. maybe there is stated a

language = /usr/share/mysql/english

try removing this entry from my.cnf or simple copy the mysql/share directory from the source distribution.

Configuring Mysql Binary distro

scripts/mysql_install_db –user=mysql –basedir=/usr/local/mysql –log-bin=mysqld-bin –force –datadir=/var/lib/mysql

you can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl

–log-bin=mysqld-bin

bin/mysqld_safe –user=mysql

Fix the libraries

pmcrawl02 lib # cat /etc/ld.so.conf
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
/usr/i686-pc-linux-gnu/lib
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2
/usr/lib/libstdc++-v3/
/usr/local/mysql/lib

pmcrawl02 lib # ldconfig
pmcrawl02 lib # ldconfig -p | grep mysql

In gentoo you should create the following file:

# cat /etc/env.d/99mysql51
LDPATH=”/usr/local/mysql/lib”