Re: [Tutor] unable to insert data into database

2006-02-18 Thread Danny Yoo
> I'm Tiago, from Brazil, I'm new to this list and, err, I'm getting into > python. Hi Tiago, Welcome aboard! > I'm very interested on the mysql module, and this thread sounds > interesting. I've tried pretty much the same code from the original > code, and I don't need to commit changes. All

Re: [Tutor] unable to insert data into database

2006-02-18 Thread Tiago Saboga
Em Sex 17 Fev 2006 13:15, Wolfram Kraus escreveu: > Wolfram Kraus wrote: [SNIP] > Sorry for asking the obvious (Database/Table exists)! You are missing > > db.commit() > db.close() > > in your code. IIRC auto-commit was switched of for MySQLdb long time ago. Hi! I'm Tiago, from Brazil, I'm new t

Re: [Tutor] unable to insert data into database

2006-02-17 Thread Wolfram Kraus
Wolfram Kraus wrote: > Servando Garcia wrote: > >>Hello to all >>I have been trying to insert data into a database using MySQLdb >>with no success. I have no idea why this script is not working. I took >>it from a tutorial from DEV Shed. >> >>#!/usr/bin/python >>import MySQLdb >># connect >

Re: [Tutor] unable to insert data into database

2006-02-17 Thread Kent Johnson
Servando Garcia wrote: > Hello to all > I have been trying to insert data into a database using MySQLdb > with no success. I have no idea why this script is not working. I took > it from a tutorial from DEV Shed. What happens when you try it? "Not working" doesn't give us much to go on. If

Re: [Tutor] unable to insert data into database

2006-02-17 Thread Wolfram Kraus
Servando Garcia wrote: > Hello to all > I have been trying to insert data into a database using MySQLdb > with no success. I have no idea why this script is not working. I took > it from a tutorial from DEV Shed. > > #!/usr/bin/python > import MySQLdb > # connect > db = MySQLdb.connect(host

[Tutor] unable to insert data into database

2006-02-17 Thread Servando Garcia
Hello to all I have been trying to insert data into a database using MySQLdb with no success. I have no idea why this script is not working. I took it from a tutorial from DEV Shed. #!/usr/bin/python import MySQLdb # connect db = MySQLdb.connect(host="localhost", user="root", passwd="*