MySQL Forums
Forum List  »  Connector/Python

Bad magic number
Posted by: Monika Dosztal
Date: October 13, 2020 08:15AM

Hi there, I installed a mysql database with the python connector but when I'm trying to test if the connector works with "import mysql.connector" I'm getting the following error: ImportError: bad magic number in 'mysql': b'T\r\r\n'
I couldn't find anything specific about "b'T\r\r\n'" on the net. Would anybody be able to help me with this? Thank you.

Options: ReplyQuote

Written By
Bad magic number
October 13, 2020 08:15AM

Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.