На FreeBSD 6.2-RELEASE был установлен mysql-server-4.1.25,
удалил его и установил другую, более позднюю версию mysql-server-5.5.5_1
После этого демон mysqld перестал загружаться, вот что в журнале:
100806 12:00:46 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
100806 12:00:46 [Warning] option 'thread_stack': unsigned value 65536 adjusted to 131072
100806 12:00:46 [Warning] option 'thread_cache_size': unsigned value 131072 adjusted to 16384
100806 12:00:46 [Warning] option 'thread_stack': unsigned value 65536 adjusted to 131072
100806 12:00:46 [Warning] option 'thread_cache_size': unsigned value 131072 adjusted to 16384
100806 12:00:46 [Note] Buffered information: Performance schema disabled (reason: start parameters).
100806 12:00:46 [Note] Plugin 'FEDERATED' is disabled.
/usr/local/libexec/mysqld: Table 'mysql.plugin' doesn't exist
100806 12:00:46 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use InnoDB's own implementation
InnoDB: Compressed tables use zlib 1.2.3
100806 12:00:46 InnoDB: highest supported file format is Barracuda.
InnoDB: 127 rollback segment(s) active.
100806 12:00:47 InnoDB 1.1.1 started; log sequence number 43634
100806 12:00:47 [ERROR] /usr/local/libexec/mysqld: unknown option '--skip-locking'
100806 12:00:47 [ERROR] Aborting
100806 12:00:47 InnoDB: Starting shutdown...
100806 12:00:52 InnoDB: Shutdown completed; log sequence number 1588724
100806 12:00:52 [Note] /usr/local/libexec/mysqld: Shutdown complete
100806 12:00:52 mysqld_safe mysqld from pid file /var/db/mysql/bx4.msk.vbrr.loc.pid ended
Хорошо, запускаю mysql_upgrade:
/usr/ports/> mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck with default connection arguments
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
/usr/ports/>
Что эта за ошибка такая - Can't connect to local MySQL server through socket '/tmp/mysql.sock'
Вот my.cnf:
[root@bx4] /usr/ports/> cat /var/db/mysql/my.cnf
# Example MySQL config file for small systems.
#
# This is for a system with little memory (<= 64M) where MySQL is only used
# from time to time and it's important that the mysqld daemon
# doesn't use much resources.
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /var/db/mysql) or
# ~/.my.cnf to set user-specific options.
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
### key_buffer = 16K
key_buffer = 256M
###8192K
max_allowed_packet = 1M
###table_cache = 4
table_cache = 512
tmp_table_size = 128M
join_buffer_size = 4M
###2048
query_cache_limit = 2M
query_cache_size = 256M
query_cache_type = 1
sort_buffer_size = 32M
###64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K
###
thread_cache = 128K
#thread_cache_size = 128K
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (using the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking
server-id = 1
# Uncomment the following if you want to log updates
#log-bin
# Uncomment the following if you are NOT using BDB tables
#skip-bdb
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /var/db/mysql/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /var/db/mysql/
#innodb_log_arch_dir = /var/db/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 2
#innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[isamchk]
key_buffer = 8M
sort_buffer_size = 8M
[myisamchk]
key_buffer = 8M
sort_buffer_size = 8M
[mysqlhotcopy]
interactive-timeout
[root@bx4] /usr/ports/>
Посоветуйте, пожалуйста, где настраивать?
В интернете всё облазил ничего не нашёл :-(