Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database Error #5

Open
mlittler opened this issue Aug 29, 2022 · 0 comments
Open

Database Error #5

mlittler opened this issue Aug 29, 2022 · 0 comments

Comments

@mlittler
Copy link

Thank you for the great migration guide!
I'm receiving an error when attempting to import the D7 database using "lando db-import --host=d7db --user=drupal7db dump.sql.gz":
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/bitnami/mariadb/tmp/mysql.sock' (2)

I have stopped and restarted the database several times, but I still can't get past this step. How do I change the socket location in Lando? My site and its database are hosted on Pantheon and I am using a local copy that I downloaded using "lando pull", but I don't know how that would cause such an error.

Both databases are showing up when I use "lando info":

  { service: 'database',
    urls: [],
    type: 'mariadb',
    healthy: true,
    internal_connection: { host: 'database', port: '3306' },
    external_connection: { host: '127.0.0.1', port: '54703' },
    healthcheck: 'mysql -uroot --silent --execute "SHOW DATABASES;"',
    creds: { database: 'drupal8', password: 'drupal8', user: 'drupal8' },
    config: { database: '/home/mlittler/.lando/config/drupal8/mysql.cnf' },
    version: '10.3',
    meUser: 'www-data',
    hasCerts: false,
    hostnames: [ 'database.internationaltest.internal' ] },
  { service: 'd7db',
    urls: [],
    type: 'mariadb',
    healthy: true,
    internal_connection: { host: 'd7db', port: '3306' },
    external_connection: { host: '127.0.0.1', port: true },
    healthcheck: 'mysql -uroot --silent --execute "SHOW DATABASES;"',
    creds: { database: 'drupal7db', password: 'drupal7db', user: 'drupal7db' },
    config: {},
    version: '10.3',
    meUser: 'www-data',
    hasCerts: false,
    hostnames: [ 'd7db.internationaltest.internal' ] }

Thank you for any suggestions you have regarding this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant