-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cant open the database in esp8266 sqlite3 #4
Comments
If you are trying sdfat example, you need to manually copy the files to SD Card (to root folder). |
There are many limitations in using Sqlite db with ESP8266 especially because of RAM. Also stack size to be increased. Please see README.md of this repo. |
I created a folder named data in the sd card and I manually copied the db files into the folder named data. |
This is the free space available information in mu arduino ide after sqlite_sdfat program was compiled. Sketch uses 522648 bytes (50%) of program storage space. Maximum is 1044464 bytes. |
I also created a folder named FLASH in the sd card and I manually copied the .db files (mdr512.db census2000names.db) into the folder named FLASH. |
The db files are to be copied to root folder. I will mention it in the doc. |
Sir, In the sqlite_sdfat program it was mentioned as" Before running please copy following files to SD Card:
|
I am trying out the examples which you have uploaded like sqlite_sdfat,sqlite_smalldb. |
Please don't copy the files to any folder. Just copy it to the main directory. It is also called root folder. If your SD Card is drive F, then use I understood the confusion. Usually, the SPIFFS utility for ESP8266 copies the files in data folder to the root of SPIFFS. Thats why I did not mention it specifically. Now I will. |
Sir, I am connecting the NODEMCU and Micro SD Card in the following Pin Correction. Is it right? NODEMCU MICRO SD |
arun ji are the connections mentioned above is correct?? |
I am not sure about NodeMCU. Please refer to their documentation. |
if the connections are different, you may have to change the code. |
I have copied the databases mdr512.db census2000names.db and placed inside the folder data.
When I run the program sqlite3_sdfat it throws the error Can't open database: Unable to open database".
What may be the reason for that. Why it throws after I copied the database from the Github
The text was updated successfully, but these errors were encountered: