Mysql Configuration

mknjhill

Verified User
Joined
Mar 22, 2011
Messages
6
Hey everyone. I have my Directadmin license tied to a In house only webserver. I'm working with an old script on one account and it requires STRICT_TRANS_TABLES and ERROR_FOR_DIVISION_BY_ZERO removed from the mysql configuration file.

I'm not able to find the correct my.cnf file apparently.
anyone have any ideas on how to properly add/edit my mysql configuration to 'sql_mode='?

Thanks. :)
 
I'm using Ubuntu 24.04, and MariaDB. Not sure what you're using. I don't think DA supports a per user custom my.cnf

On my setup, the file /etc/mysql/my.cnf is the file to edit if you need to edit a my.cnf file. Adding these lines removes the STRICT_TRANS_TABLES and ERROR_FOR_DIVISION_BY_ZERO

#nano /etc/mysql/my.cnf

add at the bottom:

Code:
[mysqld]
sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER

#systemctl restart mysqld

Check your database and it should appear like this:

1751015508932.png
 
I'm using Ubuntu 24.04, and MariaDB. Not sure what you're using. I don't think DA supports a per user custom my.cnf

On my setup, the file /etc/mysql/my.cnf is the file to edit if you need to edit a my.cnf file. Adding these lines removes the STRICT_TRANS_TABLES and ERROR_FOR_DIVISION_BY_ZERO

#nano /etc/mysql/my.cnf

add at the bottom:

Code:
[mysqld]
sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER

#systemctl restart mysqld

Check your database and it should appear like this:

View attachment 9100
Thank You! That fixed me up.. :)
 
Back
Top