This helps us to configure a strong root account password, remote anonymous users, disallow root access remotely and remove the test database.Įxecute the following command from the terminal: sudo mysql_secure_installationĮnter the root password found in the above step, then set a new password for the MySQL root account. That is helpful for configuring MySQL once after the installation. This password will be required in the next step.Ī post-installation script is provided by the MySQL packages. Getting the default root password after installation You will see the output below that includes the default root password. cat /var/log/mysql.log | grep "A temporary password" You can find this password from the MySQL log file. systemctl status mysqld Activate and start MySQL serviceĭuring the installation of packages, an initial password is configured for the MySQL root account. Then, use the following command to view the MySQL service status. systemctl active mysqld systemctl start mysqld First, use the following commands to activate the service to auto-start on system startup, then start it manually for the first time. The default MySQL service will be stopped and in an inactive state. Once the installation is successfully finished. MySQL pacakges installation on Amazon Linux 2 Press ‘y’ for the confirmation prompted during the installation. Execute the below-mentioned command to install MySQL 8 community server on Amazon Linux. You can successfully configure the repositories, your system is ready for MySQL installation. Then configure the MySQL repository by installing the package provided by the MySQL official site. Use the following command to configure the EPEL repository that is required for package installation. Most of the packages required the dependencies that are available in other third-party repositories. Follow the below steps one by one to complete the MySQL installation. The MySQL official team provides the RPM packages for the installation of Amazon Linux systems. You can also use Amazon RDS to configure other databases besides MySQL. When you’re finished, you’ll have a fully-functioning MySQL database that you can use with either the AWS Console or your own application. This article will walk through the process of installing MySQL 8 on Amazon Linux 2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |