www.gusucode.com > database 案例源码程序 matlab代码 > database/ConnectNeo4jDatabaseExample.m
%% Connect to Neo4j(R) Database % Create a Neo4j(R) database connection using the URL % |http://localhost:7474/db/data|, user name |neo4j|, and password % |matlab|. url = 'http://localhost:7474/db/data'; username = 'neo4j'; password = 'matlab'; neo4jconn = neo4j(url,username,password) %% % Check the |Message| property of the Neo4j(R) connection object % |neo4jconn|. neo4jconn.Message %% % The blank |Message| property indicates a successful connection. %% % |neo4j| returns a |Neo4jConnect| object with these properties: %% % * |URL| -- The Neo4j(R) database web location % * |UserName| -- The user name used to connect to the database % * |Message| -- Any database connection error messages %% % The blank |Message| property indicates a successful Neo4j(R) database % connection.