Insert data with pymysql into a database mysql error. How to solve?
0
0
Entering edit mode
3.2 years ago
USER • 0

seqteste.txt or List sequece:

I'm trying to insert data from a seqteste.txt and seqteste.fasta file into a mysql database but the result is always null. How to solve this problem? What am I doing wrong?

python database biopython mysql genome • 842 views
ADD COMMENT
0
Entering edit mode

Hello projetoic!

Questions similar to yours can already be found at:

We have closed your question to allow us to keep similar content in the same thread.

If you disagree with this please tell us why in a reply below. We'll be happy to talk about it.

Cheers!

ADD REPLY
0
Entering edit mode

this is another question to complement the other..It's not the same question ...

ADD REPLY
0
Entering edit mode

what is the similar question?

ADD REPLY
0
Entering edit mode

Error of the other;

pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your version of the MySQL server for the correct syntax to use next to '% s,% s,% s,% s) 'on line 1 ")

erro here:

TypeError: not all arguments converted during string formatting
or 
TypeError: expected str, bytes or os.PathLike object, not NoneType

I would like to insert the data but when inserting the data they are null or are not inserted due to these errors.

ADD REPLY
0
Entering edit mode

It's not the same problem ... One was about the connection and this one about inserting the data ... which are being inserted as null ... Maybe I needed to modify the titles to be clearer ... Despite the codes complement each other are different problems...

ADD REPLY

Login before adding your answer.

Traffic: 2650 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6