應用中采用嵌入式Neo4j(Embedded Neo4j)數據庫,插入數據后不知道如何訪問。查詢之后知道有Neoclipse這個可視化工具,最新版本是1.9.5。添加目錄后報錯:

應該是Neoclipse 1.9.5無法兼容Neo4j 2.0版本。
另辟蹊徑,無意中發現如下方法,如果他人已經發過相關內容,那就對不起啦,我沒有認真的去網絡上搜索。
安裝Neo4j server版本,安裝完成之后打開應用程序,選擇應用創建的數據庫目錄。

啟動服務,訪問頁面:http://localhost:7474/browser/

首次登錄會要求輸入新密碼,沒關系,放心的輸入新密碼。

這個密碼並不影響應用的使用,因為代碼訪問嵌入式Neo4j數據庫並不用密碼。
官方文檔(http://neo4j.com/docs/stable/capabilities-data-security.html)中有如下描述:
Some data may need to be protected from unauthorized access (e.g., theft, modification). Neo4j does not deal with data encryption explicitly, but supports all means built into the Java programming language and the JVM to protect data by encrypting it before storing.
Furthermore, data can be easily secured by running on an encrypted datastore at the file system level. Finally, data protection should be considered in the upper layers of the surrounding system in order to prevent problems with scraping, malicious data insertion, and other threats.
可以理解為:
一些數據需要被保護以防止非法的訪問(例如,竊取,篡改)。Neo4j本身並不支持處理數據加密,但是數據存儲之前可以使用java代碼或者JVM加密數據,而Neo4j支持所有的這種加密方式。
此外,文件系統層級上運行數據存儲加密更能保證數據的安全。最后,數據保護應考慮在系統上層實現,以防止數據摩擦,惡意數據插入和其他威脅。
Neo4j官方並沒有提供類似於Mysql等關系型數據庫那樣登錄必須要賬號密碼,而是建議我們自己加密數據。至於server版本的,目前還沒有接觸,無法知道是否需要密碼。
每次登陸都需要輸入密碼,很麻煩,可以去除密碼。
點擊上述界面中Options按鈕,出現如下對話框:

點擊編輯,在文本內容的最后輸入如下內容:
#make other computer can access your neo4j database org.neo4j.server.webserver.address=0.0.0.0(使他人的計算機能夠訪問你的neo4j數據庫) #diabled authorization(瀏覽器訪問不需要密碼) dbms.security.auth_enabled=false
教程結束,感謝閱讀。
歡迎轉載,但請注明本文鏈接,謝謝。
2016-03-31 20:36:37
