Installation


Check your OS version and MySQL Community versions https://dev.mysql.com/downloads/mysql/
Check Password
grep 'temporary password' /var/log/mysqld.log   find temporary root password   Nc%Qa;dYY9rW   


mysql -uroot -p

ALTER USER 'root'@'localhost' IDENTIFIED BY 'P@ss2023Shawid';
flush privileges;
exit; 


mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'P@ss2023Shawid';
Query OK, 0 rows affected (0.01 sec)

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
4 rows in set (0.01 sec)





wget https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-community-server-8.4.4-1.el8.x86_64.rpm
MD5: a10acdaafe00dfe01704e5bcf0a764b8


[root@redhat yum.repos.d]# yum install https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-community-server-8.4.4-1.el8.x86_64.rpm


sudo dnf install https://dev.mysql.com/get/mysql80-community-release-el8-1.noarch.rpm

Install MySQL on Centos/RHEL version 7 or RPM Packages OS

  1. - [root@redhat ~]# yum update
  2. - [root@redhat ~]# curl -sSLO https://dev.mysql.com/get/mysql80-community-release-el7-7.noarch.rpm
  3. - [root@redhat ~]# md5sum mysql80-community-release-el7-7.noarch.rpm command to ensure that the MySQL repository packages
  4. - [root@redhat ~]# rpm -ivh mysql80-community-release-el7-7.noarch.rpm Adding MySQL repository
  5. - [root@redhat ~]# yum repolist Verify
  6. - [root@redhat ~]# yum install mysql-server
  7. - [root@redhat ~]# systemctl start mysqld
  8. - [root@redhat ~]# systemctl enable mysqld
  9. - [root@redhat ~]# systemctl status mysqld
  10. - [root@redhat ~]# firewall-cmd --add-port=3306/tcp --permanent
  11. - [root@redhat ~]# grep 'temporary password' /var/log/mysqld.log find temporary root password Nc%Qa;dYY9rW

Database System Infos

mysql --version En ligne de commande système

SELECT VERSION(); dans la console MySQL


Eninam BAGNABANA     |         |     bagnadavid@outlook.fr     |