I have installed Neo4j Enterprise edition 3.3.0 in my Linux server machine.
Now i am trying to access the server through my windows machine using port 7474, xx.xx.xx.xx:7474
But the problem is whenever i want to import any csv file to the database, first i have to upload the file into the "import" directory in the Linux server.
Is there any way i can directly import the file which is in my local windows machine into the Neo4j database without having to upload the file into the Linux server first?
Can I create more than one database? If yes how?
Thanks.
There is no way to do it in Neo4j, the execution of the query is done on the server side, so the url of the CSV file is related to the server.
But you can have a shared folder with the server, or you can also publish your CSV file on an HTTP server.
Related
I have a successful import using the bin/neo4j-admin tool, can see the new database folder in my /databases, have restarted the server, but cannot get the database to appear in the console as an option to switch to. Do you have any suggestions for getting a newly imported database to be available in the console?
I assume that you are referring to the Neo4j Desktop environment.
The Desktop currently seems to be designed to support local DBs created by the Desktop itself.
As a workaround, you can:
Create a new "Graph" in the Desktop, using the "Connect to Remote Graph" option.
Accept the default "bolt://localhost:7687" as the Connect URL (assuming the default is acceptable).
Manually start your local neo4j installation from the command line, and
Click Connect on your "Graph" to connect.
Be aware that the Desktop has fewer bells and whistles for "remote
graphs".
I resolved the issue. The steps I found to successfully import a set of CSV using the admin -import tool is to:
Stop the server
Run the admin -import tool and use --database=aDatabaseName
Start the server
In the console switch to the System database using the pulldown control
Run the following command at the system prompt: create database aDatabaseName
(should be the same name set in #2 above)
Switch to the database just created using the console pulldown control
I was able to see the database nodes and relationships I created following the above steps
This is what worked for me. I was trying to access my database generated through neo4j-admin on my Neo4j Desktop app browser console.
On Neo4j Desktop App open the browser of the database server you want to include the new database
Switch to the system database https://neo4j.com/developer/manage-multiple-databases/
:use system
as system, create the database you want to import
:create database dbname
Stop the server
Use the neo4-admin tool to import the database https://neo4j.com/graphacademy/online-training/v4/19-using-neo4j-admin-tool-import/ (make sure to use the same name --database dbname). Run these command on the terminal opened from the Desktop app under the databases>_Open Terminal. On windows the neo4j-admin.bat is located in the bin directory
start the server and open the neo4j browser and switch to the system database https://neo4j.com/developer/manage-multiple-databases/
:use system
To list all the database available to use as system
:dbs
switch to your imported database
:use dbmame
Your browser console is ready now for your queries.
I followed this tutorial for setting up a neo4j database on digital ocean: https://www.digitalocean.com/community/tutorials/how-to-install-neo4j-on-an-ubuntu-vps, which basically amounts to apt-get install neo4j.
How can I access the browser for this database?
Once you've successfully installed neo4j on the server make sure that the server configuration allows connection to the web console on all ips (remote, local). You can achieve that by editing the file located at:
/etc/neo4j/neo4j-server.properties
and making sure that this line looks like the following one:
org.neo4j.server.webserver.address=0.0.0.0
save the file and restart the neo4j server and from your browser:
http://YOUR_SERVER_IP:7474
I am using Neo4j 2.0 server on Cent-OS machine. This needs be accessed from a remote web-based console. In the database,the server data location points to the folder containing the data.
When I start the database and try to access it from a remote machine, the data doesn't show up.
What could be the reason for this ??
I modeled the database on a windows machine and then take this data to remote unix machine and point that server to this folder(which is created on windows, but on UNIX based system).Is it appropriate to do? Does linux identifies the data files created on windows.
I have seen many people talk about copying a file from a remote server to their local drive but I would like to copy a file from the remote server to another folder on the remote server or to my shared drive.
I am trying to develop a Python GUI to migrate databases in Windows and I would like to be able to copy some of the databases to different locations.
I have tried shutil, xcopy and scp but none of these work. I always get errors like the "path does not exist" or "invalid drive specification".
Basically, I connect to the remote server using pyodbc in the following form:
connection = pyodbc.connect("DRIVER={SQL Server Native Client 10.0};SERVER=#servername;DATABASE=stage;UID=#myuserid;Trusted_Connection=yes").
Once I have connected to server I define the two file paths as variables and then I call the xcopy function:
os.system ("""xcopy "%s" "%s" """ % (copy_path, paste_path)).
Of course I do all of this after importing pyodbc, os, and sys libraries into python. The file does not copy whether I try to paste to a folder on the same server I connect to or my shared drive.
The xcopy only works when I try to copy files from my local to a remote server or vice versa. What I want to know is whether it is possible to copy a file from one spot on my remote server to another using Python.
For example if I remote connect to my remote server and run an xcopy on the following path on the server xcopy "F:\backup\dev\audit.bak" "F:\backup\test" I get the error "invalid drive specification 0 Files copied". I look at the directory tree but the moment I try a backup or a copy it gives me an error.
All --
I am trying to export data from an Interbase Version 5 database file by using the following connection string:
Provider=LCPI.IBProvider;Location=\"<Path To Database>";User ID=******;Password=*****;ctype=win1251"
I have downloaded and installed the from the IBProvider website. I am getting the following error:
The 'LCPI.IBProvider' provider is not registered on the local machine.
I tried manually registering the _IBProvider_v3_vc10_w64_lite_trial_i.dll file but no luck.
Ok, so here is my question can I connect to this database file similarly to a FoxPro database file without having the database software installed?
Ok, I found the answer, I had to download the latest version of FireBird database engine and then attach the database. Then I downloaded the EMS SQL Manager for InterBase/Firebird GUI because I didn't want to bother with using the ISQL command line application.