Entering edit mode
3.8 years ago
USER
•
0
I would like to insert the data of the fasta sequence in a mysql database.
But my code doesn't work and I don't know what I might be doing wrong
I can insert the data by pasting the data for each line. but when I put the for it doesn't work
If you failed to connect in your
try
you will fall into theexcept
whereconexao
does not exist.Try to put a
sys.exit(1)
afterprint("Not conect")
in yourexcept
statement, the script will stop if you are unable to connect.I can make the connection the error is here
here:
All right, do you have these prints results in your terminal ?
error:
pymysql.err.IntegrityError: (1048, "Column 'id' cannot be null")
Can you try running this :