Open
Conversation
This only works if default_authentication_plugin=mysql_native_password is setup So add it to Mysqld section [Mysqld] default_authentication_plugin=mysql_native_password
Skamasle
added a commit
that referenced
this pull request
Jan 12, 2019
This comes by hand with #1805
This was referenced Jan 12, 2019
nepohex
suggested changes
Apr 30, 2019
nepohex
left a comment
There was a problem hiding this comment.
Спасибо за патч!
После обновления 5.7 -> 8 MYSQL в панели юзеры в интерфейсе создавались, но фактически в базе не добавлялись. После вашего патча начали добавляться, но без доступа извне (GRANT). Полез смотреть код, поправил, заработало.
query="GRANT ALL ON \`$database\`.* TO \`$dbuser\`@\`%\`;"
mysql_query "$query" > /dev/null
query="GRANT ALL ON \`$database\`.* TO \`$dbuser\`@localhost;"
mysql_query "$query" > /dev/null
|
Также важно упомянуть в гайде что если создавать файлы db.sh / rebuild.sh вручную в блокноте и заливать в папку /usr/local/vesta/func , то нужно применить к ним Иначе будет ошибка и файлы не будут исполняться вообще. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This only works if default_authentication_plugin=mysql_native_password is setup
So add it to Mysqld section
[Mysqld]
default_authentication_plugin=mysql_native_password