Fixed
Shell-Script
- root@relay3:~# service mysql status● mysql.service - LSB: Start and stop the mysql database server daemonLoaded: loaded (/etc/init.d/mysql)Active: active (running) since mié 2017-12-20 19:26:31 CET; 36min agoProcess: 2915 ExecStop=/etc/init.d/mysql stop (code=exited, status=1/FAILURE)Process: 2939 ExecStart=/etc/init.d/mysql start (code=exited, status=0/SUCCESS)CGroup: /system.slice/mysql.service├─ 860 /bin/sh /usr/bin/mysqld_safe└─1501 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --log-error=/var/log/mysql/error.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/...dic 20 19:26:31 relay3 mysql[2939]: Starting MySQL database server: mysqld already running.dic 20 19:26:31 relay3 systemd[1]: Started LSB: Start and stop the mysql database server daemon.
Shell-Script
- root@relay3:~# service mysql status● mysql.service - LSB: Start and stop the mysql database server daemonLoaded: loaded (/etc/init.d/mysql)Active: inactive (dead) since mié 2017-12-20 20:03:30 CET; 1s agoProcess: 5230 ExecStop=/etc/init.d/mysql stop (code=exited, status=0/SUCCESS)Process: 2939 ExecStart=/etc/init.d/mysql start (code=exited, status=0/SUCCESS)dic 20 19:26:31 relay3 mysql[2939]: Starting MySQL database server: mysqld already running.dic 20 19:26:31 relay3 systemd[1]: Started LSB: Start and stop the mysql database server daemon.dic 20 20:03:28 relay3 systemd[1]: Stopping LSB: Start and stop the mysql database server daemon...dic 20 20:03:30 relay3 mysql[5230]: Stopping MySQL database server: mysqld.dic 20 20:03:30 relay3 systemd[1]: Stopped LSB: Start and stop the mysql database server daemon.
Shell-Script
- root@relay3:~# service mysql status● mysql.service - LSB: Start and stop the mysql database server daemonLoaded: loaded (/etc/init.d/mysql)Active: active (running) since mié 2017-12-20 20:03:42 CET; 9min agoProcess: 5230 ExecStop=/etc/init.d/mysql stop (code=exited, status=0/SUCCESS)Process: 5297 ExecStart=/etc/init.d/mysql start (code=exited, status=0/SUCCESS)CGroup: /system.slice/mysql.service├─5324 /bin/sh /usr/bin/mysqld_safe└─5705 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --log-error=/var/log/mysql/error.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/...dic 20 20:03:42 relay3 mysql[5297]: Starting MySQL database server: mysqld ..dic 20 20:03:42 relay3 mysql[5297]: Checking for tables which need an upgrade, are corrupt or weredic 20 20:03:42 relay3 mysql[5297]: not closed cleanly..dic 20 20:03:42 relay3 systemd[1]: Started LSB: Start and stop the mysql database server daemon.
I've connected using the imscp_user i-MSCP master SQL user and I've updated the debian-sys-maint user password:
SQL
- root@relay3:~# mysql -u imscp_user
- Welcome to the MySQL monitor. Commands end with ; or \g.
- Your MySQL connection id is 26910
- Server version: 5.5.58-0+deb8u1 (Debian)
- Copyright (c) 2000, 2017, 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.
- mysql> use mysql;
- Reading table information for completion of table and column names
- You can turn off this feature to get a quicker startup with -A
- Database changed
- mysql> SET PASSWORD FOR 'debian-sys-maint'@'localhost' = PASSWORD('XXXXXXXXXX');
- Query OK, 0 rows affected (0.00 sec)
- mysql> flush privileges;
- Query OK, 0 rows affected (0.02 sec)
- mysql> exit
You can see the password that I've set by looking into the /etc/mysql/debian.cnf file.