load sqlite.db into rqlite

38 views
Skip to first unread message

James Reilly

unread,
Jun 10, 2021, 11:35:35 PM6/10/21
to rqlite
Feeling like a bit of a dope but i cant find the syntax for loading up the lead database with an existing sqlite database.

I assume that it is an option?

Cheers

/jpr




Philip O'Toole

unread,
Jun 11, 2021, 5:39:56 AM6/11/21
to rql...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "rqlite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rqlite+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rqlite/de51d52d-9e2a-4a70-a456-a7c82150777dn%40googlegroups.com.

James Reilly

unread,
Jun 11, 2021, 9:05:25 AM6/11/21
to rqlite
cheers for the quick response.  Regrettably i am using a windows machine and your instructions work properly for my bash cloud production system but not my local one.

After a bit of testing I think that sqlite has a set of commands that provide the same function https://www.sqlitetutorial.net/sqlite-dump/

sqlite> .output c:/fn.sql  
sqlite> .dump 
sqlite> .exit

I changed the output name to fn.dump... not sure if this is relevant or not.

James Reilly

unread,
Jun 11, 2021, 9:11:56 AM6/11/21
to rqlite
further to my last email i just loaded the .dump file into rqlite with the rqlite.exe command line... works like a charm
rqlite
.schema
+-----+
| sql |
+-----+
.restored fn.dump
.schema
+------------- a whole bunch of stuff..... 
___+
select * from tbl_persons ;  
...etc

Philip O'Toole

unread,
Jun 11, 2021, 5:32:36 PM6/11/21
to rql...@googlegroups.com
Great, good luck.

Reply all
Reply to author
Forward
0 new messages