0

I have a MySQL database installed on a OpenSuse 11.1 server (it is a Bitnami image).

The database works fine, it can stay many days without any error, but when MySQL receives a huge amount of transactions, it dies immediately. The next screen shows the error:

screenshot of the error

Moreover, I don't know how to restart MySQL. I have tried this:

/opt/bitnami/mysql/bin/mysqld start

But it doesn't work, that gives me the next output:

110209 17:09:01 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

110209 17:09:01 [ERROR] Aborting

110209 17:09:01 [Note] /opt/bitnami/mysql/bin/mysqld.bin: Shutdown complete

It doesn't matter which kind of statements are executing, if they are a huge amount, MySQL dies. The MySQL server version is 5.1.30

What can be causing these sudden failures?

kiewic
  • 175
  • 1
  • 7

2 Answers2

1

It means what it says: MySQL won't run as the root user for security reasons. The init script for MySQL contains some magic to make it run as an unprivileged user. The documentation I found says this is what you want to run:

/opt/bitnami/ctlscript.sh restart mysql
jgoldschrafe
  • 4,395
  • 18
  • 18
1

Hypothesis: OOMKiller is killing your mysql daemon because you're near to out of memory.

Fact: You can't start mysqld directly as root; see [mysqlroot]/bin/mysqld_safe for a daemon wrapper you can start as root.

Jeff Albert
  • 1,987
  • 9
  • 14