Skip to content

Mysql 8 Support#1805

Open
Skamasle wants to merge 1 commit into
masterfrom
Skamasle-patch-3
Open

Mysql 8 Support#1805
Skamasle wants to merge 1 commit into
masterfrom
Skamasle-patch-3

Conversation

@Skamasle

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

@nepohex nepohex left a comment

Copy link
Copy Markdown

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

nepohex commented Apr 30, 2019

Copy link
Copy Markdown

Также важно упомянуть в гайде что если создавать файлы 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''

@Neustradamus

Copy link
Copy Markdown

Dear all,

@Dennis-SEG has done a very good job here:

What do you think?

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.

3 participants