diff --git a/includes/dbdetect.class.sh b/includes/dbdetect.class.sh
index 1c33a5b7453028b9ec2f33452c16351778bc0978..c049b2bad88c62057914e8f7292598df23b1171a 100644
--- a/includes/dbdetect.class.sh
+++ b/includes/dbdetect.class.sh
@@ -77,7 +77,7 @@ function dbdetect.exists(){
     # --- check tcp process
     local tcpprocess; tcpprocess=$( ini.value "tcp-process" )
     if [ -n "$tcpprocess" ]; then
-        if ! netstat -tulpen 2>/dev/null | grep "^tcp.*:${tcpport} .*/${tcpprocess}" >/dev/null; then
+        if ! netstat -tulpen 2>/dev/null | grep -E "^tcp.*:${tcpport} .*/(${tcpprocess})" >/dev/null; then
             # echo "No port tcp $tcpport available"
             dbdetect._wd "... $tcpprocess not found for tcp ${tcpport}"
             return 1