Raised This Month: $32 Target: $400
 8% 

MySQL error on web interface


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
squizer
Junior Member
Join Date: Jun 2018
Old 12-05-2019 , 06:26   MySQL error on web interface
Reply With Quote #1

Hello,
The new version is very good, but I am having a little problem with MySQL on my players profils. (You can check the error on hlstats.squizer.cz ). Also I am including a screenshot.
squizer is offline
squizer
Junior Member
Join Date: Jun 2018
Old 12-05-2019 , 06:27   Re: MySQL error on web interface
Reply With Quote #2



https://ibb.co/gMRQKSb
squizer is offline
squizer
Junior Member
Join Date: Jun 2018
Old 12-05-2019 , 08:56   Re: MySQL error on web interface
Reply With Quote #3

SOLVED BY set global sql_mode=''; COMMAND RUNNING IN DATABASE
squizer is offline
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 12-07-2019 , 10:04   Re: MySQL error on web interface
Reply With Quote #4

Starting from MySQL 5.7, the default value is more restrictive and this the reason why some users have problems with unexpected query failures after migration to 5.7 or 8.0.

Solution:

1. Change SQL mode globally in /etc/mysql/my.cnf
PHP Code:
[mysqld]
sql_mode=NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION 
2. Restart MySQL server - systemctl restart mysql OR service mysql restart
__________________

Last edited by NomisCZ; 12-07-2019 at 10:48.
NomisCZ is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode