Common Issues
This guide covers the most common problems you might encounter and how to solve them.Connection Issues
Connection Test Fails
Connection Test Fails
Problem: You see “Connection test failed” when adding a connection.Symptoms:Solutions:
-
Verify Connection String Format
Ensure you’re using the correct format for your database type:
-
Check Database File Exists (SQLite)
-
Verify Read Permissions
-
Test Database Connection Separately
-
Check Network Connectivity (Remote Databases)
Connection String Not Accepted
Connection String Not Accepted
Problem: Your connection string format is rejected.Solutions:
-
Remove Quotes: Don’t wrap the connection string in quotes
-
Check for Typos: Common mistakes include:
DataSourceinstead ofData Source(SQLite)Usernameinstead ofUser(MySQL)UserIdinstead ofUser Id(SQL Server)
-
Escape Special Characters: If your password contains special characters:
'Connection Not Found' Error
'Connection Not Found' Error
Problem: Queryly can’t find a connection you know you saved.Solutions:
-
List All Connections
Verify the exact name (case-sensitive).
-
Check Configuration File
-
Verify JSON Syntax
If you manually edited the file, ensure it’s valid JSON:
Installation Issues
Command Not Found
Command Not Found
Problem: You see Solutions:
queryly: command not found when trying to run Queryly.Symptoms:-
Use Full dotnet run Command
Queryly is not installed as a global tool yet. Run it with:
-
Create an Alias (macOS/Linux)
Add to your
~/.bashrcor~/.zshrc:Then reload: -
Check .NET SDK Installation
Should output version 8.0 or higher. If not installed:
-
Verify Project Build
.NET SDK Not Found
.NET SDK Not Found
Problem: Error about missing .NET SDK.Solutions:
-
Install .NET 8.0 SDK
Download from: https://dotnet.microsoft.com/download
-
Verify Installation
Schema and Data Issues
No Tables Found
No Tables Found
Problem: “No tables found” message when listing schema.Symptoms:Solutions:
-
Verify Database Has Tables
Use another tool to confirm:
-
Check Connection String Points to Correct Database
Verify the database name in the output.
-
Verify Permissions
Ensure your database user has permission to read schema:
-
Check Schema Name (SQL Server/PostgreSQL)
Some databases use schemas. Queryly defaults to common schemas, but you might need a different one:
Table Data Not Displaying
Table Data Not Displaying
Problem:
queryly data browse shows no rows when you know the table has data.Solutions:-
Verify Table Has Data
-
Check for Case Sensitivity
Table names might be case-sensitive:
-
Use Query Mode to Debug
Export Fails
Export Fails
Problem: Export command fails or produces an empty file.Symptoms:Solutions:
-
Check Write Permissions
Ensure you have write access to the current directory:
-
Verify Table Name
Ensure the table name is correct (case-sensitive).
-
Check Table Has Data
If the table is empty, export will create an empty file.
-
Check Disk Space
-
Try Different Format
If CSV fails, try JSON:
Query Issues
Query Mode Freezes
Query Mode Freezes
Problem: Interactive query mode becomes unresponsive.Solutions:
-
Exit with Ctrl+C
Press
Ctrl+Cto force exit. -
Check for Long-Running Query
If you ran a complex query, it might be processing. Wait or cancel with
Ctrl+C. -
Simplify Query
Break complex queries into smaller parts:
SQL Syntax Error
SQL Syntax Error
Problem: Your query returns a syntax error.Solutions:
-
Check SQL Dialect
Different databases have different syntax:
-
Quote Table/Column Names
If names contain spaces or special characters:
- Test in Native Client First Verify the query works in the database’s native client before using Queryly.
Configuration Issues
Configuration File Corrupted
Configuration File Corrupted
Problem: Queryly won’t start due to corrupted configuration.Solutions:
-
Validate JSON
-
Backup and Reset
-
Manually Fix JSON
Common issues:
- Missing commas between objects
- Trailing commas
- Unescaped quotes in strings
Lost Connections After Update
Lost Connections After Update
Problem: Connections disappeared after updating Queryly.Solutions:
-
Check Backup
Look for
connections.backup.jsonor similar. -
Restore from Backup
-
Manually Recreate
If no backup exists, re-add connections:
Platform-Specific Issues
Windows: Path Not Found
Windows: Path Not Found
Problem: SQLite database path not found on Windows.Solutions:
-
Use Forward Slashes
-
Or Use Double Backslashes
-
Use Relative Path
macOS: Permission Denied
macOS: Permission Denied
Problem: Permission denied errors on macOS.Solutions:
-
Check File Permissions
- Grant Full Disk Access System Preferences → Security & Privacy → Privacy → Full Disk Access → Add Terminal
Linux: Library Not Found
Linux: Library Not Found
Problem: Missing library errors on Linux.Solutions:
-
Install Required Libraries
-
Install Database Client Libraries
Performance Issues
Slow Query Execution
Slow Query Execution
Problem: Queries take too long to execute.Solutions:
-
Add LIMIT Clause
- Check Database Indexes Ensure proper indexes exist on frequently queried columns.
-
Use Browse Instead of Query
For simple table viewing,
browseis optimized:
Large Export Times Out
Large Export Times Out
Problem: Exporting large tables fails or times out.Solutions:
-
Export in Batches
Use query mode to export specific ranges:
Then export the results.
-
Use Native Database Tools
For very large exports, use database-specific tools:
Getting Help
If you’re still experiencing issues:Report Issues: Open an issue on GitHub with:
- Error message (full text)
- Queryly version
- Operating system
- Database type and version
- Steps to reproduce
Next Steps
- Configuration Guide - Learn about configuration options
- Usage Examples - See working examples
- Command Reference - Explore all commands