diff --git a/pymysql/connections.py b/pymysql/connections.py
index <HASH>..<HASH> 100644
--- a/pymysql/connections.py
+++ b/pymysql/connections.py
@@ -315,12 +315,6 @@ class Connection(object):
             '_pid': str(os.getpid()),
             '_client_version': VERSION_STRING,
         }
-        if program_name is None:
-            argv = getattr(sys, "argv")
-            if argv:
-                program_name = argv[0]
-                if PY2:
-                    program_name = program_name.decode('utf-8', 'replace')
 
         if program_name:
             self._connect_attrs["program_name"] = program_name
Remove auto program_name from sys.argv (#<I>)