HolyDiver
Verified User
- Joined
- Feb 21, 2016
- Messages
- 46
Code:
~# /usr/local/directadmin/custombuild/build mysql
mv: 'mariadb-5.5.58-linux-x86_64.tar.gz' and '/usr/local/mariadb-5.5.58-linux-x86_64.tar.gz' are the same file
Stopping mysqld ...
Synchronizing state of mysqld.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable mysqld
update-rc.d: error: mysqld Default-Start contains no runlevels, aborting.
Ensuring local-infile is disabled for security reasons in MySQL configuration file...
Giving mysqld a few seconds to start up...
/usr/local/mysql/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/usr/local/mysql/data/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
Restarting MySQL.
I don't understand what's wrong with the socket. Every other application including mysqld has MySQL/MariaDB working perfectly with that same socket. It's only failing during upgrades like these.
I've looked through past posts on this forum and tried suggestions, but haven't found a solution yet.
Code:
~# ls -l /usr/local/mysql/data/mysql.sock
srwxrwxrwx 1 mysql mysql 0 Jan 12 18:34 /usr/local/mysql/data/mysql.sock
Code:
~# nano /etc/my.cnf
[client]
port = 3306
socket = /usr/local/mysql/data/mysql.sock
[mysqld]
local-infile = 0
interactive_timeout = 60
join_buffer_size = 128K
key_buffer_size = 100M
max_allowed_packet = 16M
max_connections = 40
max_heap_table_size = 16M
myisam_sort_buffer_size = 64M
port = 3306
query_cache_size = 4M
socket = /usr/local/mysql/data/mysql.sock
table_open_cache = 512
thread_cache_size = 8
tmp_table_size = 16M
wait_timeout = 30
[mysqldump]
max_allowed_packet = 16M
quick
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 64M
read_buffer = 2M
sort_buffer_size = 64M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
Code:
~# /usr/local/directadmin/conf/mysql.conf
user=da_admin
passwd=**********
socket=/usr/local/mysql/data/mysql.sock
Code:
~# /usr/local/directadmin/conf/my.cnf
[client]
user=da_admin
password=**********
socket=/usr/local/mysql/data/mysql.sock
Code:
~# mysql --help --verbose
mysql Ver 15.1 Distrib 5.5.58-MariaDB, for Linux (x86_64) using readline 5.1
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Usage: mysql [OPTIONS] [database]
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf
The following groups are read: mysql client client-server client-mariadb
Code:
~# nano /home/mysql/**********.com.err
180112 16:30:07 [Note] /usr/local/mysql/bin/mysqld: Normal shutdown
180112 16:30:07 [Note] Event Scheduler: Purging the queue. 0 events
180112 16:30:07 InnoDB: Starting shutdown...
180112 16:30:09 InnoDB: Shutdown completed; log sequence number 234248205
180112 16:30:10 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
180112 16:30:10 mysqld_safe mysqld from pid file /usr/local/mysql/data/mysqld.pid ended
180112 16:31:31 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
180112 16:31:34 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.58-MariaDB) starting as process 18726 ...
180112 16:31:35 InnoDB: The InnoDB memory heap is disabled
180112 16:31:35 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180112 16:31:35 InnoDB: Compressed tables use zlib 1.2.3
180112 16:31:35 InnoDB: Using Linux native AIO
180112 16:31:35 InnoDB: Initializing buffer pool, size = 128.0M
180112 16:31:35 InnoDB: Completed initialization of buffer pool
180112 16:31:35 InnoDB: highest supported file format is Barracuda.
180112 16:31:42 InnoDB: Waiting for the background threads to start
180112 16:31:43 Percona XtraDB (http://www.percona.com) 5.5.55-MariaDB-38.9 started; log sequence number 234248205
180112 16:31:43 [Note] Server socket created on IP: '0.0.0.0'.
180112 16:31:43 [Note] /usr/local/mysql/bin/mysqld: Normal shutdown
180112 16:31:43 [Note] Event Scheduler: Loaded 0 events
180112 16:31:43 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.5.58-MariaDB' socket: '/usr/local/mysql/data/mysql.sock' port: 3306 Source distribution
180112 16:31:43 [Note] Event Scheduler: Purging the queue. 0 events
180112 16:31:43 InnoDB: Starting shutdown...
180112 16:31:52 InnoDB: Shutdown completed; log sequence number 234248205
180112 16:31:52 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
180112 16:31:53 mysqld_safe mysqld from pid file /usr/local/mysql/data/mysqld.pid ended
180112 16:31:53 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
180112 16:31:53 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.58-MariaDB) starting as process 19716 ...
180112 16:31:53 InnoDB: The InnoDB memory heap is disabled
180112 16:31:53 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180112 16:31:53 InnoDB: Compressed tables use zlib 1.2.3
180112 16:31:53 InnoDB: Using Linux native AIO
180112 16:31:53 InnoDB: Initializing buffer pool, size = 128.0M
180112 16:31:53 InnoDB: Completed initialization of buffer pool
180112 16:31:53 InnoDB: highest supported file format is Barracuda.
180112 16:31:53 InnoDB: Waiting for the background threads to start
180112 16:31:54 Percona XtraDB (http://www.percona.com) 5.5.55-MariaDB-38.9 started; log sequence number 234248205
180112 16:31:54 [Note] Server socket created on IP: '0.0.0.0'.
180112 16:31:54 [Note] Event Scheduler: Loaded 0 events
180112 16:31:54 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.5.58-MariaDB' socket: '/usr/local/mysql/data/mysql.sock' port: 3306 Source distribution
Last edited: