Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#26 Le 29/03/2023, à 19:49

jajaX

Re : [résolu] nouveau problème de place sur ma partition racine !!!

merci.

j'ai modifié le fichier, redémarrer mon serveur mysql.

sudo systemctl status mysql
● mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2023-03-29 19:42:43 CEST; 5min ago
    Process: 195628 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
   Main PID: 195636 (mysqld)
     Status: "Server is operational"
      Tasks: 42 (limit: 18900)
     Memory: 528.1M
        CPU: 32.006s
     CGroup: /system.slice/mysql.service
             └─195636 /usr/sbin/mysqld

mars 29 19:42:41 Aspire-One-522 systemd[1]: Starting MySQL Community Server...
mars 29 19:42:41 Aspire-One-522 mysqld[195636]: 2023-03-29T17:42:41.904423Z 0 [System] [MY-010116] [Server] /usr/sbin/mys>
mars 29 19:42:41 Aspire-One-522 mysqld[195636]: 2023-03-29T17:42:41.913079Z 1 [System] [MY-013576] [InnoDB] InnoDB initia>
mars 29 19:42:42 Aspire-One-522 mysqld[195636]: 2023-03-29T17:42:42.521134Z 1 [System] [MY-013577] [InnoDB] InnoDB initia>
mars 29 19:42:42 Aspire-One-522 mysqld[195636]: 2023-03-29T17:42:42.989474Z 0 [Warning] [MY-010068] [Server] CA certifica>
mars 29 19:42:42 Aspire-One-522 mysqld[195636]: 2023-03-29T17:42:42.989557Z 0 [System] [MY-013602] [Server] Channel mysql>
mars 29 19:42:43 Aspire-One-522 mysqld[195636]: 2023-03-29T17:42:43.067180Z 0 [System] [MY-011323] [Server] X Plugin read>
mars 29 19:42:43 Aspire-One-522 mysqld[195636]: 2023-03-29T17:42:43.067303Z 0 [System] [MY-010931] [Server] /usr/sbin/mys>
mars 29 19:42:43 Aspire-One-522 systemd[1]: Started MySQL Community Server.

par contre, je ne peux pas y accéder par la commande indiquée.

ça ne marche que par celle-là :

mysql -u root -p

après, pour la vérification, ça n'a pas était pris en compte car

mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 28
Server version: 8.0.32-0ubuntu0.22.04.2 (Ubuntu)

Copyright (c) 2000, 2023, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show variables like 'log_bin'; 
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| log_bin       | ON    |
+---------------+-------+
1 row in set (0,01 sec)

@+
jajaX
Asus X93SM-YZ157V / Asus X93SM-YZ065V sous KDE Neon
ASUS K95VB sous Kubuntu 22.04 Jammy Jellyfish (64 bits) / ACER Aspire 5612 WLMI sous Kubuntu 18.04 Bionic Beaver (32 bits)

Hors ligne

#27 Le 29/03/2023, à 20:02

bruno

Re : [résolu] nouveau problème de place sur ma partition racine !!!

Est-ce que l'on peut voir le contenu de /etc/mysql/my.cnf ?

En ligne

#28 Le 29/03/2023, à 22:07

jajaX

Re : [résolu] nouveau problème de place sur ma partition racine !!!

voici le fichier demandé :

# The MariaDB configuration file
#
# The MariaDB/MySQL tools read configuration files in the following order:
# 0. "/etc/mysql/my.cnf" symlinks to this file, reason why all the rest is read.
# 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,
# 2. "/etc/mysql/conf.d/*.cnf" to set global options.
# 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.
# 4. "~/.my.cnf" to set user-specific options.
#
# If the same option is defined multiple times, the last one will apply.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# If you are new to MariaDB, check out https://mariadb.com/kb/en/basic-mariadb-articles/

#
# This group is read both by the client and the server
# use it for options that affect everything
#
[client-server]
# Port or socket location where to connect
# port = 3306
socket = /run/mysqld/mysqld.sock

# Import all .cnf files from configuration directory
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mariadb.conf.d/

mais ce n'est pas celui que tu m'avais demandé de modifier. je tente pour voir...


@+
jajaX
Asus X93SM-YZ157V / Asus X93SM-YZ065V sous KDE Neon
ASUS K95VB sous Kubuntu 22.04 Jammy Jellyfish (64 bits) / ACER Aspire 5612 WLMI sous Kubuntu 18.04 Bionic Beaver (32 bits)

Hors ligne

#29 Le 29/03/2023, à 22:16

jajaX

Re : [résolu] nouveau problème de place sur ma partition racine !!!

c'est bon après nouvelle modification (et une petite recherche) =>

à la fin du my.cnf

[mysqld]
disable_log_bin

ce qui donne

mysql> show variables like 'log_bin';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| log_bin       | OFF   |
+---------------+-------+
1 row in set (0,01 sec)

merci encore à toi wink


@+
jajaX
Asus X93SM-YZ157V / Asus X93SM-YZ065V sous KDE Neon
ASUS K95VB sous Kubuntu 22.04 Jammy Jellyfish (64 bits) / ACER Aspire 5612 WLMI sous Kubuntu 18.04 Bionic Beaver (32 bits)

Hors ligne

#30 Le 01/04/2023, à 12:56

bruno

Re : [résolu] nouveau problème de place sur ma partition racine !!!

Ok mais ce n'est pas propre et cela risque d'être écrasé lors d'une mise à niveau.
Je m’aperçois que j'ai fait une erreur au #25 pour la suggestion de modification /etc/mysql/mysql.conf.d/mysqld.cnf  alors qu'il s'agissait évidemment de /etc/mysql/conf.d/mysqld.cnf Si tu as suivi mon conseil à lettre, effectivement cela ne pouvait pas marcher…

En ligne