|
|
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
- - [root@redhat ~]# yum update
- - [root@redhat ~]# curl -sSLO https://dev.mysql.com/get/mysql80-community-release-el7-7.noarch.rpm
- - [root@redhat ~]# md5sum mysql80-community-release-el7-7.noarch.rpm command to ensure that the MySQL repository packages
- - [root@redhat ~]# rpm -ivh mysql80-community-release-el7-7.noarch.rpm Adding MySQL repository
- - [root@redhat ~]# yum repolist Verify
- - [root@redhat ~]# yum install mysql-server
- - [root@redhat ~]# systemctl start mysqld
- - [root@redhat ~]# systemctl enable mysqld
- - [root@redhat ~]# systemctl status mysqld
- - [root@redhat ~]# firewall-cmd --add-port=3306/tcp --permanent
- - [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
|
|
|