Page 1 of 1

Mysql cannot start

PostPosted:19 Oct 2018 14:40
by denbei
:( Hello,
I just installed vpssim on new vps, but I got an error message.
Mysql cannot start
Code: Select all
=========================================================================
1) Restart MySQL
2) Restart Nginx
3) Restart PHP-FPM
4) Restart Server
Type in your choice (0-Exit):1
/etc/vpssim/menu/tienich/vpssim-restart-mysql: line 9: mysql: command not found
========================================================================
MySQL service is not running
------------------------------------------------------------------------
VPSSIM trying to start it
------------------------------------------------------------------------
Please wait ...
chown: invalid user: `mysql:mysql'
chown: invalid user: `mysql:mysql'
chown: invalid user: `mysql:mysql'
/etc/vpssim/menu/inc/restart-mysql-fix-error: line 22: /etc/init.d/mysql: No such file or directory
/etc/vpssim/menu/inc/restart-mysql-fix-error: line 29: /etc/init.d/mysql: No such file or directory
/etc/vpssim/menu/inc/restart-mysql-fix-error: line 34: /etc/init.d/mysql: No such file or directory
/etc/vpssim/menu/inc/restart-mysql-fix-error: line 39: /etc/init.d/mysql: No such file or directory
/etc/vpssim/menu/inc/restart-mysql-fix-error: line 44: /etc/init.d/mysql: No such file or directory
========================================================================
Check MySQL service once again !
------------------------------------------------------------------------
please wait ...
/etc/vpssim/menu/tienich/vpssim-restart-mysql: line 31: mysql: command not found
========================================================================
VPSSIM can not start MySQL Service
=========================================================================
Sorry, VPSSIM can not start MySQL service
Please help me,

Re: Mysql cannot start

PostPosted:19 Oct 2018 14:43
by nguyenoanh
denbei wrote:
19 Oct 2018 14:40
:( Hello,
I just installed vpssim on new vps, but I got an error message.
Mysql cannot start
Code: Select all
=========================================================================
1) Restart MySQL
2) Restart Nginx
3) Restart PHP-FPM
4) Restart Server
Type in your choice (0-Exit):1
/etc/vpssim/menu/tienich/vpssim-restart-mysql: line 9: mysql: command not found
========================================================================
MySQL service is not running
------------------------------------------------------------------------
VPSSIM trying to start it
------------------------------------------------------------------------
Please wait ...
chown: invalid user: `mysql:mysql'
chown: invalid user: `mysql:mysql'
chown: invalid user: `mysql:mysql'
/etc/vpssim/menu/inc/restart-mysql-fix-error: line 22: /etc/init.d/mysql: No such file or directory
/etc/vpssim/menu/inc/restart-mysql-fix-error: line 29: /etc/init.d/mysql: No such file or directory
/etc/vpssim/menu/inc/restart-mysql-fix-error: line 34: /etc/init.d/mysql: No such file or directory
/etc/vpssim/menu/inc/restart-mysql-fix-error: line 39: /etc/init.d/mysql: No such file or directory
/etc/vpssim/menu/inc/restart-mysql-fix-error: line 44: /etc/init.d/mysql: No such file or directory
========================================================================
Check MySQL service once again !
------------------------------------------------------------------------
please wait ...
/etc/vpssim/menu/tienich/vpssim-restart-mysql: line 31: mysql: command not found
========================================================================
VPSSIM can not start MySQL Service
=========================================================================
Sorry, VPSSIM can not start MySQL service
Please help me,
Hello, i will check this.
thanks.

Re: Mysql cannot start

PostPosted:19 Oct 2018 15:15
by nguyenoanh
because of mariadb.

https://yum.mariadb.org/RPM-GPG-KEY-MariaDB

SSL of this sub was expired , it made all errors.

I will update VPSSIM to fix this now/.

Re: Mysql cannot start

PostPosted:19 Oct 2018 15:22
by nguyenoanh
update:
This error was Fixxed :)

Thank you :)

Re: Mysql cannot start

PostPosted:19 Oct 2018 21:13
by denbei
Reinstall again and It seems to work fine. Thanks,

Re: Mysql cannot start

PostPosted:25 Mar 2019 19:14
by giaotk
Mình làm theo cách cài lại MariaDB và đã thành công :
Code: Select all
yum install mariadb mariadb-server
Code: Select all
systemctl start mariadb.service
Code: Select all
systemctl enable mariadb.service
Code: Select all
/usr/bin/mysql_secure_installation

Re: Mysql cannot start

PostPosted:22 Apr 2020 08:39
by joecow
giaotk wrote:Mình làm theo cách cài lại MariaDB và đã thành công :
Code: Select all
yum install mariadb mariadb-server
Code: Select all
systemctl start mariadb.service
Code: Select all
systemctl enable mariadb.service
Code: Select all
/usr/bin/mysql_secure_installation
i cannot solve mysql not running, always reinstall server.