Fix "Port is already in use"
Starting an instance fails with this message when its port is busy:
Port 5432 is already in use. Change this instance's port and try again.Either change the instance’s port or stop whatever uses it.
How do I change the port?
Section titled “How do I change the port?”- Stop the instance. The port cannot change while it runs (“stop the instance before changing its port”).
- Change its port to a free number from 1024 to 65535 that no other instance uses.
- Start it again. Update your app’s configuration to the new port.
See ports.
How do I find what uses a port?
Section titled “How do I find what uses a port?”macOS:
lsof -nP -iTCP:5432 -sTCP:LISTENLinux:
ss -ltnp | grep :5432Windows (Command Prompt):
netstat -ano | findstr :5432Replace 5432 with your port (3306 for MySQL). The last column on Windows is the process id.
Is it another SQLEye instance or a system database?
Section titled “Is it another SQLEye instance or a system database?”A system-wide PostgreSQL or MySQL, or another instance, often holds the default ports 5432 and 3306. When you create an instance, SQLEye suggests the next free port above the default.
SQLEye is developed and maintained by CodeROG. This page is also available as Markdown.