Valet-plus: Problem installing: [UnexpectedValueException] RecursiveDirectoryIterator::__construct(/usr/local/var/mysql): failed to open dir: No such file or directory

Created on 5 Nov 2018  路  2Comments  路  Source: weprovide/valet-plus

OS X Mojave
PHP 7.1.23
Master branch

valet install --with-mariadb
[php] Checking for errors within the php installation...
[nginx] Stopping
[[email protected]] Stopping
[[email protected]] Stopping
[devtools] Installing tools
[devtools] wp-cli already installed
[devtools] pv already installed
[devtools] geoip already installed
[binaries] Installing binaries
[PECL] Updating PECL channel: pecl.php.net
[PECL] Installing extensions
apcu_bc is already installed, skipping...
apcu_bc is already enabled, skipping...
geoip is already installed, skipping...
geoip is already enabled, skipping...
[PECL-CUSTOM] Installing extensions
[[email protected]] Restarting
[dnsmasq] Restarting
[[email protected]] Stopping
[[email protected]] Configuring

[UnexpectedValueException]
RecursiveDirectoryIterator::__construct(/usr/local/var/mysql): failed to open dir: No such file or directory

install [--with-mariadb]

Most helpful comment

I solved it running:

mkdir /usr/local/var/mysql
brew link [email protected] --force
valet fix && valet install

All 2 comments

Managed to resolve this by unlinking and uninstalling all versions of php, mysql and mariadb.
Ran valet fix then was able to install again.

Was a tricky one to sort.

I solved it running:

mkdir /usr/local/var/mysql
brew link [email protected] --force
valet fix && valet install
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ezequielalba picture ezequielalba  路  15Comments

stanleyyylau picture stanleyyylau  路  17Comments

rav-redchamps picture rav-redchamps  路  13Comments

glennjacobs picture glennjacobs  路  22Comments

jahvi picture jahvi  路  24Comments