Page 1 sur 1

mysql: unknown option '--........'

Posté : 20 janv. 2022, 12:59
par Noam
Bonjour,

J'ai créé une base de donnée mysql pour LibreNMS mais lorsque je tape la commande : mysql -u root -p
j'ai l'erreur: mysql: unknown option '--........'
Je ne comprend pas pourquoi

Merci pour votre aide

Re: mysql: unknown option '--........'

Posté : 20 janv. 2022, 17:02
par @rthur
Probablement le fichier de config MySQL (en général dans /etc/mysql/my.cnf) qui est incorrect

Re: mysql: unknown option '--........'

Posté : 21 janv. 2022, 10:33
par Noam
# 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.
#


#
# 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/

Voilà mon fichier my.cnf, étant donné que je ne l'ai jamais modifié je ne vois pas ce qui pourrait être incorrect.

Merci pour votre réponse

Re: mysql: unknown option '--........'

Posté : 31 janv. 2022, 12:09
par Noam
up

Re: mysql: unknown option '--........'

Posté : 31 janv. 2022, 13:17
par @rthur
Il faut que tu essayes de debuguer par toi même car difficile sans voir le problème sur sa propre machine...
Dans ton fichier de config, c'est indiqué explicitement la liste de tous les fichiers de config chargés donc peut-être qu'il y aurait un problème dans ceux-là (?)