• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AAC Failed To Create Account [GesiorAAC]

Extrodus

|| Blazera.net ||
Premium User
Joined
Dec 22, 2008
Messages
2,740
Solutions
7
Reaction score
541
Location
Canada
Error:
SQLSTATE:HY000
Driver code:1366
Error message:Incorrect integer value: '' for column 'vip_time' at row 1
Failed to create account.


Trying to create an account and getting this error, anyone have any ideas?
 
Solution
Edit mysql config (Ubuntu with mariadb: /etc/mysql/mariadb.conf.d/50-server.conf). Add there:
Code:
sql_mode=''

Temporary solution: Execute in mysql (phpmyadmin etc.) SET GLOBAL sql_mode='';. It will fix problem until next mysql restart.
Edit mysql config (Ubuntu with mariadb: /etc/mysql/mariadb.conf.d/50-server.conf). Add there:
Code:
sql_mode=''

Temporary solution: Execute in mysql (phpmyadmin etc.) SET GLOBAL sql_mode='';. It will fix problem until next mysql restart.
 
Solution
@Gesior.pl - Thank you so much for the response, unfortunately these are the files I have in /etc/mysql/. Should I just modify mysql.cnf? Currently using Apache2 if that helps.

And this was the line used to install mysql:
sudo apt-get install mysql-server mysql-client

1643315338016.png
 
It should be added in my.cnf or mysql.cnf.
Modified mysql.cnf to look like this
Code:
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

#
# * IMPORTANT: Additional settings that can override those from this file!
#   The files must end with '.cnf', otherwise they'll be ignored.
#

!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
sql_mode=''

And now the website returns:

Code:
Error occured![/HEADING][/HEADING][/HEADING]
[HEADING=2][HEADING=2]Error ID:[/HEADING][/HEADING]
[HEADING=2][HEADING=2]More info: CANNOT CONNECT TO DATABASE: SQLSTATE[HY000] [2002] No such file or directory[/HEADING][/HEADING]
[HEADING=2][HEADING=2][/HEADING][/HEADING]
[HEADING=2][HEADING=2]File: /var/www/html/classes/database_mysql.php   Line: 22[/HEADING][/HEADING]
[HEADING=2][HEADING=2]File: /var/www/html/classes/database.php   Line: 199[/HEADING][/HEADING]
[HEADING=2][HEADING=2]File: /var/www/html/pages/latestnews.php   Line: 22[/HEADING][/HEADING]
[HEADING=2][HEADING=2]File: /var/www/html/system/load.page.php   Line: 7[/HEADING][/HEADING]
[HEADING=2][HEADING=2]File: /var/www/html/index.php   Line: 37


Also tried editing /conf.d/mysql.cnf and it didnt work :(
Tested the "Temporary" solution, that did work for now.
 
Last edited:
Search for [mysqld] on files that Gesior said or any other file and paste there
Found /etc/mysql/mysql.conf.d/mysqld.cnf and added sql_mode='' to the bottom of it, rebooted the PC and it still works!
Thanks for the help guys <3
 
Back
Top