J’ai installé Apache et je continue.
Mot de passe pour mysql
[root@vmxxx ~]# mysql -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 9
Server version: 10.3.28-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
MariaDB [(none)]>
créer un mot de passe
MariaDB [(none)]> ALTER USER ‘root’@‘localhost’ identified by ‘123456’;
Query OK, 0 rows affected (0.000 sec)
MariaDB [(none)]> ALTER USER ‘root’@‘localhost’ PASSWORD EXPIRE NEVER;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘PASSWORD EXPIRE NEVER’ at line 1
MariaDB [(none)]> exit
Si je tape Enter, je reviens sous [root@vmxxx ~]#
Mais pourquoi cette erreur ?
J’ai essayé \q au lieu de exit, c’est pareil ?
Comment je fais pour fermer .
Not a problem, you are welcome. If I’m seeing that correctly, then MariaDB 10.3.28 is the most recent version that is available on Rocky/CentOS 8. You can update and check it on your own like this:
i don’t understand french, but anyways: 10.3 is the default but there is also 10.5
[root@fb82c67826f4 /]# dnf module list mariadb
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:00:12 ago on Wed Aug 25 20:26:29 2021.
Rocky Linux 8 - AppStream
Name Stream Profiles Summary
mariadb 10.3 [d] client, galera, server [d] MariaDB Module
mariadb 10.5 client, galera, server [d] MariaDB Module
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
OK. Déjà, merci pour la syntaxe de la mise à jour.
Maintenant, la question, si la 10.3 est par défaut, faut-il la garder ou on peut mettre la 10.5 (si elle est finie) ou faut vraiment la mettre ?
If you keep the 10.3, then you can use it until 2029.
If you install the 10.5, then you have to switch by May 2026. There will probably be another, newer mariadb-stream before that time (if upstream mariadb continues to develop).
Bonjour,
Vous avez probablement défini un password pour root@localhost.
Si vous souhaitez utliser la commande sans fournir de mot de passe, vous avez la possibilitée de créer un fichier d’accès “~/.my.cnf” contenant le password.
Exemple:
Bien joué, j’ai voulu créer cet user alors que je n’avais pas supprimé le mot de passe de root.
Maintenant, tout baigne
[root@vmxxx ~]# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 56
Server version: 10.3.28-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
MariaDB [(none)]>
Je préfère éviter ce genre d’exercice et rester dans le bon classique.
Mais je note cette possibilté.
Je note également.
Je ne suis pas trés vieux dans Linux et vos expériences m’aident beaucoup.
MERCI.
Je n’arrive pas à avoir une réponse.
Est-ce que Tar est natif dans Rocky 8.4 ?
J’étais en train d’installer acme.sh et j’ai eu droit à :
[root@vmxxx ~]# curl https://get.acme.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 937 0 937 0 0 3824 0 --:--:-- --:--:-- --:--:-- 3824
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 203k 100 203k 0 0 478k 0 --:--:-- --:--:-- --:--:-- 477k
[ven. sept. 3 11:05:57 EDT 2021] Installing from online archive.
[ven. sept. 3 11:05:57 EDT 2021] Downloading https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
[ven. sept. 3 11:05:57 EDT 2021] Extracting master.tar.gz
main: ligne 6674: tar : commande introuvable
main: ligne 6674: gtar : commande introuvable
[ven. sept. 3 11:05:57 EDT 2021] Extraction error.
Hi, I found on my minimal install, tar isn’t installed, so:
[root@rocky ~]# which tar
/usr/bin/which: no tar in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
[root@rocky ~]# dnf provides tar
Last metadata expiration check: 0:00:32 ago on Mon 06 Sep 2021 17:08:13 CEST.
tar-2:1.30-5.el8.x86_64 : A GNU file archiving program
Repo : baseos
Matched from:
Provide : tar = 2:1.30-5.el8
[root@rocky ~]# dnf install tar
Last metadata expiration check: 0:00:35 ago on Mon 06 Sep 2021 17:08:13 CEST.
Dependencies resolved.
======================================================================================================================
Package Architecture Version Repository Size
======================================================================================================================
Installing:
tar x86_64 2:1.30-5.el8 baseos 837 k
Transaction Summary
======================================================================================================================
Install 1 Package
Total download size: 837 k
Installed size: 2.7 M
Is this ok [y/N]: y
Downloading Packages:
tar-1.30-5.el8.x86_64.rpm 734 kB/s | 837 kB 00:01
----------------------------------------------------------------------------------------------------------------------
Total 444 kB/s | 837 kB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : tar-2:1.30-5.el8.x86_64 1/1
Running scriptlet: tar-2:1.30-5.el8.x86_64 1/1
Verifying : tar-2:1.30-5.el8.x86_64 1/1
Installed:
tar-2:1.30-5.el8.x86_64
Complete!
Je suis rassuré, je pensais que c’était natif.
Je viens de m’en occuper.
[root@vmxxx ~]# dnf install tar
Dernière vérification de l’expiration des métadonnées effectuée il y a 14:55:00 le lun. 06 sept. 2021 14:12:31 EDT.
Paquet Architecture Version Dépôt Taille
Installation:
tar x86_64 2:1.30-5.el8 baseos 837 k
Résumé de la transaction
Installer 1 Paquet
Taille totale des téléchargements : 837 k
Taille des paquets installés : 2.7 M
Téléchargement des paquets :
tar-1.30-5.el8.x86_64.rpm 4.0 MB/s | 837 kB 00:00
Total 1.9 MB/s | 837 kB 00:00
Test de la transaction
La vérification de la transaction a réussi.
Lancement de la transaction de test
Transaction de test réussie.
Exécution de la transaction
Préparation : 1/1
Installation : tar-2:1.30-5.el8.x86_64 1/1
Exécution du scriptlet: tar-2:1.30-5.el8.x86_64 1/1
Vérification de : tar-2:1.30-5.el8.x86_64 1/1