Set default_password_lifetime to 0 (Never Expire) #60

Merged
merged 1 commit into from Nov 14, 2015

Projects

None yet

2 participants

@konomae
Contributor
konomae commented Nov 14, 2015

default_password_lifetime is 360 since MySQL 5.7.4
http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_default_password_lifetime

It will stop apps using MySQL 360 days later.

vagrant@homestead:~$ mysql -u homestead -p

mysql> UPDATE mysql.user SET password_last_changed = '2014-11-13 00:00:00' WHERE user = 'homestead'; 
Query OK, 2 rows affected (0.00 sec)
Rows matched: 2  Changed: 2  Warnings: 0

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)

mysql> ^DBye


vagrant@homestead:~$ mysql -u homestead -p

mysql> SHOW DATABASES;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
@taylorotwell taylorotwell merged commit 4451cd3 into laravel:master Nov 14, 2015
@konomae konomae deleted the konomae:patch-1 branch Nov 14, 2015
@w0rd-driven w0rd-driven added a commit to w0rd-driven/settler that referenced this pull request Nov 14, 2016
@w0rd-driven w0rd-driven #60 Fix password expiration (4451cd3). Added `PASSWORD EXPIRE NEVER` …
…to make absolutely certain homestead will never expire regardless of config option.
78272be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment