I tried creating sqlite3 database in my MAC OS X machine using the xxx.sql script file. But I am getting an error. The sql file is created on Windows system.
Command I used:
sqlite3 bizApp1.sqlite < DBCreationScript_8thNov2012_New.sql
Result:
Error: incomplete SQL: ??/
The error seems to be a syntax error.
If you're a beginner you can use an easy soft like SQLite Data Browser
Related
I'm new to neo4j.
I have created a new graph/database named db-learning. I'm able to connect and perform some operations on the database via neo4j browser. No issue at all.
However when I tried to dump it using neo4j-admin dump --database "db-learning" --to "/some/path" I get this error saying database not found.
Database does not exist: db-learning
Am I missing something?
Sorry if that's confusing. The database name in the project is not related to the underlying database name (which is neo4j for the default database)
So if you open the terminal, this should be good enough:
./bin/neo4j-admin dump --database "neo4j" --to "/tmp/test.dump"
I think you can also leave off the default database name.
Getting the same issue when neo4j is in fact an existing DB. I don't know how the N4J team managed to overcomplicate this so much but this whole process is such a nightmare.
The Aura service only accepts .dump files, which have to be generated via neo4j-admin. This won't allow remote DBs so you have to pull down a neo4j directory (for instance, from a graphenedb.com dump), load it locally, then export that via neo4j-admin -> dump file in order to upload and import into a Aura instance.
Has anyone at Neo4j actually used their own software?
Having successfully created and populated a database with 200,000+ nodes, I would like to create a dump as a backup.
The instructions in the documentation are simple:
neo4j-admin dump --database=<database> --to=<destination-path>
But it's not clear what to use for <database>. If I use graph.db (or leave out the option) I get an error. I know the location of the database folder.
If I put the path to the database I get the following error:
unexpected error: 'database' should be a name but you seem to have specified a path
OS: Windows 10
Partial answer:
The database parameter refers to databases that are located in neo4jFolder/data/databases folder, where neo4jFolder is the folder of the unzipped install of Neo4j.
For example: I unzipped the neo4j install zip into E:\Program Files\neo4j-community-3.3.2. My database was elsewhere on the drive. So I copied the database to E:\Program Files\neo4j-community-3.3.2\data\databases\MyDatabase. Then I was able to run neo4j-admin dump --database=MyDatabase --to=backup5.dmp successfully.
I don't know if it's possible to run dump on databases that are not found under /data/databases. I also don't know how to run a dump when Neo4j is installed with the exe installer. My solution is for the zip file installation.
I have recently updated Fedora 21 to 25. I thought I had caught most issues and decided it was time to update Rails and postgresql but I am stuck on the latter.
Postgresql was functioning without visible issues prior to updating to Fedora 25. I can access my database through my Rails application and have CRUD functions so I believe the database is still good.
But, if I try to open postgresql CLI using psql database_name I can not access the database and receive the following error message:
psql: symbol lookup error: psql: undefined symbol: PQsslInUse
I get the same error for anything calling psql, i.e. psql --version gives the same error.
The command postgresql-setup upgrade tells me I am "using obsoleted argument syntax" and states arguments transformed to: postgresql-setup --upgrade --unit postgresql. This generates the following error:
ERROR: Cannot upgrade because the database in /var/lib/pgsql/data is of
version 9.3 but it should be 9.4
When I look at the above directory it appears that I have 2 data directories, the one noted above that holds a file PG_VERSION that stores 9.3 and there is also /var/lib/pgsql/9.4/data that holds a file PG_VERSION that stores 9.4.
So, how do I find out which database version has my current database? If I have been operating on postgresql 9.3 how do I move to 9.4 and then to 9.5 (eventually to 9.6!).
I need to recreate a SQLite database programmatically under iOS from a malformed database using this command. Which is original from: How to recover a corrupt SQLite3 database?
$ sqlite3 mydata.db ".dump" | sqlite3 new.db
or a equivalent command like this.
$ sqlite3 test.db '.dump' > dbbackup
Scenario: I need a function in my App which could detect the malformed Sqlite database and repair it self.
I used the sqlite3_backup- functions to recreate it, but the recreated database also malformed. But the database which was created with the help of the first command seems to be ok.
But the command is only for terminal and how can I trigger using iOS programmatically?
NB: Any other way to solve the problem also welcomed.
I have created nodes and relationships in java using Neo4j jars,I am trying to display the same from Neoclipse,
I am getting Exception when trying to create connection from Neoclipse to the folder created by java program (I am using windows 7) .
Exception:
java.lang.IllegalStateException:Mismatching store version found(v0.A.1 while expecting v0.A.0)
and the store is not cleanly shutdown.
Recover the database with previous database version and then attempt to upgrade .
after this i added graphDb.shutdown(); code then i got different exception:
org.neo4j.kernel.impl.storemigration.StoreUpgrader$UnableToUpgradeException:
Not all store Files match the version required for successful upgrade.
List of jar Files:
geronimo-jta_1.1_spec-1.1.1.jar
lucene-core-3.6.2.jar
neo4j-2.0.1.jar
neo4j-cypher-2.0.1.jar
neo4j-graph-algo-2.0.1.jar
neo4j-graph-matching-2.0.1.jar
neo4j-jmx-2.0.1.jar
neo4j-kernel-2.0.1.jar
neo4j-lucene-index-2.0.1.jar
neo4j-udc-2.0.1.jar
Please guide me.
It looks like you've created your datastore with Neo4j 2.0.1. Neoclipse seems to use an earlier version. Datastore downgrades are not supported.
However you could drop your database into a Neo4j 2.0.1 server and connect to it remotely using Neoclipse.