Help with migration connection error #3755
Unanswered
alongthewayhome
asked this question in
Help
Replies: 2 comments 14 replies
-
Something is telling me that your DB is not listening to this address / port. Make sure your DB is UP and running |
Beta Was this translation helpful? Give feedback.
11 replies
-
Can you share the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When attempting to use Adonis migration:run, I end up having difficulties with a connection error.
Error: connect ECONNREFUSED 127.0.0.1:3306 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16) -------------------- at Protocol._enqueue (/mnt/c/projects/sneakers_ims/node_modules/mysql/lib/protocol/Protocol.js:144:48) at Protocol.handshake (/mnt/c/projects/sneakers_ims/node_modules/mysql/lib/protocol/Protocol.js:51:23) at Connection.connect (/mnt/c/projects/sneakers_ims/node_modules/mysql/lib/Connection.js:116:18) at /mnt/c/projects/sneakers_ims/node_modules/knex/lib/dialects/mysql/index.js:68:18 at new Promise (<anonymous>) at Client_MySQL.acquireRawConnection (/mnt/c/projects/sneakers_ims/node_modules/knex/lib/dialects/mysql/index.js:63:12) at create (/mnt/c/projects/sneakers_ims/node_modules/knex/lib/client.js:290:39) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 3306, fatal: true }
I have made sure the port is on and hosting my database as well as other little things like switching port numbers with no luck. Would anyone have an idea on where I am going wrong? Here is my .env file as well.
HOST=127.0.0.1 PORT=3333 NODE_ENV=development APP_URL=http://${HOST}:${PORT} CACHE_VIEWS=false APP_KEY=SAGWrGnmKlX4gLdeuDqArGSB1KE3YEiF DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_USER=root DB_PASSWORD=root DB_DATABASE=adonis SESSION_DRIVER=cookie HASH_DRIVER=bcrypt
Beta Was this translation helpful? Give feedback.
All reactions