diff --git a/mycli/packages/filepaths.py b/mycli/packages/filepaths.py index 79fe26dc..a91055d2 100644 --- a/mycli/packages/filepaths.py +++ b/mycli/packages/filepaths.py @@ -100,7 +100,7 @@ def guess_socket_location(): for r, dirs, files in os.walk(directory, topdown=True): for filename in files: name, ext = os.path.splitext(filename) - if name.startswith("mysql") and ext in ('.socket', '.sock'): + if name.startswith("mysql") and name != "mysqlx" and ext in ('.socket', '.sock'): return os.path.join(r, filename) dirs[:] = [d for d in dirs if d.startswith("mysql")] return None