I upgraded from 9.10 to 10.04 and had the same problem - mysql not starting.

Originally Posted by
whitefawn
Morning people. I will appreciate any help here.
After the install, mysql 5.1 does not want to start or stop. Commands
/etc/init.d/mysql stop ( or 'stop mysql' , or service mysql stop' )
/etc/init.d/mysql start
do not finish - do not return to command prompt. No log messages insyslog or mysql logs.
Tried this to give me error messages.
Code:
sudo /usr/bin/mysqld_safe --user=mysql
and found this in syslog
Code:
May 7 12:03:22 saturn mysqld_safe: Starting mysqld daemon with databases from /home/dave/dev/data/mysql
May 7 12:03:22 saturn mysqld: 100507 12:03:22 [Warning] option 'thread_stack': unsigned value 128 adjusted to 131072
May 7 12:03:22 saturn mysqld: 100507 12:03:22 [Warning] The syntax '--log' is deprecated and will be removed in MySQL 7.0. Please use '--general_log'/'--general_log_file' instead.
May 7 12:03:22 saturn mysqld: 100507 12:03:22 [Warning] options --log-slow-admin-statements, --log-queries-not-using-indexes and --log-slow-slave-statements have no effect if --log_slow_queries is not set
May 7 12:03:22 saturn mysqld: 100507 12:03:22 [Note] Plugin 'FEDERATED' is disabled.
May 7 12:03:22 saturn mysqld: /usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist
May 7 12:03:22 saturn mysqld: 100507 12:03:22 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
May 7 12:03:22 saturn mysqld: 100507 12:03:22 InnoDB: Started; log sequence number 0 2140736324
May 7 12:03:22 saturn mysqld: 100507 12:03:22 [ERROR] /usr/sbin/mysqld: unknown option '--skip-bdb'
May 7 12:03:22 saturn mysqld: 100507 12:03:22 [ERROR] Aborting
Clue was --skip-bdb. When I had run my upgrade I kept the /etc/mysql/my.cnf file, which contains
Code:
# Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.
skip-bdb
Commenting out that option allowed mysql to start again. Remaining errors in the log were fixed by running mysql_upgrade.
This thread was quite useful in pointing out the red herrings in the error output above. http://lists.mysql.com/mysql/216042
Cheers, Dave
Bookmarks