What should HOST be in \\\\ case error?

36 views
Skip to first unread message

Allen Tools

unread,
Dec 5, 2019, 4:30:16 PM12/5/19
to PyMySQL Users
My host is specified as follows but the error message seems to be inserting 4 slashes, so I wonder what options I should be using here.

pymysql.connect(host='MAGGIE\DIGISHOP2014',
                               user = dbconfig.db_user,
                               passwd = dbconfig.db_password,
                               port=1433,
                               db=database)

 (2003, "Can't connect to MySQL server on 'MAGGIE\\\\DIGISHOP2014' ([Errno 11001] getaddrinfo failed)")
Reply all
Reply to author
Forward
0 new messages