官术网_书友最值得收藏!

MySQL 8 installation

Once you have the RPM packages, just install it using the following command. This will place the required files and folder under the system directories:

rpm -vih <package-name>.rpm

For the standard installation, it requires only mysql-community-common, mysql-community-libs, mysql-community-client, and mysql-community-server packages. Look at the following screenshot for the installation process:

After the successful installation, just check its version to validate if it's installed properly and can be accessible:

The next step is to reset the temporary password during post-installation. MySQL will restrict you to use the database before changing this temporary password. A temporary password will be generated by MySQL and available in its log file. To retrieve a temporary password, you need to open the /var/log/mysql/mysqld.log file and search for the temporary password keyword.

Copy this and try to connect to MySQL with the following command:

As shown in the preceding screenshot, you will land on a MySQL command prompt, where you can execute the following query to reset the password:

ALTER USER 'root'@'localhost' IDENTIFIED BY '<NEW_PASSWORD>';
主站蜘蛛池模板: 阿拉善盟| 新和县| 西丰县| 崇文区| 衡阳市| 静宁县| 黎城县| 上杭县| 平昌县| 樟树市| 阳山县| 安平县| 鄄城县| 平原县| 泰宁县| 望奎县| 沧州市| 大城县| 三都| 庆城县| 万载县| 牙克石市| 喀喇| 马山县| 醴陵市| 同江市| 旬邑县| 张家口市| 台东市| 县级市| 定安县| 北宁市| 中卫市| 慈利县| 大庆市| 竹山县| 乐东| 临安市| 兴业县| 阜新| 晋城|