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

  • MySQL 8 for Big Data
  • Shabbir Challawala Jaydip Lakhatariya Chintan Mehta Kandarp Patel
  • 171字
  • 2021-08-20 10:06:07

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>';
主站蜘蛛池模板: 博乐市| 遂川县| 班玛县| 黑山县| 渝北区| 辽宁省| 噶尔县| 宜春市| 绵阳市| 平舆县| 常宁市| 虹口区| 祥云县| 凉城县| 临西县| 百色市| 乌海市| 襄樊市| 沐川县| 满洲里市| 彭山县| 丘北县| 子洲县| 敦化市| 宜黄县| 泸定县| 包头市| 沙雅县| 晋州市| 莫力| 阿瓦提县| 河北区| 温宿县| 米林县| 钟山县| 阿鲁科尔沁旗| 雅江县| 亳州市| 连城县| 奉化市| 洪江市|