-
Notifications
You must be signed in to change notification settings - Fork 31
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
Using DBngin - error: mysql: No such file or directory #78
Comments
Hey there – I don't see why it wouldn't work, although I've never seen that error before. What version of MySQL are you trying to use? The command doesn't really do anything special mysql-wise so as long as your db host and credentials as set correctly it should work (that's not what the error is complaining about though). Looks like the same error here: wp-cli/db-command#176 (comment) maybe that helps? I would try running the same command with |
Hey, thanks for the reply! Since posting, I went ahead and installed mysql via home brew as well as However, If stop Homebrew mysql, start up DBngin's mysql and run that command I get Is there a way to configure it to look for a specific install of mysql? fwiw here is the output of the --debug install: https://gist.github.com/nathangross/a891865de6fbac8f4d0ae4417541ac97 |
Hey there, I see what the problem is now. It looks like DBngin does not use the same location for the Unix socket WP CLI defaults to I hope that makes sense. See this excellent write up about mysql connections for more information. This is ultimately not really an issue with the command itself though (other than what's already covered by #73) so I'm going to close this one out. Hopefully this information helps anyone else running into the same problem though. Cheers! |
Laravel Valet docs now seemingly suggest using DBngin for local database management. That's how I'm currently set up. If I run
wp valet new bedrock --project=bedrock
I get the followingError: Failed to get current SQL modes. Reason: env: mysql: No such file or directory
I'm curious if it is possible to get this to work properly with DBngin.
Thanks in advance!
The text was updated successfully, but these errors were encountered: