#Mysql database setup error: [ECONNREFUSED] connect ECONNREFUSED 127.0.0.1:3306

11 messages · Page 1 of 1 (latest)

past forum
#

Any ideas to solve?

This is what I inputted into terminal:

? Choose your database client MySQL / MariaDB / Aurora
? Database Host: 127.0.0.1
? Port: 3306
? Database Name: directus_taun
? Database User: root
? Database Password: ****

Something went wrong while seeding the database:

[ECONNREFUSED] connect ECONNREFUSED 127.0.0.1:3306```
oak schoonerBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:

  • Adding an explanation of exactly what you're trying to achieve.
  • Adding any and all related code or previous attempts.
  • Describing the exact issue or error you are facing.
  • Posting any screenshots if applicable.
  • Reading through https://stackoverflow.com/help/how-to-ask.

When you're done with this thread, please close it. Thanks! ✨

(If you have a support agreement and need help, please contact the core team via email.)

past forum
#

I assume I need to install and run the server first? It's not like SQLlite that runs independently?

glossy heath
#

sure, you have to run the mysql first

past forum
# glossy heath sure, you have to run the mysql first

Thanks. I've created a MySql database called taundb. I've inputted those details within the vscode docker upon installing Directus. It's returning the same error?

? Choose your database client MySQL / MariaDB / Aurora
? Database Host: 127.0.0.1
? Port: 3306
? Database Name: taundb
? Database User: root
? Database Password: ************

Something went wrong while seeding the database:

[ER_NOT_SUPPORTED_AUTH_MODE] ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

Please try again

? Database Host: (127.0.0.1) ```
glossy heath
#

it's not the same error, you mysql seams outdated?

past forum
#

I just downloaded the latest mySql from their website

#
  • 8.0.33
glossy heath
#

mh strange, I'm on the postgresql side of life... but may the version is not supported? did you use someting like a blank password or so?

past forum
#

It's probably something related to my docker/env details. I'm up and running using SQLite, so all good for now. Thanks.