Right. Perhaps you could enlighten me as to what I should code to prevent that warning? It repeats 2,400 times and makes finding the real errors a pain in the behind. Victor
On Tue, Aug 25, 2009 at 12:42 AM, peng yao <xwei...@gmail.com> wrote: > Warning: Can't create database 'spreadsheets'; database exists > > This is the answer. > > 2009/8/24 Victor Subervi <victorsube...@gmail.com> > > Hi, >> I have the following python code: >> >> cursor.execute('create database if not exists spreadsheets;') >> cursor.execute('use spreadsheets;') >> >> but it generates this warning: >> >> Warning (from warnings module): >> File "C:\Python25\mysqlConverter.py", line 140 >> cursor.execute('use spreadsheets;') >> Warning: Can't create database 'spreadsheets'; database exists >> >> What do? >> TIA, >> Victor >> > >