diff --git a/swh/core/cli/db.py b/swh/core/cli/db.py
index ae99630512e051fc1d826e77521f678627afdcfe..e0b6a7ca1b4cf693360ce748ac24f46c4c26b443 100755
--- a/swh/core/cli/db.py
+++ b/swh/core/cli/db.py
@@ -828,7 +828,7 @@ def handle_cmd_args(
         if do_all:
             raise ValueError("Cannot use both 'all' and a specific config target")
         if dbname:
-            raise ValueError("Cannot use both 'dbaname' and a specific config target")
+            raise ValueError("Cannot use both 'dbname' and a specific config target")
 
     package = module
     backends = []