Menu

data inserted by python not showing up

Help
2006-01-05
2012-09-19
  • Steve Young

    Steve Young - 2006-01-05

    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

     
    • iVirus

      iVirus - 2006-01-21

      I had same problem. I try change type of table from InnoDB to MyISAM and work it.

       
      • Andy Dustman

        Andy Dustman - 2006-01-21

        Yes, that's one solution. The non-crazy solution is to call commit() on your database connection.

         
    • szplug

      szplug - 2006-01-05

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.