It says that MySQL is down but it is working. No matter what I put after sql_mode= nothing works..
G grabyourhosting Well-Known Member Jan 18, 2007 96 6 158 cPanel Access Level Root Administrator Aug 13, 2020 #1 It says that MySQL is down but it is working. No matter what I put after sql_mode= nothing works..
cPanelLauren Product Owner Staff member Nov 14, 2017 13,298 1,279 313 Houston Aug 13, 2020 #2 Hello, What version of MySQL are you using? What is in the file /etc/my.cnf currently? How are you restarting MySQL?
Hello, What version of MySQL are you using? What is in the file /etc/my.cnf currently? How are you restarting MySQL?
G grabyourhosting Well-Known Member Jan 18, 2007 96 6 158 cPanel Access Level Root Administrator Aug 13, 2020 #3 Thanks for the reply. I am using the latest mariadb(10.3 I think) and restarting it by using WHM.
G grabyourhosting Well-Known Member Jan 18, 2007 96 6 158 cPanel Access Level Root Administrator Aug 13, 2020 #4 What's crazy is the other two servers don't do anything like this. Only this server.
cPanelLauren Product Owner Staff member Nov 14, 2017 13,298 1,279 313 Houston Aug 13, 2020 #5 HI @grabyourhosting It sounds like something changed on this server. Were you able to find the contents of /etc/my.cnf?
HI @grabyourhosting It sounds like something changed on this server. Were you able to find the contents of /etc/my.cnf?
G grabyourhosting Well-Known Member Jan 18, 2007 96 6 158 cPanel Access Level Root Administrator Aug 13, 2020 #6 Yes. It's Code: [mysqld] log-error=/var/lib/mysql/you.yourdomain.com.err performance-schema=on innodb_file_per_table=1 local-infile=0 sql_mode="" innodb_buffer_pool_size=128M innodb_log_file_size=16M open_files_limit=65536 max_allowed_packet=268435456
Yes. It's Code: [mysqld] log-error=/var/lib/mysql/you.yourdomain.com.err performance-schema=on innodb_file_per_table=1 local-infile=0 sql_mode="" innodb_buffer_pool_size=128M innodb_log_file_size=16M open_files_limit=65536 max_allowed_packet=268435456
cPanelLauren Product Owner Staff member Nov 14, 2017 13,298 1,279 313 Houston Aug 13, 2020 #7 @grabyourhosting Will you remove this line completely? Code: sql_mode="" It should use the default SQL Mode when restarting without it.
@grabyourhosting Will you remove this line completely? Code: sql_mode="" It should use the default SQL Mode when restarting without it.
G grabyourhosting Well-Known Member Jan 18, 2007 96 6 158 cPanel Access Level Root Administrator Aug 13, 2020 #8 Same Issue. It takes forever to restart it just like before. Here is the full error on the emails I am receiving. NotificationThe service “mysql” appears to be down.Service Check MethodThe system’s command to check or to restart this service failed.Number of Restart Attempts614Service Check Raw Output(XID u8jh3f) The “mysql” service is down. The subprocess “/usr/local/cpanel/scripts/restartsrv_mysql” reported error number 255 when it ended.Startup LogAug 11 12:38:44 you.yourdomain.com systemd[1]: Starting MariaDB 10.3.23 database server... Aug 11 12:38:48 you.yourdomain.com mysqld[1117]: 2020-08-11 12:38:48 0 [ERROR] /usr/sbin/mysqld: option '--sql_mode' requires an argument Aug 11 12:38:49 you.yourdomain.com systemd[1]: mysql.service: main process exited, code=exited, status=1/FAILURE Aug 11 12:38:49 you.yourdomain.com systemd[1]: Failed to start MariaDB 10.3.23 database server. Aug 11 12:38:49 you.yourdomain.com systemd[1]: Unit mysql.service entered failed state. Aug 11 12:38:49 you.yourdomain.com systemd[1]: mysql.service failed.Memory Information Used3.16 GBAvailable8.08 GBInstalled11.24 GB Load Information1.43 1.47 1.56Uptime2 days, 3 hours, 51 minutes, and 37 seconds
Same Issue. It takes forever to restart it just like before. Here is the full error on the emails I am receiving. NotificationThe service “mysql” appears to be down.Service Check MethodThe system’s command to check or to restart this service failed.Number of Restart Attempts614Service Check Raw Output(XID u8jh3f) The “mysql” service is down. The subprocess “/usr/local/cpanel/scripts/restartsrv_mysql” reported error number 255 when it ended.Startup LogAug 11 12:38:44 you.yourdomain.com systemd[1]: Starting MariaDB 10.3.23 database server... Aug 11 12:38:48 you.yourdomain.com mysqld[1117]: 2020-08-11 12:38:48 0 [ERROR] /usr/sbin/mysqld: option '--sql_mode' requires an argument Aug 11 12:38:49 you.yourdomain.com systemd[1]: mysql.service: main process exited, code=exited, status=1/FAILURE Aug 11 12:38:49 you.yourdomain.com systemd[1]: Failed to start MariaDB 10.3.23 database server. Aug 11 12:38:49 you.yourdomain.com systemd[1]: Unit mysql.service entered failed state. Aug 11 12:38:49 you.yourdomain.com systemd[1]: mysql.service failed.Memory Information Used3.16 GBAvailable8.08 GBInstalled11.24 GB Load Information1.43 1.47 1.56Uptime2 days, 3 hours, 51 minutes, and 37 seconds
G grabyourhosting Well-Known Member Jan 18, 2007 96 6 158 cPanel Access Level Root Administrator Aug 14, 2020 #9 Should I open a ticket?
G grabyourhosting Well-Known Member Jan 18, 2007 96 6 158 cPanel Access Level Root Administrator Aug 15, 2020 #10 It works now. All I had to do is add sql-mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"