Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'exist.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'suggest': 0.11; '"unknown': 0.16; '"user': 0.16; "'test',": 0.16; 'message- id:@dough.gmane.org': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.17; 'trying': 0.21; 'import': 0.21; 'host': 0.24; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; "doesn't": 0.28; 'header:X-Complaints-To:1': 0.28; 'subject:: (': 0.29; "i'm": 0.29; 'from:addr:yahoo.co.uk': 0.32; 'skip:_ 30': 0.32; 'to:addr :python-list': 0.33; 'knowledge': 0.33; 'code:': 0.33; 'server': 0.35; 'list': 0.35; 'received:org': 0.36; 'data.': 0.36; 'subject:: ': 0.38; 'mark': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'more': 0.63; 'subject:skip:_ 30': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: _mysql_exceptions.OperationalError: (2005, "Unknown MySQL server host Date: Wed, 15 Aug 2012 15:23:24 +0100 References: <6a5212e3-4ff9-4cec-afe5-8b81e231eb67@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-181-75.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: <6a5212e3-4ff9-4cec-afe5-8b81e231eb67@googlegroups.com> X-Antivirus: avast! (VPS 120815-1, 15/08/2012), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1345040537 news.xs4all.nl 6840 [2001:888:2000:d::a6]:48949 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:27097 On 15/08/2012 14:30, nepaul wrote: > The code: > import MySQLDB > strCmd = "user = 'root', passwd = '123456', db = 'test', host = 'localhost'" > > _mysql_exceptions.OperationalError: (2005, "Unknown MySQL server host 'user = 'root', passwd = '123456', db = 'test', host = 'localhost'' (11004)") > My highly paid team of consultants suggest that you're trying to connect to a MySQL server host that doesn't exist. However I'm sure that people on this list with more knowledge of MySQLDB than my consultants will be able to give you more detailed data. -- Cheers. Mark Lawrence.