sudo dnf install pip sudo pip install mycli
Showing posts from November, 2023
- Other Apps
Update the packages of your Amazon Linux 2023 by running the following command in your terminal: $ sudo dnf update. Download the MySQL Yum repository from the Oracle website using the following command: $ sudo wget https://dev.mysql.com/get/mysql80-community-release-el9-5.noarch.rpm. Install the MySQL community server and client on your system by running the following command: $ sudo dnf install mysql-community-server. Start the MySQL service and enable it to activate automatically with the system boot or crash by running the following command: $ sudo systemctl start mysqld and $ sudo systemctl enable mysqld. Secure your MySQL installation by setting a root password, removing anonymous users, disabling remote root login, and more. You can find the default password set by MySQL for the root user by running the following command: $ sudo grep 'temporary password' /var/log/mysqld.log. After that, run the following command and follow the prompts: $ sudo mysql_secure_installation.