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

Répondre


Cette question est un moyen d’empêcher des soumissions automatisées de formulaires par des robots.
Smileys
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: =D> #-o =P~ :^o :non: :priere: 8-|
Voir plus de smileys
  Revue du sujet
 

  Étendre la vue Revue du sujet : mysql: unknown option '--........'

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

par @rthur » 31 janv. 2022, 13:17

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à (?)

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

par Noam » 31 janv. 2022, 12:09

up

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

par Noam » 21 janv. 2022, 10:33

# 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 '--........'

par @rthur » 20 janv. 2022, 17:02

Probablement le fichier de config MySQL (en général dans /etc/mysql/my.cnf) qui est incorrect

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

par Noam » 20 janv. 2022, 12:59

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