Skip to content

Commit cda68af

Browse files
authored
Fix MySQL commands (#225)
1 parent 9a989d7 commit cda68af

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"todo-tree.tree.scanMode": "workspace"
3+
}

phpmyadmin/rootfs/etc/s6-overlay/s6-rc.d/init-phpmyadmin/run

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,19 @@ port=$(bashio::services "mysql" "port")
2424
username=$(bashio::services "mysql" "username")
2525

2626
database=$(\
27-
mysql \
27+
mariadb \
2828
-u "${username}" -p"${password}" \
2929
-h "${host}" -P "${port}" \
3030
--skip-column-names \
31+
--skip-ssl \
3132
-e "SHOW DATABASES LIKE 'phpmyadmin';"
3233
)
3334

3435
if ! bashio::var.has_value "${database}"; then
3536
bashio::log.info "Creating database for phpMyAdmin"
36-
mysql \
37+
mariadb \
3738
-u "${username}" -p"${password}" \
3839
-h "${host}" -P "${port}" \
40+
--skip-ssl \
3941
< /var/www/phpmyadmin/sql/create_tables.sql
4042
fi

0 commit comments

Comments
 (0)