Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

183
Vistas
Is there a way to reset all configuration in MySQL?

I need your help again.

Is there a way to reset all configuration in MySQL?

Here's what happened. I previously have a project installed and this time I'm setting up a new one.

In this new project, I wanted to set it up with my a new database, new username I created and password. However, when I reached the point where I had to execute php artisan migrate, it keeps throwing me an error saying PDOException::("SQLSTATE[HY000] [2002] No such file or directory")

If not that error, it's throwing connection refused instead.

Note: I'm using laradock.

Now, I'm at the point where I'd just rather reset the whole MySQL because I'm thinking it's conflicting with my previous configuration with my previous project.

As I searched online, I've tried the following: 1. Restarted server 2. Changed db_host from 127.0.0.1 to localhost and vice-versa 3. Added the project's directory to the dev environment setting 4. Docker-compose down and then up again 5. Even uninstalled and reinstalled docker itself

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=newdbname
DB_USERNAME=newusername
DB_PASSWORD=newpassword!

All I want is to be able to execute php artisan migrate using the new credentials I set.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

If you really do not need any old data in database, you can just delete them & reset up a container:

# stop mysql service
docker-compose stop mysql

# delete old mysql database
rm -rf ~/.laradock/data/mysql

# resetup mysql container
docker-compose up -d nginx mysql

You can get the mysql database location according to docker-compose.yml & env-example:

docker-compose.yml:

volumes:
    - ${DATA_PATH_HOST}/mysql:/var/lib/mysql

env-example:

DATA_PATH_HOST=~/.laradock/data
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda