After putting the solution in
my previous post through its paces for a few
weeks, I realized the less intrusive approach is to patch Homestead v2's
scripts/create-mysql.sh with the following
#!/usr/bin/env bash cat > /etc/mysql/conf.d/password_expiration.cnf << EOF [mysqld] default_password_lifetime = 0 EOF service mysql restart DB=$1; mysql -e "CREATE DATABASE IF NOT EXISTS \`$DB\` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci";
This change pipes the
default_password_lifetime setting into the file
mysql service. The provisioning process then can proceed as normal.