Thank you Clemens.
I'm using Python2.
I was thinking about moving from PosgreSQL to MariaDB becuse the 'import_from_csv_file' don't works.
I was thinking that is was a Psycog2 library problem, but it's the same with mariaDB.
Now I have a MariaDB DB, and for achieving your suggestions I must use import_from_csv_file.
And it don't works, there's not any error.
[user@server web2py7]$ source env/bin/activate
(env) [user@server web2py7]$ cd web2py
(env) [user@server web2py]$ python web2py.py -S myapp -M -P
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2020
Version 2.20.4-stable+timestamp.2020.05.03.05.18.50
Database drivers available: sqlite3, psycopg2, pyodbc, pymysql, imaplib
Python 2.7.16 (default, Nov 1 2020, 19:29:00)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> filename = 'myfile.csv'
>>> db.import_from_csv_file(open(filename, 'rb')); db.commit()
After that there's no feedback and the DB still empty.
What could affect like that the
import_from_csv_file function?