MYSQL数据库错误使用mysql.connector

时间:2015-10-15 19:06:06

标签: python mysql linux

这个错误意味着什么?一般来说你会如何解决这个问题?

mysql exception 1364(HY000):字段'rawPassword'没有默认值 这是我的错误开始的源代码

        if self.auto_new_account:
            self.cur.execute(self.add_account, (username, self.get_hashed_password(password) , 0, 0 ))
            self.cnx.commit()

            response = {
              'success': True,
              'userId': username,
              'accountId': 0,
              'adminAccess': max(0, minAdminAccess)
            }

            callback(response)
            return response

0 个答案:

没有答案
相关问题