When I use MySQLdb and insert some values into a table, python says that it is inserted and when I try to select the value with python, it gets selected and shows up. But then when I use mysql and try to look at the table, it doesn't show up. Can anyone help me out? Thanks.
-Steve
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm just guessing, I really don't know. Try calling commit() in your Python code, or set autocommit (however it's spelled) - though I thought it was on by default.
Post more details if that doesn't work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I use MySQLdb and insert some values into a table, python says that it is inserted and when I try to select the value with python, it gets selected and shows up. But then when I use mysql and try to look at the table, it doesn't show up. Can anyone help me out? Thanks.
-Steve
I had same problem. I try change type of table from InnoDB to MyISAM and work it.
Yes, that's one solution. The non-crazy solution is to call commit() on your database connection.
I'm just guessing, I really don't know. Try calling commit() in your Python code, or set autocommit (however it's spelled) - though I thought it was on by default.
Post more details if that doesn't work.