-
Notifications
You must be signed in to change notification settings - Fork 577
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
Update MySQL docs #1023
Open
yoursw
wants to merge
1
commit into
azerothcore:master
Choose a base branch
from
yoursw:support/update_mysql_docs
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update MySQL docs #1023
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,9 +69,39 @@ sudo apt update && sudo apt install git cmake make gcc g++ clang libssl-dev libb | |
### Get MySQL | ||
```bash | ||
mkdir -p ~/mysqlpackages && cd ~/mysqlpackages | ||
wget https://dev.mysql.com/get/mysql-apt-config_0.8.32-1_all.deb | ||
sudo DEBIAN_FRONTEND="noninteractive" dpkg -i mysql-apt-config_0.8.32-1_all.deb | ||
sudo apt update && sudo apt install libmysqlclient-dev mysql-server -y | ||
``` | ||
|
||
1. Visit the [MySQL APT repository](https://dev.mysql.com/downloads/repo/apt/) page to verify and download the latest script version. | ||
```sh | ||
export MYSQL_APT_CONFIG_VERSION=0.8.33-1 | ||
``` | ||
|
||
1. Download the latest MySQL repository information package. | ||
|
||
```sh | ||
wget https://dev.mysql.com/get/mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb | ||
``` | ||
|
||
1. (Recommended) Verify config authenticity. If you encounter any issues with this step, please refer to: https://dev.mysql.com/doc/refman/8.4/en/checking-gpg-signature.html | ||
```sh | ||
wget "https://dev.mysql.com/downloads/gpg/?file=mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb&p=37" -O mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb.asc | ||
gpg --keyserver pgp.mit.edu --recv-keys A8D3785C | ||
gpg --verify mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb.asc mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb | ||
rm -v mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb.asc | ||
``` | ||
|
||
1. Non-Interactive install using `DEBIAN_FRONTEND="noninteractive"` to install the latest MYSQL-LTS release, e.g. `mysql-8.4-lts` without any user prompts showing up. | ||
|
||
```sh | ||
sudo DEBIAN_FRONTEND="noninteractive" dpkg -i ./mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb | ||
rm -v ./mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb | ||
unset MYSQL_APT_CONFIG_VERSION | ||
sudo apt-get update | ||
sudo DEBIAN_FRONTEND="noninteractive" apt-get install -y mysql-server libmysqlclient-dev | ||
``` | ||
|
||
1. Harden installation | ||
```bash | ||
sudo mysql_secure_installation | ||
``` | ||
- Validate password component: N | ||
|
@@ -80,6 +110,7 @@ sudo mysql_secure_installation | |
- Disallow root login remotely: Y | ||
- Remove test database: Y | ||
- Reload privilege tables: Y | ||
|
||
### Setup SQL Database | ||
```bash | ||
sudo mysql -u root -p | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change to just |
||
|
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this step. Noninteractive install of mysql sets root to socket authentication (no password) which leads to an error at the root password part of mysql_secure_installation.