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

Install --with-mysql80 not working #640

Closed
bajaj-sudhanshu opened this issue Sep 10, 2024 · 6 comments
Closed

Install --with-mysql80 not working #640

bajaj-sudhanshu opened this issue Sep 10, 2024 · 6 comments
Assignees
Labels
Bug Bugs

Comments

@bajaj-sudhanshu
Copy link

The installation is not moving at valet+ services. I can't see an error and followed all the steps with success.

➜  ~ valet-plus install --with-mysql80
Password:

Installing nginx...
[nginx] is not installed, installing it now via Brew... 🍻
Installing nginx configuration...
Installing nginx directory...

Installing and configuring phpfpm...
Updating PHP configuration for [email protected]...
Restarting [email protected]...
Installing extensions for PHP 8.2
	apcu is already installed, skipping...
	yaml is already installed, skipping...
	ds is already installed, skipping...
	imagick is already installed, skipping...

Installing dnsmasq...
[dnsmasq] is not installed, installing it now via Brew... 🍻
Updating Dnsmasq configuration...
Restarting dnsmasq...
Valet is configured to serve for TLD [.test]

Restarting nginx...


Valet installed successfully!

Installing Valet+ services
Stopping ...
Installing [email protected]...
[[email protected]] is not installed, installing it now via Brew... 🍻
Stopping [email protected]...
@mischabraam
Copy link
Member

mischabraam commented Sep 11, 2024

Yeah, I have it sometimes too. Somehow mysql is unwilling to stop. The workaround I use is to stop mysql manually with the following command.

brew services stop [email protected]

(you might need to use sudo as prefix)

I have searched for the reason why it sometimes refuses to stop the service using Valet+, but I haven't found it yet.

Also.. do you have another version of Mysql already running? Currently, it's not supported to have multiple Mysql versions running on your machine. If so, you should removed unwanted mysql versions first.

@bajaj-sudhanshu
Copy link
Author

bajaj-sudhanshu commented Sep 13, 2024

@mischabraam There was no other MySQL.

I had to stop the [email protected] from another tab and then the script continued.

image

However, default page is not showing all the hosts I have.

image

@mischabraam
Copy link
Member

The 404 page on 127.0.0.1 is correct and tells me Valet+ is working. Check the manual at https://laravel.com/docs/11.x/valet#serving-sites and you should be able to serve your websites, see the "park" command.

@its-leofisher
Copy link

its-leofisher commented Oct 7, 2024

I was having same issue and stopping mysql in a separate terminal tab works but I get this:
image

I have uninstalled and reinstalled Mysql8 via Brew and restarted computer

Valet+ 3.0.3
Laravel Valet 4.8.0

image image

any ideas?

@mischabraam
Copy link
Member

Could be a resolving problem like mentioned in https://stackoverflow.com/questions/1676688/mysql-connection-not-working-2002-no-such-file-or-directory
At line 284 localhost is used to connect. The above solution suggests to use 127.0.0.1 instead. Can you edit the code and try this?

@mischabraam
Copy link
Member

Fixed in https://github.com/weprovide/valet-plus/releases/tag/3.0.4

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

No branches or pull requests

3 participants