Answer the question
In order to leave comments, you need to log in
Yii2 and migrations. Why can't connect to the database?
There is a project on Yii2, which was not developed by me. When performing migrations php yii migrate
- hits an error
Exception 'yii\db\Exception' with message 'SQLSTATE[HY000] [2002] No such file or directory'
in /Applications/AMPPS/www/foodclub.loc/vendor/yiisoft/yii2/db/Connection.php:549
Answer the question
In order to leave comments, you need to log in
Everything is much easier. In the config I changed localhost to 127.0.0.1 - and everything worked
Regular expression:
One of the options. Should be used with the g flag.
The construction (?<=<br>).*$
consists of several syntactic constructions:
The regular expression has the g flag, which means that we are looking for the first match. This flag can be omitted.
But the m - flag cannot be used, since it will give an empty value for the first line, because it also has a tag
and the end of the line - $, but there are no characters between them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question