MySQL library initialization failed (on "init")

Jeff Mitchell mitchell at kde.org
Sat Oct 3 17:29:35 UTC 2009


Thomas Klausner wrote:
> Further ideas how to track this down?

Not really  :-(

The code related to what you're seeing is the following:

    static const int num_elements = 10;
    char **server_options = new char* [ num_elements + 1 ];
    server_options[0] = const_cast<char*>( "amarokmysqld" );
    server_options[1] = defaultsLine;
    server_options[2] = databaseLine;
    // CAUTION: if we ever change the table type we will need to fix a
number of MYISAM specific
    // functions, such as FULLTEXT indexing.
    server_options[3] = const_cast<char*>( "--default-table-type=MYISAM" );
    server_options[4] = const_cast<char*>(
"--default-storage-engine=MYISAM" );
    server_options[5] = const_cast<char*>( "--loose-skip-innodb" );
    server_options[6] = const_cast<char*>( "--skip-grant-tables" );
    server_options[7] = const_cast<char*>( "--myisam-recover=FORCE" );
    server_options[8] = const_cast<char*>( "--character-set-server=utf8" );
    server_options[9] = const_cast<char*>(
"--collation-server=utf8_unicode_ci" );
    server_options[num_elements] = 0;

    char **server_groups = new char* [ 3 ];
    server_groups[0] = const_cast<char*>( "amarokserver" );
    server_groups[1] = const_cast<char*>( "amarokclient" );
    server_groups[2] = 0;

    if( mysql_library_init(num_elements, server_options, server_groups)
!= 0 )
    {
        error() << "MySQL library initialization failed.";
        reportError( "init" );
        return;
    }


You could try adding a line after the "MySQL library initialization
failed" line:

error() << "MySQL return code is " << mysql_errno( m_db );

This should give a numeric value that could be checked against errmsg.h
or mysqld_error.h to see if it reveals anything.

Not sure what else to tell you...

--Jeff

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/amarok/attachments/20091003/247f74e8/attachment.sig>


More information about the Amarok mailing list