Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,14 @@ function install_mysql() {

# Start and enable MySQL
systemctl enable mysql
systemctl start mysql

# Add sql-mode to MySQL config so it persists across reboots
cat >/etc/mysql/mysql.conf.d/bhima.cnf <<EOF
[mysqld]
sql-mode='STRICT_ALL_TABLES,NO_UNSIGNED_SUBTRACTION'
EOF

systemctl restart mysql

# create the ~/my.cnf file with the mysql credentials
cat <<EOF >"/root/.my.cnf"
Expand Down