# uname -a
FreeBSD host 8.2-RELEASE FreeBSD 8.2-RELEASE #4: Sun May 27 04:55:07 EEST 2012 root@:/usr/obj/usr/src/sys/VAL i386# /usr/local/etc/rc.d/mysql-server start
Starting mysql.
pam_login_access: pam_sm_acct_mgmt: mysql is not allowed to log in on /dev/pts/1
su: Sorry
/usr/local/etc/rc.d/mysql-server: WARNING: failed to start mysql
# tail -n 2 /var/log/messages
Jul 27 16:45:00 host su: pam_acct_mgmt: authentication error
Jul 27 16:45:00 host val: /usr/local/etc/rc.d/mysql-server: WARNING: failed to start mysql
# cat /usr/local/etc/my.cnf
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock
[mysqld]
port = 3306
bind-adress = 127.0.0.1
socket = /tmp/mysql.sock
skip-external-locking
key_buffer_size = 128M
max_allowed_packet = 1M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 48M
thread_cache_size = 8
query_cache_size= 16M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 4
# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin
# binary logging format - mixed recommended
binlog_format=mixed
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
safe-updates
[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout