I've just started to learn the Neo4j graphs db, i am a .net developer and i have downloaded the .net version also the sample MVC project for .net (hour ago), I manage to make the project run and playing with it. Upon playing with the Cyphers Console, somehow i cant find the data's from the sample, maybe the default database of the console is pointing to the default db, how do i move to the database that is created by my sample project. is there such thing as database/schema here just like in MSSql/MySQL that tables are grouped by database?
thanks for response.
Look at neo4j-server.properties in conf folder in your DB folder, and search for org.neo4j.server.database.location and make sure it's pointing to the output folder you just created..
Related
this might be a stupid question but I'm new to neo4j.
I'm using the desktop version and from there I created a new database from a new project. I also can see it from the browser and I can see data and stuff.
But if I go on my terminal and run
cypher-shell
and from there I type
SHOW DATABASES;
I can only see the default dbs:
Does anyone know what I am doing wrong?
From the Neo4j desktop, you'll see the Start/Stop and Open buttons for a project database. Just to the right of these are 3-dots. Click on that and then open folder. This will get you to the various folders for the database. It's useful for seeing the size of the database, working with the config file, managing transaction logs, etc.
I am really sorry to ask a simple question like this, but it is getting frustrating. I installed neo4j 4.0.4 on my Windows machine, created a new project as shown in the official tutorial video and set a password for my local graph. Funnily, the tutorial video ends after setting the password and opening the browser not showing how to perform Cypher queries on this newly created database. In neo4j Desktop my database is shown correctly and it seems to be up and running.
However, when I try to connect to this database via the browser, I do not see the database at all. It is so confusing when connecting to the server to specify a username and password, if you only need to set a password for your database?! The default neo4j user can see the system and default database but not my project database. In addition, I cannot link files from the project directory in Cypher queries. I tried to disable authentication, but it did not help at all.
When I issue SHOW DATABASES command, it does not list my database as well.
Update / Edit:
Seems I misunderstood the concept of projects. Every database is named neo4j - default, regardless of the name specified in the project ?!. However, I still cannot access project files. So far, I copied the files manually in the database directory under "imports". But I guess that is not the intended way.
After importing data to this default database, it still shows no data in the project itself.
Data files in the imports directory are not automatically imported into the DB. That is because neo4j has no idea how you want to store that data as nodes and relationships.
So, it is up to you to determine your desired data model, and then write the appropriate code to enforce that data model.
You can take a look at this page to learn about how to import CSV data (probably the most commonly used import data format).
I've begin the development of my Umbraco Website. I've forgot to include a database on the setup so I think that all my stuff is in the cache. Am I right ?
However, I've tried to include a connection string, all is fine, Umbraco can connect to my database, but now Umbraco is looping on the Installation page and do nothing.
My database is empty and on any url Umbraco is trying to install.
I'm using Umbraco 7.6.3
How can i add my database so all the stuff I've made is not lost ?
Thanks !
Alex,
when you use the default settings during installation of Umbraco, then it wil use SQL CE.
This method will save all data not in SQL server but in a local sdf file which is located in the App_Data folder.
If you want to change this, then the best way will be to start over the entire installation incase you haven't add any elements to your existing version.
Then during installation you can choose to specify other options for the database, like adding the database to your Sql Server instance.
If you want to convert your existing SQL CE database to sql server, have a look here:
https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/53818-Convert-Umbraco-SQL-CE-database-to-SQL-Express
I was just watching the Belgium Beer demo and I would like to replicate the same process to start structr with an existing neo4j graph.
Unfortunately if do the following steps:
Extract the downloaded structr folder.
Create a folder structr/db and copy the content of my graph.db.
Start structr with appropriate version of this command:
java -cp lib/*;structr-ui-1.1-SNAPSHOT-201505231136.f596a.jar org.structr.Server
I get the following error:
SEVERE: Vital service NodeService failed to start: Error starting
org.neo4j.kern el.EmbeddedGraphDatabase,
c:\Users\DataToValue\Documents\structr.\db. Aborting
Any idea how I could start a structr project with an existing graph db?
Not entirely sure what your goal is, but... you cannot simply use a product with an existing database, just because it uses a database brand which matches what you're already using (in this case, Neo4j). Structr (or any product, for that matter), will have its own data schema, its own product-specific metadata, etc. There's really no way to simply swap out a product's database and swap in your own (unless it was essentially a backup/instance from that product's database content).
With upcoming structr 2.1 version it it possible to specify an external/ existing neo4j DB instance as described here: https://stackoverflow.com/a/43583403/1821792
I'm currently evaluating Neo4J (2.0M3), and in an attempt to get some kind of visualisation and query-exploration (I haven't succeeded yet!), I switched from using the Test DB to an Embedded DB, and have a Server that I can start up when required.
I understand how to get my node and relationship data written to the data directory of my choice (via How to explore databases created by an embedded-Neo4j Java application and stored outside the /data directory?), and how to configure the Server/web console to point to that directory. Sure enough, the Dashboard does show the data counts I expect, but no Cypher query I try - not even the ones that work fine in my unit tests - return any nodes. Simple lookups by name and Id all fail.
Can anyone explain the inconsistency? This happens with a vanilla Server install, with data written to the default graph.db directory, as well as with different directories. The paths under 'Server Info' are all what I expetc to see.
Another thing I don't understand: why can I not have my own Server running, and create a GraphDatabaseFactory/GraphDatabaseService in code that will accept a server URI, which will allow me to use the standard Java API and see live updates in the web console without having to stop/start the server each time?
You can set up your embedded java project to even start a server, see http://www.cakesolutions.net/teamblogs/2012/05/23/enabling-neo4j-web-admin-tool-on-the-embedded-server-using-spring-data/