See below.
Any help appreciated.
- Code: Select all
mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)
- Code: Select all
locate mysql.sock
This shows nothing.
- Code: Select all
ps ax |grep mysqld
22581 pts/0 S+ 0:00 grep --color=auto mysqld
- Code: Select all
/usr/sbin/mysqld start
160104 0:57:56 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
160104 0:57:56 [Warning] The syntax '--log-slow-queries' is deprecated and will be removed in a future release. Please use '--slow-query-log'/'--slow-query-log-file' instead.
160104 0:57:56 [Note] /usr/sbin/mysqld (mysqld 5.5.46-MariaDB-log) starting as process 22033 ...
160104 0:57:56 [Warning] Could not increase number of max_open_files to more than 1024 (request: 17163)
160104 0:57:56 [Warning] Can't create test file /var/lib/mysql/dilr02.lower-test
/usr/sbin/mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 13)
160104 0:57:56 [ERROR] Aborting
160104 0:57:56 [Note] /usr/sbin/mysqld: Shutdown complete
Not sure what's happening here. Don't think it's a config issue, I'm sure there's something I'm missing, but I'm out of ideas.
In case these help:
- Code: Select all
systemctl start mysql.service
Job for mysql.service failed. See 'systemctl status mysql.service' and 'journalctl -xn' for details.
- Code: Select all
systemctl status mysql.service
mysql.service - MySQL server
Loaded: loaded (/usr/lib/systemd/system/mysql.service; disabled)
Active: activating (start-post) (Result: exit-code) since Mon 2016-01-04 01:05:06 AEDT; 10s ago
Process: 24613 ExecStart=/usr/lib/mysql/mysql-systemd-helper start default (code=exited, status=1/FAILURE)
Process: 24598 ExecStartPre=/usr/lib/mysql/mysql-systemd-helper upgrade default (code=exited, status=0/SUCCESS)
Process: 24583 ExecStartPre=/usr/lib/mysql/mysql-systemd-helper install default (code=exited, status=0/SUCCESS)
Main PID: 24613 (code=exited, status=1/FAILURE); : 24614 (mysql-systemd-h)
CGroup: /system.slice/mysql.service
└─control
├─24614 /bin/bash /usr/lib/mysql/mysql-systemd-helper wait default
└─24689 sleep 1
and
- Code: Select all
service vicidial start
Job for vicidial.service failed. See 'systemctl status vicidial.service' and 'journalctl -xn' for details.
- Code: Select all
systemctl status vicidial.service
vicidial.service - LSB: Vicidial Call Center Suit
Loaded: loaded (/etc/init.d/vicidial)
Active: failed (Result: exit-code) since Mon 2016-01-04 00:23:06 AEDT; 14s ago
Process: 10140 ExecStart=/etc/init.d/vicidial start (code=exited, status=1/FAILURE)
Jan 04 00:23:02 dilr02 vicidial[10140]: Couldn't connect to database: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) at /...pl line 65.
Jan 04 00:23:04 dilr02 vicidial[10140]: Starting Asterisk Unable to connect to remote asterisk (does /run/asterisk/asterisk.ctl exist?)
Jan 04 00:23:04 dilr02 vicidial[10140]: DBI connect('asterisk:localhost:3306','cron',...) failed: Can't connect to local MySQL server through socket '/var/ru...l line 105.
Jan 04 00:23:04 dilr02 vicidial[10140]: Couldn't connect to database: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) at /...l line 105.
Jan 04 00:23:04 dilr02 vicidial[10140]: ..failed
Jan 04 00:23:06 dilr02 vicidial[10140]: Started Vicidial
Jan 04 00:23:06 dilr02 vicidial[10140]: ..done
Jan 04 00:23:06 dilr02 systemd[1]: vicidial.service: control process exited, code=exited status=1
Jan 04 00:23:06 dilr02 systemd[1]: Failed to start LSB: Vicidial Call Center Suit.
Jan 04 00:23:06 dilr02 systemd[1]: Unit vicidial.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
Thanks in advance. Let me know if you need any more info.