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

Erstes Deployment - leere SQL-Datenbank #98

Open
alxndr-w opened this issue Mar 14, 2025 · 2 comments
Open

Erstes Deployment - leere SQL-Datenbank #98

alxndr-w opened this issue Mar 14, 2025 · 2 comments

Comments

@alxndr-w
Copy link
Contributor

Image

Die Datei wurde hier erzeugt, jedoch leer.

[test] Copy database from local to 12345.kasserver.com
[test]
[local] run export APP_ENV='prod'; command -v 'php' || which 'php' || type -p 'php'
[local] /usr/bin/php
[local] run export APP_ENV='prod'; command -v 'mysqldump' || which 'mysqldump' || type -p 'mysqldump'
[local] /usr/bin/mysqldump
[local] run export APP_ENV='prod'; /usr/bin/php bin/console db:connection-options | xargs /usr/bin/mysqldump > 'var/data/addons/ydeploy/20250314161318.sql'
[local] mysqldump: [Warning] Using a password on the command line interface can be insecure.
[local] mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
[test] run export APP_ENV='prod'; cd /www/htdocs/12345/test.de/test/releases/1 && (rm -f 'var/data/addons/ydeploy/mysql-options')
[test]  error  in setup.php on line 215:
[test] exit code 123 (Unknown error)
done setup 87s 463ms
@gharlan
Copy link
Member

gharlan commented Mar 14, 2025

mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect

Irgendwas stimmt lokal nicht.

@alxndr-w
Copy link
Contributor Author

Danke. Das liegt dann sicherlich am lokalen Setup, die WSL hat vermutlich keinen Zugriff auf die MySQL-Datenbank unter Windows. Gibt's da einen (mir nicht) bekannten Trick?

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

2 participants