Quantcast
Channel: MySQL Forums - NDB clusters
Viewing all articles
Browse latest Browse all 1562

Installation - Executing mysql_install_db doesn't seem to prepare db correctly... (4 replies)

$
0
0
I compiled from source with the options see below. No errors...

When running mysql_install_db, I get the following output:

<----

Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/local/mysql_cluster_3310/bin/mysqladmin -u root password 'new-password'
/usr/local/mysql_cluster_3310/bin/mysqladmin -u root -h ip-10-116-145-115 password 'new-password'

Alternatively you can run:
/usr/local/mysql_cluster_3310/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr/local/mysql_cluster_3310 ; /usr/local/mysql_cluster_3310/bin/mysqld_safe &

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

Please report any problems with the /usr/local/mysql_cluster_3310/bin/mysqlbug script!
<--

Everything seems ok. However, when executing "mysqld_safe --defaults-file=/usr/local/mysql_cluster_3310/my.cnf --user=mysql", mysqld fails to start up.

The following lines have been written to the log:

110117 17:57:44 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql_cluster_3310/data
110117 17:57:44 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
/usr/local/mysql_cluster_3310/libexec/mysqld: Table 'mysql.plugin' doesn't exist
110117 17:57:44 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
110117 17:57:44 [Note] Starting Cluster Binlog Thread
110117 17:57:44 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
110117 17:57:44 mysqld_safe mysqld from pid file /usr/local/mysql_cluster_3310/data/ip-10-116-145-115.pid ended

According to the log, several tables are missing, although mysql_install_db doesn't output any problems...

Trying to run mysql_install_db a second time results in:

<--
Installing MySQL system tables...
ERROR: 1005 Can't create table 'ndb$tables' (errno: 13)
110117 18:06:23 [ERROR] Aborting

110117 18:06:23 [Note] /usr/local/mysql_cluster_3310/libexec/mysqld: Shutdown complete


Installation of system tables failed! Examine the logs in
/usr/local/mysql_cluster_3310/var for more information.

You can try to start the mysqld daemon with:
...
<--

(Doesen't men anything, but the same installation routine works fine for mysql-5.5.8-linux2.6-i686)

Any ideas how to solve this..?

Viewing all articles
Browse latest Browse all 1562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>