def connect(self):
		warnings.filterwarnings('ignore', category=MySQLdb.Warning)
		self._conn = MySQLdb.connect(user=self.user, host=self.host, passwd=self.password,
			use_unicode=True, charset='utf8')
		self._conn.converter[246]=float
		self._conn.converter[12]=get_datetime
		self._conn.encoders[UnicodeWithAttrs] = self._conn.encoders[UnicodeType]
		self._conn.encoders[DateTimeDeltaType] = self._conn.encoders[StringType]

		MYSQL_OPTION_MULTI_STATEMENTS_OFF = 1
		self._conn.set_server_option(MYSQL_OPTION_MULTI_STATEMENTS_OFF)

		self._cursor = self._conn.cursor()
		if self.user != 'root':
			self.use(self.user)
		frappe.local.rollback_observers = []
403 error handler.
dataset/ETHPy150Open frappe/frappe/frappe/database.py/Database.connect--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/hqwebapp/views.py/no_permissions