Solved Mysql57 won't start after freebsd update

Hi All

I running the following
Code:
 #uname -a
FreeBSD postal.brendhanhorne.com 11.1-RELEASE-p4 FreeBSD 11.1-RELEASE-p4 #0: Tue Nov 14 06:05:10 UTC 2017     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
I have the following installed
Code:
 # pkg info
ImageMagick-6.9.9.28,1         Image processing tools (legacy version)
apache24-2.4.29                Version 2.4.x of Apache web server
apr-1.6.3.1.6.1                Apache Portability Library
avahi-app-0.6.31_5             Service discovery on a local network
ca_root_nss-3.34.1             Root certificate bundle from the Mozilla Project
cairo-1.14.8_1,2               Vector graphics library with cross-device output support
cups-2.2.6                     Common UNIX Printing System
curl-7.57.0                    Command line tool and library for transferring data with URLs
cyrus-sasl-2.1.26_12           RFC 2222 SASL (Simple Authentication and Security Layer)
damageproto-1.2.1              Damage extension headers
db5-5.3.28_6                   Oracle Berkeley DB, revision 5.3
dbus-1.10.16_1                 Message bus system for inter-application communication
dbus-glib-0.108                GLib bindings for the D-BUS messaging system
dejavu-2.37                    Bitstream Vera Fonts clone with a wider range of characters
dri2proto-2.8                  DRI2 prototype headers
encodings-1.0.4_3,1            X.Org Encoding fonts
expat-2.2.5                    XML 1.0 parser written in C
fftw3-3.3.6.p2_2               Fast C routines to compute the Discrete Fourier Transform
fixesproto-5.0                 Fixes extension headers
font-bh-ttf-1.0.3_3            X.Org Bigelow & Holmes TTF font
font-misc-ethiopic-1.0.3_3     X.Org miscellaneous Ethiopic font
font-misc-meltho-1.0.3_3       X.Org miscellaneous Meltho font
font-util-1.3.1                Create an index of X font files in a directory
fontconfig-2.12.1,1            XML-based font configuration API for X Windows
freetype2-2.8_1                Free and portable TrueType font rendering engine
gdbm-1.13_1                    GNU database manager
gdk-pixbuf2-2.36.9             Graphic library for GTK+
gettext-runtime-0.19.8.1_1     GNU gettext runtime libraries and programs
ghostscript9-agpl-base-9.16_5  Ghostscript 9.x PostScript interpreter, base part
ghostscript9-agpl-x11-9.16_2   Ghostscript 9.x PostScript interpreter, X11 support
giflib-5.1.4                   Tools and library routines for working with GIF images
glib-2.50.2_7,1                Some useful routines of C programming (current stable version)
glproto-1.4.17                 GLX extension headers
gmp-6.1.2                      Free library for arbitrary precision arithmetic
gnome_subr-1.0                 Common startup and shutdown subroutines used by GNOME scripts
gnutls-3.5.16                  GNU Transport Layer Security library
gobject-introspection-1.50.0,1 Generate interface introspection data for GObject libraries
graphite2-1.3.10               Rendering capabilities for complex non-Roman writing systems
gsfonts-8.11_8                 Standard Fonts for Ghostscript
harfbuzz-1.7.4                 OpenType text shaping engine
indexinfo-0.3.1                Utility to regenerate the GNU info page index
inputproto-2.3.2               Input extension headers
jasper-1.900.1_17              Implementation of the codec specified in the JPEG-2000 standard
jbig2dec-0.14                  Decoder implementation of the JBIG2 image compression format
jbigkit-2.1_1                  Lossless compression for bi-level images such as scanned pages, faxes
jpeg-turbo-1.5.3               SIMD-accelerated JPEG codec which replaces libjpeg
kbproto-1.0.7                  KB extension headers
lcms2-2.9                      Accurate, fast, and small-footprint color management engine
libICE-1.0.9_1,1               Inter Client Exchange library for X11
libSM-1.2.2_3,1                Session Management library for X11
libX11-1.6.5,1                 X11 library
libXau-1.0.8_3                 Authentication Protocol library for X11
libXaw-1.0.13,2                X Athena Widgets library
libXdamage-1.1.4_3             X Damage extension library
libXdmcp-1.1.2                 X Display Manager Control Protocol library
libXext-1.3.3_1,1              X11 Extension library
libXfixes-5.0.3                X Fixes extension library
libXft-2.3.2_1                 Client-sided font API for X applications
libXi-1.7.9,1                  X Input extension library
libXmu-1.1.2_3,1               X Miscellaneous Utilities libraries
libXp-1.0.3,1                  X print library
libXpm-3.5.12                  X Pixmap library
libXrender-0.9.10              X Render extension library
libXt-1.1.5,1                  X Toolkit library
libXxf86vm-1.1.4_1             X Vidmode Extension
libcroco-0.6.11                CSS2 parsing library
libdaemon-0.14_1               Lightweight C library that eases the writing of UNIX daemons
libdrm-2.4.89,1                Userspace interface to kernel Direct Rendering Module services
libedit-3.1.20170329_2,1       Command line editor library
libevent-2.1.8_1               API for executing callback functions on events or timeouts
libffi-3.2.1_2                 Foreign Function Interface
libfontenc-1.1.3_1             The fontenc Library
libgsf-1.14.41                 Extensible I/O abstraction for dealing with structured file formats
libiconv-1.14_11               Character set conversion library
libidn-1.33_1                  Internationalized Domain Names command line tool
libidn2-2.0.4                  Implementation of IDNA2008 internationalized domain names
liblqr-1-0.4.2                 Easy to use C/C++ seam carving library
libltdl-2.4.6                  System independent dlopen wrapper
liblz4-1.8.0,1                 LZ4 compression library, lossless and very fast
libmcrypt-2.5.8_3              Multi-cipher cryptographic library (used in PHP)
libnghttp2-1.29.0              HTTP/2.0 C Library
libpaper-1.1.24.4              Library providing routines for paper size management
libpciaccess-0.13.5            Generic PCI access library
libpthread-stubs-0.4           This library provides weak aliases for pthread functions
libraw-0.18.5                  Library for manipulating raw images
librsvg2-2.40.17               Library for parsing and rendering SVG vector-graphic files
libtasn1-4.12                  ASN.1 structure parser library
libunistring-0.9.8             Unicode string library
libunwind-20170113_1           Generic stack unwinding library
libwmf-0.2.8.4_15              Tools and library for converting Microsoft WMF (windows metafile)
libxcb-1.12_2                  The X protocol C-language Binding (XCB) library
libxml2-2.9.7                  XML parser library for GNOME
libxshmfence-1.2_2             Shared memory 'SyncFence' synchronization primitive
libzip-1.3.2                   C library for reading, creating, and modifying ZIP archives
mesa-libs-17.3.1               OpenGL libraries that support GLX and EGL clients
mkfontdir-1.0.7                Create an index of X font files in a directory
mkfontscale-1.1.2              Creates an index of scalable font files for X
mod_php56-5.6.32_1             PHP Scripting Language
mysql57-client-5.7.21          Multithreaded SQL database (client)
mysql57-server-5.7.21          Multithreaded SQL database (server)
nettle-3.4                     Low-level cryptographic library
oniguruma6-6.6.1               BSDL Regular Expressions library compatible with POSIX/GNU/Perl
openjpeg-2.3.0                 Open-source JPEG 2000 codec
p11-kit-0.23.9                 Library for loading and enumerating of PKCS#11 modules
pango-1.40.6                   Open-source framework for the layout and rendering of i18n text
pciids-20171206                Database of all known IDs used in PCI devices
pcre-8.40_1                    Perl Compatible Regular Expressions library
perl5-5.24.3                   Practical Extraction and Report Language
php56-5.6.32_1                 PHP Scripting Language
php56-bz2-5.6.32_1             The bz2 shared extension for php
php56-ctype-5.6.32_1           The ctype shared extension for php
php56-filter-5.6.32_1          The filter shared extension for php
php56-gd-5.6.32_1              The gd shared extension for php
php56-json-5.6.32_1            The json shared extension for php
php56-mbstring-5.6.32_1        The mbstring shared extension for php
php56-mcrypt-5.6.32_1          The mcrypt shared extension for php
php56-mysqli-5.6.32_1          The mysqli shared extension for php
php56-openssl-5.6.32_1         The openssl shared extension for php
php56-session-5.6.32_1         The session shared extension for php
php56-xml-5.6.32_1             The xml shared extension for php
php56-zip-5.6.32_1             The zip shared extension for php
php56-zlib-5.6.32_1            The zlib shared extension for php
phpMyAdmin-4.7.7               Set of PHP-scripts to manage MySQL over the web
pixman-0.34.0                  Low-level pixel manipulation library
pkg-1.10.3_1                   Package manager
pkgconf-1.3.10,1               Utility to help to configure compiler and linker flags
png-1.6.34                     Library for manipulating PNG images
portmaster-3.18_4              Manage your ports without external databases or languages
printproto-1.0.5               Print extension headers
protobuf-3.5.1                 Data interchange format library
python2-2_3                    The "meta-port" for version 2 of the Python interpreter
python27-2.7.14_1              Interpreted object-oriented programming language
readline-7.0.3_1               Library for editing command lines as they are typed
renderproto-0.11.1             RenderProto protocol headers
shared-mime-info-1.8           MIME types database from the freedesktop.org project
svgalib-1.4.3_7                Low level console graphics library
t1lib-5.1.2_4,1                Type 1 font rasterization library for Unix/X11
tiff-4.0.9                     Tools and library routines for working with TIFF images
tpm-emulator-0.7.4_2           Trusted Platform Module (TPM) emulator
trousers-0.3.14_2              Open-source TCG Software Stack
webp-0.6.1                     Google WebP image format conversion tool
xcb-util-0.4.0_2,1             Module with libxcb/libX11 extension/replacement libraries
xcb-util-renderutil-0.3.9_1    Convenience functions for the Render extension
xextproto-7.3.0                XExt extension headers
xf86vidmodeproto-2.3.1         XFree86-VidModeExtension extension headers
xorg-fonts-truetype-7.7_1      X.Org TrueType fonts
xproto-7.0.31                  X11 protocol headers

I recently did a freebsd-update -r 11.1-RELEASE upgrade and followed all the steps listed in the handbook. to complete that.

However when I try to do service mysql-server start I get the starting myql message but it never actually starts.

I went to check the error logs located here
Code:
 # cd /var/db/mysql
root@postal:/var/db/mysql # ls -a
.                               mysql
..                              mysql-bin.000001
auto.cnf                        mysql-bin.000002
onedb                       mysql-bin.index
twodb                    performance_schema
threedb                       fourdb
ca-key.pem                      postal-slow.log
ca.pem                          postal.brendhanhorne.com.err
client-cert.pem                 private_key.pem
client-key.pem                  public_key.pem
ib_buffer_pool                  server-cert.pem
ib_logfile0                     server-key.pem
ib_logfile1                     sys
ibdata1                         test
The postal.brendhanhorne.com.err does not really show anything.

Code:
2018-01-24T19:17:01.245928Z 0 [Note] /usr/local/libexec/mysqld: Shutdown complete

2018-01-24T19:17:01.6NZ mysqld_safe mysqld from pid file /var/db/mysql/postal.brendhanhorne.com.pid ended

All of which is from the last reboot that I can tell.

Also here is the my.cnf
Code:
# $FreeBSD: branches/2018Q1/databases/mysql57-server/files/my.cnf.sample.in 414707 2016-05-06 14:39:59Z riggs $

[client]
port                            = 3306
socket                          = /tmp/mysql.sock

[mysql]
prompt                          = \u@\h [\d]>\_
no_auto_rehash

[mysqld]
user                            = mysql
port                            = 3306
socket                          = /tmp/mysql.sock
bind-address                    = 127.0.0.1
basedir                         = /usr/local
datadir                         = /var/db/mysql
tmpdir                          = /var/db/mysql_tmpdir
slave-load-tmpdir               = /var/db/mysql_tmpdir
secure-file-priv                = /var/db/mysql_secure
log-bin                         = mysql-bin
log-output                      = TABLE
master-info-repository          = TABLE
relay-log-info-repository       = TABLE
relay-log-recovery              = 1
slow-query-log                  = 1
server-id                       = 1
sync_binlog                     = 1
sync_relay_log                  = 1
binlog_cache_size               = 16M
expire_logs_days                = 30
default_password_lifetime       = 0
enforce-gtid-consistency        = 1
gtid-mode                       = ON
safe-user-create                = 1
lower_case_table_names          = 1
explicit-defaults-for-timestamp = 1
myisam-recover-options          = BACKUP,FORCE
open_files_limit                = 32768
table_open_cache                = 16384
table_definition_cache          = 8192
net_retry_count                 = 16384
key_buffer_size                 = 256M
max_allowed_packet              = 64M
query_cache_type                = 0
query_cache_size                = 0
long_query_time                 = 0.5
innodb_buffer_pool_size         = 1G
innodb_data_home_dir            = /var/db/mysql
innodb_log_group_home_dir       = /var/db/mysql
innodb_data_file_path           = ibdata1:128M:autoextend
innodb_temp_data_file_path      = ibtmp1:128M:autoextend
innodb_flush_method             = O_DIRECT
innodb_log_file_size            = 256M
innodb_log_buffer_size          = 16M
innodb_write_io_threads         = 8
innodb_read_io_threads          = 8
innodb_autoinc_lock_mode        = 2
skip-symbolic-links

[mysqldump]
max_allowed_packet              = 256M
quote_names
quick

So basically I am trying to find out why MySQL is not starting.

Thank you in advance.
 
Did you start with FreeBSD 10.x before your upgrade?
Looks like amd64 platform.

What is the output of: ?
Code:
/usr/local/libexec/mysqld --help

Maybe try:
Code:
pkg install compat10x-amd64

and then try to start it again.
 
Hi,

Thank you, Yes I did go from 10.3

I am following your steps.
Code:
root@postal:~ # /usr/local/libexec/mysqld --help
/usr/local/libexec/mysqld  Ver 5.7.21-log for FreeBSD11.1 on i386 (Source distribution)
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Starts the MySQL database server.

Usage: /usr/local/libexec/mysqld [OPTIONS]

For more help options (several pages), use mysqld --verbose --help.

then it gets weird

Code:
root@postal:~ # pkg install compat10x-amd64
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'compat10x-amd64' have been found in the repositories
root@postal:~ #

I checked freshports.org and it is there but for some reason the pkg can't see it.
I can attempt to install it from the ports.

Sincerely,
Brendhan
 
Well, it looks like you have the packages up to date for 11.1. So compat10x is likely not the solution.

Can you also see what: (warning long output)

Code:
sh -x /usr/local/etc/rc.d/mysql-server start

contains?

As well as

Code:
tail -20 /var/db/mysql/postal.brendhanhorne.com.err
 
You were right that is a huge amount of output.

Code:
root@postal:~ # sh -x /usr/local/etc/rc.d/mysql-server start
+ . /etc/rc.subr
+ : 4902
+ export RC_PID
+ [ -z '' ]
+ _rc_subr_loaded=YES
+ SYSCTL=/sbin/sysctl
+ SYSCTL_N='/sbin/sysctl -n'
+ SYSCTL_W=/sbin/sysctl
+ PROTECT=/usr/bin/protect
+ ID=/usr/bin/id
+ IDCMD='if [ -x /usr/bin/id ]; then /usr/bin/id -un; fi'
+ PS='/bin/ps -ww'
+ /bin/ps -ww -p 4902 -o 'jid='
+ JID=0
+ _rc_namevarlist='program chroot chdir env flags fib nice user group groups prepend'
+ _rc_subr_loaded=:
+ name=mysql
+ rcvar=mysql_enable
+ load_rc_config mysql
+ local _name _rcvar_val _var _defval _v _msg _new _d
+ _name=mysql
+ false
+ [ -r /etc/defaults/rc.conf ]
+ debug 'Sourcing /etc/defaults/rc.conf'
+ . /etc/defaults/rc.conf
+ rc_info=NO
+ rc_startmsgs=YES
+ rcshutdown_timeout=90
+ early_late_divider=FILESYSTEMS
+ always_force_depends=NO
+ apm_enable=NO
+ apmd_enable=NO
+ apmd_flags=''
+ ddb_enable=NO
+ ddb_config=/etc/ddb.conf
+ devd_enable=YES
+ devd_flags=''
+ kldxref_enable=NO
+ kldxref_clobber=NO
+ kldxref_module_path=''
+ powerd_enable=NO
+ powerd_flags=''
+ tmpmfs=AUTO
+ tmpsize=20m
+ tmpmfs_flags=-S
+ varmfs=AUTO
+ varsize=32m
+ varmfs_flags=-S
+ populate_var=AUTO
+ cleanvar_enable=YES
+ local_startup=/usr/local/etc/rc.d
+ script_name_sep=' '
+ rc_conf_files='/etc/rc.conf /etc/rc.conf.local'
+ zfs_enable=NO
+ zfsd_enable=NO
+ gptboot_enable=YES
+ gbde_autoattach_all=NO
+ gbde_devices=NO
+ gbde_attach_attempts=3
+ gbde_lockdir=/etc
+ geli_devices=''
+ geli_tries=''
+ geli_default_flags=''
+ geli_autodetach=YES
+ root_rw_mount=YES
+ root_hold_delay=30
+ fsck_y_enable=NO
+ fsck_y_flags=''
+ background_fsck=YES
+ background_fsck_delay=60
+ netfs_types='nfs:NFS smbfs:SMB'
+ extra_netfs_types=NO
+ hostname=''
+ hostid_enable=YES
+ hostid_file=/etc/hostid
+ nisdomainname=NO
+ dhclient_program=/sbin/dhclient
+ dhclient_flags=''
+ background_dhclient=NO
+ synchronous_dhclient=NO
+ defaultroute_delay=30
+ defaultroute_carrier_delay=5
+ netif_enable=YES
+ netif_ipexpand_max=2048
+ wpa_supplicant_program=/usr/sbin/wpa_supplicant
+ wpa_supplicant_flags=-s
+ wpa_supplicant_conf_file=/etc/wpa_supplicant.conf
+ firewall_enable=NO
+ firewall_script=/etc/rc.firewall
+ firewall_type=UNKNOWN
+ firewall_quiet=NO
+ firewall_logging=NO
+ firewall_logif=NO
+ firewall_flags=''
+ firewall_coscripts=''
+ firewall_client_net=192.0.2.0/24
+ firewall_simple_iif=ed1
+ firewall_simple_inet=192.0.2.16/28
+ firewall_simple_oif=ed0
+ firewall_simple_onet=192.0.2.0/28
+ firewall_myservices=''
+ firewall_allowservices=''
+ firewall_trusted=''
+ firewall_logdeny=NO
+ firewall_nologports='135-139,445 1026,1027 1433,1434'
+ firewall_nat_enable=NO
+ firewall_nat_interface=''
+ firewall_nat_flags=''
+ dummynet_enable=NO
+ ip_portrange_first=NO
+ ip_portrange_last=NO
+ ike_enable=NO
+ ike_program=/usr/local/sbin/isakmpd
+ ike_flags=''
+ ipsec_enable=NO
+ ipsec_file=/etc/ipsec.conf
+ natd_program=/sbin/natd
+ natd_enable=NO
+ natd_interface=''
+ natd_flags=''
+ ipfilter_enable=NO
+ ipfilter_program=/sbin/ipf
+ ipfilter_rules=/etc/ipf.rules
+ ipfilter_flags=''
+ ipnat_enable=NO
+ ipnat_program=/sbin/ipnat
+ ipnat_rules=/etc/ipnat.rules
+ ipnat_flags=''
+ ipmon_enable=NO
+ ipmon_program=/sbin/ipmon
+ ipmon_flags=-Ds
+ ipfs_enable=NO
+ ipfs_program=/sbin/ipfs
+ ipfs_flags=''
+ pf_enable=NO
+ pf_rules=/etc/pf.conf
+ pf_program=/sbin/pfctl
+ pf_flags=''
+ pflog_enable=NO
+ pflog_logfile=/var/log/pflog
+ pflog_program=/sbin/pflogd
+ pflog_flags=''
+ ftpproxy_enable=NO
+ ftpproxy_flags=''
+ pfsync_enable=NO
+ pfsync_syncdev=''
+ pfsync_syncpeer=''
+ pfsync_ifconfig=''
+ tcp_extensions=YES
+ log_in_vain=0
+ tcp_keepalive=YES
+ tcp_drop_synfin=NO
+ icmp_drop_redirect=NO
+ icmp_log_redirect=NO
+ network_interfaces=auto
+ cloned_interfaces=''
+ sppp_interfaces=''
+ ppp_enable=NO
+ ppp_program=/usr/sbin/ppp
+ ppp_mode=auto
+ ppp_nat=YES
+ ppp_profile=papchap
+ ppp_user=root
+ hostapd_enable=NO
+ syslogd_enable=YES
+ syslogd_program=/usr/sbin/syslogd
+ syslogd_flags=-s
+ syslogd_oomprotect=YES
+ altlog_proglist=''
+ inetd_enable=NO
+ inetd_program=/usr/sbin/inetd
+ inetd_flags='-wW -C 60'
+ iscsid_enable=NO
+ iscsictl_enable=NO
+ iscsictl_flags=-Aa
+ hastd_enable=NO
+ hastd_program=/sbin/hastd
+ hastd_flags=''
+ ctld_enable=NO
+ local_unbound_enable=NO
+ blacklistd_enable=NO
+ blacklistd_flags=''
+ kdc_enable=NO
+ kdc_program=/usr/libexec/kdc
+ kdc_flags=''
+ kadmind_enable=NO
+ kadmind_program=/usr/libexec/kadmind
+ kpasswdd_enable=NO
+ kpasswdd_program=/usr/libexec/kpasswdd
+ kfd_enable=NO
+ kfd_program=/usr/libexec/kfd
+ kfd_flags=''
+ ipropd_master_enable=NO
+ ipropd_master_program=/usr/libexec/ipropd-master
+ ipropd_master_flags=''
+ ipropd_master_keytab=/etc/krb5.keytab
+ ipropd_master_slaves=''
+ ipropd_slave_enable=NO
+ ipropd_slave_program=/usr/libexec/ipropd-slave
+ ipropd_slave_flags=''
+ ipropd_slave_keytab=/etc/krb5.keytab
+ ipropd_slave_master=''
+ gssd_enable=NO
+ gssd_program=/usr/sbin/gssd
+ gssd_flags=''
+ rwhod_enable=NO
+ rwhod_flags=''
+ rarpd_enable=NO
+ rarpd_flags=-a
+ bootparamd_enable=NO
+ bootparamd_flags=''
+ pppoed_enable=NO
+ pppoed_provider='*'
+ pppoed_flags='-P /var/run/pppoed.pid'
+ pppoed_interface=fxp0
+ sshd_enable=NO
+ sshd_program=/usr/sbin/sshd
+ sshd_flags=''
+ ftpd_enable=NO
+ ftpd_program=/usr/libexec/ftpd
+ ftpd_flags=''
+ amd_enable=NO
+ amd_program=/usr/sbin/amd
+ amd_flags='-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map'
+ amd_map_program=NO
+ autofs_enable=NO
+ automount_flags=''
+ automountd_flags=''
+ autounmountd_flags=''
+ nfs_client_enable=NO
+ nfs_access_cache=60
+ nfs_server_enable=NO
+ nfs_server_flags='-u -t'
+ nfs_server_managegids=NO
+ mountd_enable=NO
+ mountd_flags='-r -S'
+ weak_mountd_authentication=NO
+ nfs_reserved_port_only=NO
+ nfs_bufpackets=''
+ rpc_lockd_enable=NO
+ rpc_lockd_flags=''
+ rpc_statd_enable=NO
+ rpc_statd_flags=''
+ rpcbind_enable=NO
+ rpcbind_program=/usr/sbin/rpcbind
+ rpcbind_flags=''
+ rpc_ypupdated_enable=NO
+ keyserv_enable=NO
+ keyserv_flags=''
+ nfsv4_server_enable=NO
+ nfscbd_enable=NO
+ nfscbd_flags=''
+ nfsuserd_enable=NO
+ nfsuserd_flags=''
+ timed_enable=NO
+ timed_flags=''
+ ntpdate_enable=NO
+ ntpdate_program=/usr/sbin/ntpdate
+ ntpdate_flags=-b
+ ntpdate_config=/etc/ntp.conf
+ ntpdate_hosts=''
+ ntpd_enable=NO
+ ntpd_program=/usr/sbin/ntpd
+ ntpd_config=/etc/ntp.conf
+ ntpd_sync_on_start=NO
+ ntpd_flags='-p /var/run/ntpd.pid -f /var/db/ntpd.drift'
+ ntp_src_leapfile=/etc/ntp/leap-seconds
+ ntp_db_leapfile=/var/db/ntpd.leap-seconds.list
+ ntp_leapfile_sources=https://www.ietf.org/timezones/data/leap-seconds.list
+ ntp_leapfile_fetch_opts=-mq
+ ntp_leapfile_expiry_days=30
+ ntp_leapfile_fetch_verbose=NO
+ nis_client_enable=NO
+ nis_client_flags=''
+ nis_ypset_enable=NO
+ nis_ypset_flags=''
+ nis_server_enable=NO
+ nis_server_flags=''
+ nis_ypxfrd_enable=NO
+ nis_ypxfrd_flags=''
+ nis_yppasswdd_enable=NO
+ nis_yppasswdd_flags=''
+ nis_ypldap_enable=NO
+ nis_ypldap_flags=''
+ bsnmpd_enable=NO
+ bsnmpd_flags=''
+ defaultrouter=NO
+ static_arp_pairs=''
+ static_ndp_pairs=''
+ static_routes=''
+ natm_static_routes=''
+ gateway_enable=NO
+ routed_enable=NO
+ routed_program=/sbin/routed
+ routed_flags=-q
+ arpproxy_all=NO
+ forward_sourceroute=NO
+ accept_sourceroute=NO
+ atm_enable=NO
+ atm_pvcs=''
+ atm_arps=''
+ hcsecd_enable=NO
+ hcsecd_config=/etc/bluetooth/hcsecd.conf
+ sdpd_enable=NO
+ sdpd_control=/var/run/sdp
+ sdpd_groupname=nobody
+ sdpd_username=nobody
+ bthidd_enable=NO
+ bthidd_config=/etc/bluetooth/bthidd.conf
+ bthidd_hids=/var/db/bthidd.hids
+ rfcomm_pppd_server_enable=NO
+ rfcomm_pppd_server_profile='one two'
+ rfcomm_pppd_server_one_channel=1
+ rfcomm_pppd_server_two_channel=3
+ ubthidhci_enable=NO
+ netwait_enable=NO
+ netwait_timeout=60
+ netwait_if_timeout=30
+ icmp_bmcastecho=NO

Output to follow in next reply
 
Code:
+ ipv6_network_interfaces=auto
+ ipv6_activate_all_interfaces=NO
+ ipv6_defaultrouter=NO
+ ipv6_static_routes=''
+ ipv6_gateway_enable=NO
+ ipv6_cpe_wanif=NO
+ ipv6_privacy=NO
+ route6d_enable=NO
+ route6d_program=/usr/sbin/route6d
+ route6d_flags=''
+ ipv6_default_interface=NO
+ rtsol_flags=''
+ rtsold_enable=NO
+ rtsold_flags=-a
+ rtadvd_enable=NO
+ rtadvd_interfaces=''
+ mroute6d_enable=NO
+ mroute6d_program=/usr/local/sbin/pim6dd
+ mroute6d_flags=''
+ stf_interface_ipv4addr=''
+ stf_interface_ipv4plen=0
+ stf_interface_ipv6_ifid=0:0:0:1
+ stf_interface_ipv6_slaid=0000
+ ipv6_ipv4mapping=NO
+ ipv6_ipfilter_rules=/etc/ipf6.rules
+ ip6addrctl_enable=YES
+ ip6addrctl_verbose=NO
+ ip6addrctl_policy=AUTO
+ keyboard=''
+ keymap=NO
+ keyrate=NO
+ keybell=NO
+ keychange=NO
+ cursor=NO
+ scrnmap=NO
+ font8x16=NO
+ font8x14=NO
+ font8x8=NO
+ blanktime=300
+ saver=NO
+ moused_nondefault_enable=YES
+ moused_enable=NO
+ moused_type=auto
+ moused_port=/dev/psm0
+ moused_flags=''
+ mousechar_start=NO
+ allscreens_flags=''
+ allscreens_kbdflags=''
+ mta_start_script=/etc/rc.sendmail
+ sendmail_enable=NO
+ sendmail_pidfile=/var/run/sendmail.pid
+ sendmail_procname=/usr/sbin/sendmail
+ sendmail_flags='-L sm-mta -bd -q30m'
+ sendmail_cert_create=YES
+ sendmail_submit_enable=YES
+ sendmail_submit_flags='-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost'
+ sendmail_outbound_enable=YES
+ sendmail_outbound_flags='-L sm-queue -q30m'
+ sendmail_msp_queue_enable=YES
+ sendmail_msp_queue_flags='-L sm-msp-queue -Ac -q30m'
+ sendmail_rebuild_aliases=NO
+ auditd_enable=NO
+ auditd_program=/usr/sbin/auditd
+ auditd_flags=''
+ auditdistd_enable=NO
+ auditdistd_program=/usr/sbin/auditdistd
+ auditdistd_flags=''
+ cron_enable=YES
+ cron_program=/usr/sbin/cron
+ cron_dst=YES
+ cron_flags=''
+ lpd_enable=NO
+ lpd_program=/usr/sbin/lpd
+ lpd_flags=''
+ nscd_enable=NO
+ chkprintcap_enable=NO
+ chkprintcap_flags=-d
+ dumpdev=NO
+ dumpdir=/var/crash
+ savecore_enable=YES
+ savecore_flags='-m 10'
+ crashinfo_enable=YES
+ crashinfo_program=/usr/sbin/crashinfo
+ quota_enable=NO
+ check_quotas=YES
+ quotaon_flags=-a
+ quotaoff_flags=-a
+ quotacheck_flags=-a
+ accounting_enable=NO
+ ibcs2_enable=NO
+ ibcs2_loaders=coff
+ firstboot_sentinel=/firstboot
+ sysvipc_enable=NO
+ linux_enable=NO
+ svr4_enable=NO
+ clear_tmp_enable=NO
+ clear_tmp_X=YES
+ ldconfig_insecure=NO
+ ldconfig_paths='/usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg'
+ ldconfig32_paths='/usr/lib32 /usr/lib32/compat'
+ ldconfigsoft_paths='/usr/libsoft /usr/libsoft/compat /usr/local/libsoft'
+ ldconfig_paths_aout='/usr/lib/compat/aout /usr/local/lib/aout'
+ ldconfig_local_dirs=/usr/local/libdata/ldconfig
+ ldconfig_local32_dirs=/usr/local/libdata/ldconfig32
+ ldconfig_localsoft_dirs=/usr/local/libdata/ldconfigsoft
+ kern_securelevel_enable=NO
+ kern_securelevel=-1
+ update_motd=YES
+ entropy_boot_file=/boot/entropy
+ entropy_file=/entropy
+ entropy_dir=/var/db/entropy
+ entropy_save_sz=4096
+ entropy_save_num=8
+ harvest_mask=511
+ dmesg_enable=YES
+ watchdogd_enable=NO
+ watchdogd_flags=''
+ devfs_rulesets='/etc/defaults/devfs.rules /etc/devfs.rules'
+ devfs_system_ruleset=''
+ devfs_set_rulesets=''
+ devfs_load_rulesets=YES
+ performance_cx_lowest=C2
+ performance_cpu_freq=NONE
+ economy_cx_lowest=Cmax
+ economy_cpu_freq=NONE
+ virecover_enable=YES
+ ugidfw_enable=NO
+ bsdextended_script=/etc/rc.bsdextended
+ newsyslog_enable=YES
+ newsyslog_flags=-CN
+ mixer_enable=YES
+ opensm_enable=NO
+ rctl_enable=YES
+ rctl_rules=/etc/rctl.conf
+ iovctl_files=''
+ jail_enable=NO
+ jail_confwarn=YES
+ jail_parallel_start=NO
+ jail_list=''
+ jail_reverse_stop=NO
+ [ -z '' ]
+ source_rc_confs_defined=yes
+ [ -r /etc/defaults/vendor.conf ]
+ source_rc_confs
+ local i sourced_files
+ sourced_files=:/etc/rc.conf:
+ [ -r /etc/rc.conf ]
+ . /etc/rc.conf
+ hostname=postal.brendhanhorne.com
+ ifconfig_em0='inet 65.15.33.146 netmask 255.255.255.240'
+ defaultrouter=65.15.33.145
+ moused_enable=YES
+ ntpd_enable=YES
+ ntpd_sync_on_start=YES
+ dumpdev=AUTO
+ sshd_enable=YES
+ mysql_enable=YES
+ mysql_dbdir=/usr/local/var/db/mysql
+ mysql_pid=/var/run/mysqld
+ apache24_enable=YES
+ apache24_profiles=''
+ apache24limits_enable=NO
+ apache24_flags=''
+ apache24limit_args=''
+ apache24_http_accept_enable=YES
+ nfs_client_enable=YES
+ rpc_lockd_enable=YES
+ rpc_statd_enable=YES
+ sourced_files=:/etc/rc.conf::/etc/rc.conf.local:
+ [ -r /etc/rc.conf.local ]
+ _rc_conf_loaded=true
+ [ -n mysql ]
+ _d=/etc
+ [ -f /etc/rc.conf.d/mysql ]
+ [ -d /etc/rc.conf.d/mysql ]
+ _d=/usr/local/etc
+ [ -f /usr/local/etc/rc.conf.d/mysql ]
+ [ -d /usr/local/etc/rc.conf.d/mysql ]
+ eval '_defval=$mysql_enable_defval'
+ _defval=''
+ [ -n '' ]
+ : YES
+ : NO
+ : /usr/local/var/db/mysql
+ : /usr/local/etc/mysql
+ [ -f /usr/local/etc/mysql/my.cnf ]
+ : /usr/local/etc/mysql/my.cnf
+ [ ! -z /usr/local/etc/mysql/my.cnf ]
+ mysql_extra='--defaults-extra-file=/usr/local/etc/mysql/my.cnf'
+ mysql_user=mysql
+ mysql_limits_args='-e -U mysql'
+ : postal.brendhanhorne.com
+ pidfile=/usr/local/var/db/mysql/postal.brendhanhorne.com.pid
+ command=/usr/sbin/daemon
+ command_args='-c -f /usr/local/bin/mysqld_safe --defaults-extra-file=/usr/local/etc/mysql/my.cnf --basedir=/usr/local --datadir=/usr/local/var/db/mysql --pid-file=/usr/local/var/db/mysql/postal.brendhanhorne.com.pid --user=mysql   '
+ procname=/usr/local/libexec/mysqld
+ start_precmd=mysql_prestart
+ start_postcmd=mysql_poststart
+ mysql_install_db=/usr/local/bin/mysql_install_db
+ mysql_install_db_args='--defaults-extra-file=/usr/local/etc/mysql/my.cnf --basedir=/usr/local --datadir=/usr/local/var/db/mysql --mysqld-file=/usr/local/libexec/mysqld --user=mysql'
+ run_rc_command start
+ _return=0
+ rc_arg=start
+ [ -z mysql ]
+ shift 1
+ rc_extra_args=''
+ _rc_prefix=''
+ eval '_override_command=$mysql_program'
+ _override_command=''
+ command=/usr/sbin/daemon
+ _keywords='start stop restart rcvar enabled describe extracommands '
+ rc_pid=''
+ _pidcmd=''
+ _procname=/usr/local/libexec/mysqld
+ [ -n /usr/local/libexec/mysqld ]
+ [ -n /usr/local/var/db/mysql/postal.brendhanhorne.com.pid ]
+ _pidcmd='rc_pid=$(check_pidfile /usr/local/var/db/mysql/postal.brendhanhorne.com.pid /usr/local/libexec/mysqld )'
+ [ -n 'rc_pid=$(check_pidfile /usr/local/var/db/mysql/postal.brendhanhorne.com.pid /usr/local/libexec/mysqld )' ]
+ _keywords='start stop restart rcvar enabled describe extracommands  status poll'
+ [ -z start ]
+ [ start '=' enabled ]
+ [ -n '' ]
+ eval 'rc_flags=$mysql_flags'
+ rc_flags=''
+ eval '_chdir=$mysql_chdir' '_chroot=$mysql_chroot' '_nice=$mysql_nice' '_user=$mysql_user' '_group=$mysql_group' '_groups=$mysql_groups' '_fib=$mysql_fib' '_env=$mysql_env' '_prepend=$mysql_prepend' '_login_class=${mysql_login_class:-daemon}' '_oomprotect=$mysql_oomprotect'
+ _chdir='' _chroot='' _nice='' _user=mysql _group='' _groups='' _fib='' _env='' _prepend='' _login_class=daemon _oomprotect=''
+ [ -n mysql ]
+ eval if [ -x /usr/bin/id '];' then /usr/bin/id '-un;' fi
+ [ -x /usr/bin/id ]
+ /usr/bin/id -un
+ [ mysql '=' root ]
+ [ -z '' ]
+ eval 'rc_pid=$(check_pidfile' /usr/local/var/db/mysql/postal.brendhanhorne.com.pid /usr/local/libexec/mysqld ')'
+ check_pidfile /usr/local/var/db/mysql/postal.brendhanhorne.com.pid /usr/local/libexec/mysqld
+ _pidfile=/usr/local/var/db/mysql/postal.brendhanhorne.com.pid
+ _procname=/usr/local/libexec/mysqld
+ _interpreter=''
+ [ -z /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -o -z /usr/local/libexec/mysqld ]
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid ]
+ debug 'pid file (/usr/local/var/db/mysql/postal.brendhanhorne.com.pid): not readable.'
+ return
+ rc_pid=''
+ [ start '!=' start ]
+ [ -n mysql_enable -a start '!=' rcvar -a start '!=' stop -a start '!=' describe ]
+ checkyesno mysql_enable
+ eval '_value=$mysql_enable'
+ _value=YES
+ debug 'checkyesno: mysql_enable is set to YES.'
+ return 0
+ [ start '=' start -a -z '' -a -n '' ]
+ eval '_cmd=$start_cmd' '_precmd=$start_precmd' '_postcmd=$start_postcmd'
+ _cmd='' _precmd=mysql_prestart _postcmd=mysql_poststart
+ [ -n '' ]
+ [ ! -x /usr/sbin/daemon ]
+ _run_rc_precmd
+ check_required_before start
+ local _f
+ return 0
+ [ -n mysql_prestart ]
+ debug 'run_rc_command: start_precmd: mysql_prestart '
+ eval 'mysql_prestart '
+ mysql_prestart
+ [ ! -d /usr/local/var/db/mysql/mysql/. ]
+ checkyesno mysql_limits
+ eval '_value=$mysql_limits'
+ _value=NO
+ debug 'checkyesno: mysql_limits is set to NO.'
+ return 1
+ return 0
+ _return=0
+ [ 0 -ne 0 ]
+ check_required_after start
+ local _f _args
+ return 0
+ return 0
+ check_startmsgs
+ [ -n '' ]
+ return 0
+ echo 'Starting mysql.'
Starting mysql.
+ [ -n '' ]
+ _cd=''
+ _doit='/usr/sbin/daemon  -c -f /usr/local/bin/mysqld_safe --defaults-extra-file=/usr/local/etc/mysql/my.cnf --basedir=/usr/local --datadir=/usr/local/var/db/mysql --pid-file=/usr/local/var/db/mysql/postal.brendhanhorne.com.pid --user=mysql   '
+ [ -n mysql ]
+ _doit=$'su -m mysql -c \'sh -c "/usr/sbin/daemon  -c -f /usr/local/bin/mysqld_safe --defaults-extra-file=/usr/local/etc/mysql/my.cnf --basedir=/usr/local --datadir=/usr/local/var/db/mysql --pid-file=/usr/local/var/db/mysql/postal.brendhanhorne.com.pid --user=mysql   "\''
+ [ -n '' ]
+ [ -n '' ]
+ _doit=$' limits -C daemon su -m mysql -c \'sh -c "/usr/sbin/daemon  -c -f /usr/local/bin/mysqld_safe --defaults-extra-file=/usr/local/etc/mysql/my.cnf --basedir=/usr/local --datadir=/usr/local/var/db/mysql --pid-file=/usr/local/var/db/mysql/postal.brendhanhorne.com.pid --user=mysql   "\''
+ _run_rc_doit $' limits -C daemon su -m mysql -c \'sh -c "/usr/sbin/daemon  -c -f /usr/local/bin/mysqld_safe --defaults-extra-file=/usr/local/etc/mysql/my.cnf --basedir=/usr/local --datadir=/usr/local/var/db/mysql --pid-file=/usr/local/var/db/mysql/postal.brendhanhorne.com.pid --user=mysql   "\''
+ debug $'run_rc_command: doit:  limits -C daemon su -m mysql -c \'sh -c "/usr/sbin/daemon  -c -f /usr/local/bin/mysqld_safe --defaults-extra-file=/usr/local/etc/mysql/my.cnf --basedir=/usr/local --datadir=/usr/local/var/db/mysql --pid-file=/usr/local/var/db/mysql/postal.brendhanhorne.com.pid --user=mysql   "\''
+ eval $' limits -C daemon su -m mysql -c \'sh -c "/usr/sbin/daemon  -c -f /usr/local/bin/mysqld_safe --defaults-extra-file=/usr/local/etc/mysql/my.cnf --basedir=/usr/local --datadir=/usr/local/var/db/mysql --pid-file=/usr/local/var/db/mysql/postal.brendhanhorne.com.pid --user=mysql   "\''
+ limits -C daemon su -m mysql -c 'sh -c "/usr/sbin/daemon  -c -f /usr/local/bin/mysqld_safe --defaults-extra-file=/usr/local/etc/mysql/my.cnf --basedir=/usr/local --datadir=/usr/local/var/db/mysql --pid-file=/usr/local/var/db/mysql/postal.brendhanhorne.com.pid --user=mysql   "'
+ _return=0
+ [ 0 -ne 0 ]
+ return 0
+ _run_rc_postcmd
+ [ -n mysql_poststart ]
+ debug 'run_rc_command: start_postcmd: mysql_poststart '
+ eval 'mysql_poststart '
+ mysql_poststart
+ local 'timeout=15'
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 15 -gt 0 ]
+ timeout=14
+ sleep 1
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 14 -gt 0 ]
+ timeout=13
+ sleep 1
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 13 -gt 0 ]
+ timeout=12
+ sleep 1
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 12 -gt 0 ]
+ timeout=11
+ sleep 1
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 11 -gt 0 ]
+ timeout=10
+ sleep 1
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 10 -gt 0 ]
+ timeout=9
+ sleep 1
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 9 -gt 0 ]
+ timeout=8
+ sleep 1
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 8 -gt 0 ]
+ timeout=7
+ sleep 1
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 7 -gt 0 ]
+ timeout=6
+ sleep 1
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 6 -gt 0 ]
+ timeout=5
+ sleep 1
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 5 -gt 0 ]
+ timeout=4
+ sleep 1
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 4 -gt 0 ]
+ timeout=3
+ sleep 1
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 3 -gt 0 ]
+ timeout=2
+ sleep 1
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 2 -gt 0 ]
+ timeout=1
+ sleep 1
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 1 -gt 0 ]
+ timeout=0
+ sleep 1
+ [ ! -f /usr/local/var/db/mysql/postal.brendhanhorne.com.pid -a 0 -gt 0 ]
+ return 0
+ _return=0
+ return 0
+ [ -n '' ]
+ return 0
root@postal:~ #

and one more reply
 
Code:
root@postal:~ # tail -20 /var/db/mysql/postal.brendhanhorne.com.err
2018-01-24T19:16:59.349233Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2018-01-24T19:16:59.349245Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2018-01-24T19:16:59.349257Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2018-01-24T19:16:59.349269Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2018-01-24T19:16:59.349281Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2018-01-24T19:16:59.349293Z 0 [Note] Shutting down plugin 'InnoDB'
2018-01-24T19:16:59.349369Z 0 [Note] InnoDB: FTS optimize thread exiting.
2018-01-24T19:16:59.349491Z 0 [Note] InnoDB: Starting shutdown...
2018-01-24T19:16:59.456826Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/db/mysql/ib_buffer_pool
2018-01-24T19:16:59.457475Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 180124 14:16:59
2018-01-24T19:17:01.217273Z 0 [Note] InnoDB: Shutdown completed; log sequence number 13754622
2018-01-24T19:17:01.217691Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2018-01-24T19:17:01.217716Z 0 [Note] Shutting down plugin 'MEMORY'
2018-01-24T19:17:01.217731Z 0 [Note] Shutting down plugin 'CSV'
2018-01-24T19:17:01.217745Z 0 [Note] Shutting down plugin 'sha256_password'
2018-01-24T19:17:01.217757Z 0 [Note] Shutting down plugin 'mysql_native_password'
2018-01-24T19:17:01.218064Z 0 [Note] Shutting down plugin 'binlog'
2018-01-24T19:17:01.245928Z 0 [Note] /usr/local/libexec/mysqld: Shutdown complete

2018-01-24T19:17:01.6NZ mysqld_safe mysqld from pid file /var/db/mysql/postal.brendhanhorne.com.pid ended
root@postal:~ #

Thank you in advance again.
 
Code:
root@postal:~ # tail -200 /var/db/mysql/postal.brendhanhorne.com.err
2018-01-19T13:42:12.6NZ mysqld_safe Logging to '/var/db/mysql/postal.brendhanhorne.com.err'.
2018-01-19T13:42:12.6NZ mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
2018-01-19T13:42:12.621687Z 0 [Note] /usr/local/libexec/mysqld (mysqld 5.7.21-log) starting as process 74792 ...
2018-01-19T13:42:12.677627Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-01-19T13:42:12.677695Z 0 [Note] InnoDB: Uses event mutexes
2018-01-19T13:42:12.677713Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2018-01-19T13:42:12.677729Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2018-01-19T13:42:12.678384Z 0 [Note] InnoDB: Number of pools: 1
2018-01-19T13:42:12.678602Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2018-01-19T13:42:12.681351Z 0 [Note] InnoDB: Initializing buffer pool, total size = 1G, instances = 8, chunk size = 128M
2018-01-19T13:42:12.959154Z 0 [Note] InnoDB: Completed initialization of buffer pool
2018-01-19T13:42:13.097574Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2018-01-19T13:42:13.252761Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2018-01-19T13:42:13.252993Z 0 [Note] InnoDB: Setting file '/var/db/mysql/ibtmp1' size to 128 MB. Physically writing the file full; Please wait ...
2018-01-19T13:42:13.254649Z 0 [Note] InnoDB: Progress in MB:
 100
2018-01-19T13:42:15.557103Z 0 [Note] InnoDB: File '/var/db/mysql/ibtmp1' size is now 128 MB.
2018-01-19T13:42:15.559067Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2018-01-19T13:42:15.559097Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2018-01-19T13:42:15.559650Z 0 [Note] InnoDB: Waiting for purge to start
2018-01-19T13:42:15.616538Z 0 [Note] InnoDB: 5.7.21 started; log sequence number 2551605
2018-01-19T13:42:15.616897Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/db/mysql/ib_buffer_pool
2018-01-19T13:42:15.617420Z 0 [Note] Plugin 'FEDERATED' is disabled.
2018-01-19T13:42:15.738796Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2018-01-19T13:42:15.738836Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2018-01-19T13:42:15.740497Z 0 [Warning] CA certificate ca.pem is self signed.
2018-01-19T13:42:15.740615Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2018-01-19T13:42:15.740848Z 0 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
2018-01-19T13:42:15.740895Z 0 [Note]   - '127.0.0.1' resolves to '127.0.0.1';
2018-01-19T13:42:15.741053Z 0 [Note] Server socket created on IP: '127.0.0.1'.
2018-01-19T13:42:15.936384Z 0 [Note] InnoDB: Buffer pool(s) load completed at 180119  8:42:15
2018-01-19T13:42:15.952449Z 0 [Note] Event Scheduler: Loaded 0 events
2018-01-19T13:42:15.952742Z 0 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.7.21-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
2018-01-19T14:17:39.279923Z 2 [Note] Access denied for user 'root'@'localhost' (using password: NO)
2018-01-19T14:17:39.280420Z 3 [Note] Your password has expired. To log in you must change it using a client that supports expired passwords.
2018-01-19T15:08:14.135614Z 6 [Note] Your password has expired. To log in you must change it using a client that supports expired passwords.
2018-01-24T19:16:59.343261Z 0 [Note] Giving 0 client threads a chance to die gracefully
2018-01-24T19:16:59.343315Z 0 [Note] Shutting down slave threads
2018-01-24T19:16:59.343339Z 0 [Note] Forcefully disconnecting 0 remaining clients
2018-01-24T19:16:59.343361Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2018-01-24T19:16:59.343539Z 0 [Note] Binlog end
2018-01-24T19:16:59.348679Z 0 [Note] Shutting down plugin 'validate_password'
2018-01-24T19:16:59.348721Z 0 [Note] Shutting down plugin 'ngram'
2018-01-24T19:16:59.348735Z 0 [Note] Shutting down plugin 'partition'
2018-01-24T19:16:59.348748Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2018-01-24T19:16:59.348799Z 0 [Note] Shutting down plugin 'ARCHIVE'
2018-01-24T19:16:59.348812Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2018-01-24T19:16:59.348885Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2018-01-24T19:16:59.348898Z 0 [Note] Shutting down plugin 'MyISAM'
2018-01-24T19:16:59.348932Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2018-01-24T19:16:59.348945Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2018-01-24T19:16:59.348957Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2018-01-24T19:16:59.348969Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2018-01-24T19:16:59.348981Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2018-01-24T19:16:59.348994Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2018-01-24T19:16:59.349006Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2018-01-24T19:16:59.349018Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2018-01-24T19:16:59.349030Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2018-01-24T19:16:59.349042Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2018-01-24T19:16:59.349054Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2018-01-24T19:16:59.349066Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2018-01-24T19:16:59.349078Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2018-01-24T19:16:59.349090Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2018-01-24T19:16:59.349101Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2018-01-24T19:16:59.349113Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2018-01-24T19:16:59.349125Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2018-01-24T19:16:59.349137Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2018-01-24T19:16:59.349149Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2018-01-24T19:16:59.349161Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2018-01-24T19:16:59.349173Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2018-01-24T19:16:59.349185Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2018-01-24T19:16:59.349197Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2018-01-24T19:16:59.349209Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2018-01-24T19:16:59.349221Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2018-01-24T19:16:59.349233Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2018-01-24T19:16:59.349245Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2018-01-24T19:16:59.349257Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2018-01-24T19:16:59.349269Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2018-01-24T19:16:59.349281Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2018-01-24T19:16:59.349293Z 0 [Note] Shutting down plugin 'InnoDB'
2018-01-24T19:16:59.349369Z 0 [Note] InnoDB: FTS optimize thread exiting.
2018-01-24T19:16:59.349491Z 0 [Note] InnoDB: Starting shutdown...
2018-01-24T19:16:59.456826Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/db/mysql/ib_buffer_pool
2018-01-24T19:16:59.457475Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 180124 14:16:59
2018-01-24T19:17:01.217273Z 0 [Note] InnoDB: Shutdown completed; log sequence number 13754622
2018-01-24T19:17:01.217691Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2018-01-24T19:17:01.217716Z 0 [Note] Shutting down plugin 'MEMORY'
2018-01-24T19:17:01.217731Z 0 [Note] Shutting down plugin 'CSV'
2018-01-24T19:17:01.217745Z 0 [Note] Shutting down plugin 'sha256_password'
2018-01-24T19:17:01.217757Z 0 [Note] Shutting down plugin 'mysql_native_password'
2018-01-24T19:17:01.218064Z 0 [Note] Shutting down plugin 'binlog'
2018-01-24T19:17:01.245928Z 0 [Note] /usr/local/libexec/mysqld: Shutdown complete

2018-01-24T19:17:01.6NZ mysqld_safe mysqld from pid file /var/db/mysql/postal.brendhanhorne.com.pid ended
root@postal:~ #
 
Looks weird here:

Code:
2018-01-19T13:42:15.952742Z 0 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.7.21-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
2018-01-19T14:17:39.279923Z 2 [Note] Access denied for user 'root'@'localhost' (using password: NO)
2018-01-19T14:17:39.280420Z 3 [Note] Your password has expired. To log in you must change it using a client that supports expired passwords.
2018-01-19T15:08:14.135614Z 6 [Note] Your password has expired. To log in you must change it using a client that supports expired passwords.

why is there this space in the log between jan 19 and jan 24?

2018-01-24T19:16:59.343261Z 0 [Note] Giving 0 client threads a chance to die gracefully
2018-01-24T19:16:59.343315Z 0 [Note] Shutting down slave threads
2018-01-24T19:16:59.343339Z 0 [Note] Forcefully disconnecting 0 remaining clients
2018-01-24T19:16:59.343361Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2018-01-24T19:16:59.343539Z 0 [Note] Binlog end

Could it be as simple as setting the password for root with something like

Code:
/usr/local/bin/mysqladmin -u root -h localhost password 'newpassword'
 
CraigW wow that was very instructive how to find errors with mysql. Such a small problem, so easy to overlook! You seem to know mysql well :)
 
Hi,

I haven't really setup the webserver. I have been putting the packages in and testing them. So this is not a production server just a mess around and make mistakes server. I had it off on the days you show the gap.
 
I did a dirty trick sometimes with success (for other expiration complaints): just temporarily setting the system time to a date in the past.
(I know that is a bad thing one should not do...)
Then you could possibly start mysql, reset the password, and make it non-expired for a while again, so that it works again with today's date.
 
Is there a way I can do service mysql-server start that is verbose so I can see what is happening on startup?
 
Good news, turns out my mysql root user is expired too. I am running into the chicken egg problem with resetting it too.
now your puzzle has become mine - thanks a lot.

I am tempted to stop sql, blow away the database files, restart mysql and reinitialize the database.

But getting the damn password reset is now a challenge.

It seems password expiration (360 days default) is a new feature starting with mysql 56.

The only verbose info seems to be in the .err file i had you quote.
 
https://dev.mysql.com/doc/refman/5.6/en/resetting-permissions.html

Code:
B.5.3.2.3 Resetting the Root Password: Generic Instructions
The preceding sections provide password-resetting instructions specifically for Windows and Unix and Unix-like systems. Alternatively, on any platform, you can reset the password using the mysql client (but this approach is less secure):

[LIST=1]
[*]Stop the MySQL server if necessary, then restart it with the --skip-grant-tables option. This enables anyone to connect without a password and with all privileges, and disables account-management statements such as SET PASSWORD. Because this is insecure, you might want to use --skip-grant-tables in conjunction with --skip-networking to prevent remote clients from connecting.


[*]Connect to the MySQL server using the mysql client; no password is necessary because the server was started with --skip-grant-tables:

shell> mysql
[/LIST]
In the mysql client, tell the server to reload the grant tables so that account-management statements work:

mysql> FLUSH PRIVILEGES;
Then change the 'root'@'localhost' account password. Replace the password with the password that you want to use. To change the password for a root account with a different host name part, modify the instructions to use that host name.

mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPass');
You should now be able to connect to the MySQL server as root using the new password. Stop the server and restart it normally (without the --skip-grant-tables and --skip-networking options).

These instructions worked for me.
I'll try pasting an example in a following post.
 
Window 1: stop mysql server - start it with no password checking.
Code:
root@server:/ # /usr/local/etc/rc.d/mysql-server stop

root@server:/ # /usr/local/libexec/mysqld --defaults-extra-file=/usr/local/etc/mysql/my.cnf --basedir=/usr/local --datadir=/var/db/mysql --plugin-dir=/usr/local/lib/mysql/plugin --log-error=server.err --open-files-limit=32768 --pid-file=/var/db/mysql/server.pid --socket=/tmp/mysql.sock --port=3306  --skip-grant-tables --skip-networking


Window 2: login to passwordless sql change password.
Code:
root@server:/var/db/mysql # mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.39-log Source distribution

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

root@localhost [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)

root@localhost [(none)]> set password for 'root'@'localhost' = password('hunter2');
Query OK, 0 rows affected (0.00 sec)

root@localhost [(none)]> quit;
Bye


Window 1: End the passwordless mysql -- restart normally.
Code:
ctrl-C
root@server:/ # /usr/local/etc/rc.d/mysql-server start
Starting mysql.


Window 2: Login with the new password.
Code:
root@server:/var/db/mysql # mysql -u root -p
Enter password: hunter2 <<-- hidden
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.39-log Source distribution

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

root@localhost [(none)]>
 
I did a dirty trick sometimes with success (for other expiration complaints): just temporarily setting the system time to a date in the past.
(I know that is a bad thing one should not do...)
Then you could possibly start mysql, reset the password, and make it non-expired for a while again, so that it works again with today's date.


Don't do that with any database you care about.
 
You appear to have found it.

Code:
root@server:/ # /usr/local/libexec/mysqld --defaults-extra-file=/usr/local/etc/mysql/my.cnf --basedir=/usr/local --datadir=/var/db/mysql --plugin-dir=/usr/local/lib/mysql/plugin --log-error=server.err --open-files-limit=32768 --pid-file=/var/db/mysql/server.pid --socket=/tmp/mysql.sock --port=3306  --skip-grant-tables --skip-networking

Now I had to log out and back in after I did that cmd. Currently on putty. However the rest of it seems to have worked. I had to login with my password I could not just do #mysql. However once I got in it let me reset the password and when I did a stop and start all came back and the new password worked.

Code:
last pid: 11886;  load averages:  0.79,  0.55,  0.43     up 0+08:34:01  23:11:16
35 processes:  1 running, 34 sleeping
CPU:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
Mem: 250M Active, 1029M Inact, 165M Wired, 85M Buf, 2051M Free
Swap: 3852M Total, 3852M Free

  PID USERNAME       THR PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
11886 root             1  20    0  7328K  2748K CPU1    1   0:00   0.06% top
10509 mysql           39  20    0  1686M   272M select  1   0:02   0.04% mysqld
10517 bhorne           1  20    0 13720K  6216K select  1   0:00   0.01% sshd

Thank you very much.

Sincerely,
Brendhan
 
Back
Top