Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mysql 8 Support #1805

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Mysql 8 Support #1805

wants to merge 1 commit into from

Conversation

Skamasle
Copy link
Collaborator

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

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
Copy link

@nepohex nepohex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Спасибо за патч!
После обновления 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

@nepohex
Copy link

nepohex commented Apr 30, 2019

Также важно упомянуть в гайде что если создавать файлы db.sh / rebuild.sh вручную в блокноте и заливать в папку /usr/local/vesta/func , то нужно применить к ним

sed -i 's/\r//' /usr/local/vesta/func/db.sh
sed -i 's/\r//' /usr/local/vesta/func/rebuild.sh

Иначе будет ошибка и файлы не будут исполняться вообще.
line 2: syntax error near unexpected token `$'{\r''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants