this is actually not an error when mysql_intall_db is run as the mysql user, but if that is run as root when building the initial tables, it makes the directory /var/lib/mysql unwritable to the mysql user. quick fix even when the install is run as root:
# chown -R mysql.mysql /var/lib/mysql