Skip to content

Commit f1f4023

Browse files
committed
Change MySQL/MariaDB Database Name Limit to 30 characters.
1 parent c63ecda commit f1f4023

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

func/main.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,8 @@ is_date_format_valid() {
649649
# Database user validator
650650
is_dbuser_format_valid() {
651651
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|<|>|?|/|\|\"|'|;|%|\`| ]"
652-
if [ 17 -le ${#1} ]; then
653-
check_result $E_INVALID "mysql username can be up to 16 characters long"
652+
if [ 31 -le ${#1} ]; then
653+
check_result $E_INVALID "mysql username can be up to 30 characters long"
654654
fi
655655
if [[ "$1" =~ $exclude ]]; then
656656
check_result $E_INVALID "invalid $2 format :: $1"

0 commit comments

Comments
 (0)