1
Colleagues,
I am trying to create database on a computer with the Sqlite. It is installed and everything OK, but when trying to create using the command by cmd:
C: Users José Roberto>sqlite3 C: Users José Roberto Desktop database sistema.db
This error appears:
Error: Unable to open database "C: Users Josú": Unable to open database file
Would anyone know why this mistake happens? It seems to me that the accent in the name Joseph may be the problem.
guy, puts your database folder in the root of the users folder and tries to see if it will work
– Marcos Henrique
Perfect Henricão. It worked. Thank you.
– user24136
I’ll give you an answer here just so I don’t run out of anything, I’m glad you helped
– Marcos Henrique
Maybe the answer solved the "symptom", but not the problem, but the solution is a little more "down". Have you only tried sqlite3 Desktop Database system.db being in this folder? If the CMD code page is the same as the application, it is not to be mistaken. Now, that it is always better to avoid accents and special characters in paths, it is.
– Bacco
The problem is simply the space in the folder name. At the Windows command prompt, folders with space in the name need to be referenced between quotes. This will work:
C:\Users\José Roberto>sqlite3 "C:\Users\José Roberto\Desktop\database\sistema.db"
– Caffé