You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

ArangoDB 3.1单服务器版问题:arangoimp闪退及AQL结果图形化咨询

Hey there, let's break down your two ArangoDB 3.1 issues on Windows 10 one by one:


1. Fix for arangoimp.exe closing immediately after entering password

The root cause here is that arangoimp is a command-line utility—double-clicking it directly opens a terminal window that closes as soon as the process finishes (or hits an issue). Here's how to fix this properly:

  • First, open a Command Prompt or PowerShell (press Win+R, type cmd or powershell, hit Enter).
  • Navigate to the ArangoDB bin directory where arangoimp.exe lives. The default path is usually:
    cd "C:\Program Files\ArangoDB3 3.1\bin"
    
  • Run arangoimp with all necessary parameters directly in the terminal. For example, to import a JSON file into a collection:
    arangoimp --file "C:\your\file\path\data.json" --type json --collection your_collection_name --server.username root --server.password your_actual_password
    
    If you don't want to write your password in plain text, omit the --server.password flag. When you run the command, it'll prompt you to enter the password—and since you're in a persistent terminal window, it won't close after you hit Enter.

Also, quick check: make sure your ArangoDB single-server instance is running. You can verify this by opening services.msc (Win+R > type services.msc), finding the ArangoDB service, and confirming it's in "Running" status. Start it if it's stopped.


2. Can AQL query results be displayed as a graph?

Absolutely! ArangoDB 3.1's built-in Web UI lets you visualize AQL results as a graph, though you'll need to use the UI instead of the command line. Here's how:

  • Open your browser and go to http://localhost:8529 (this is the default port; use your custom port if you changed it during setup).
  • Log in with your ArangoDB credentials, then head to the Queries tab.
  • Type in your AQL query (e.g., FOR doc IN my_collection RETURN doc) and run it.
  • Once results load, look at the top of the results panel—you'll see options for Table, Graph, and JSON. Click the Graph tab, and your results will render as a visual graph.

A quick note: For the graph view to be meaningful, your data should have a proper vertex-edge structure (i.e., separate collections for vertices and edges that define relationships between them). If you're just querying standalone documents without relationships, you'll see isolated nodes in the graph view.


内容的提问来源于stack exchange,提问作者MHH

火山引擎 最新活动