Am Mittwoch, den 03.05.2006, 23:48 +0200 schrieb Christian Hammers: > tags 365433 + unreproducible moreinfo > thanks > > Hello > > > /usr/bin/mysql: unknown option '--no-defaults' > > This is quite strange, as: > > $ mysql --no-defaults --force --user=root --host=localhost --database=mysql > Reading table information for completion of table and column names > You can turn off this feature to get a quicker startup with -A > ... > > The "--no-defaults" is a standard parameter that works for mysql since > ages... > Please check "/usr/bin/mysql --version" and "/usr/bin/mysql --help |grep > default".
# /usr/bin/mysql --version /usr/bin/mysql Ver 14.12 Distrib 5.0.20a, for pc-linux-gnu (i486) using readline 5.1 # /usr/bin/mysql --help |grep default --default-character-set=name Set the default character set. starts with this option ENABLED by default! Disable with disabled by default. -o, --one-database Only update the default database. This is useful for option the default pager is taken from your ENV variable --disable-reconnect. This option is enabled by default. --print-defaults Print the program argument list and exit --no-defaults Don't read default options from any options file --defaults-file=# Only read default options from the given file # --defaults-extra-file=# Read this file after the global files are read character-sets-dir (No default value) default-character-set latin1 database (No default value) host (No default value) # cat /usr/share/mysql/mysql_fix_privilege_tables.sql | /usr/bin/mysql --verbose --no-defaults --force --user=root --host=localhost --database=mysql /usr/bin/mysql: unknown option '--no-defaults' > Can you reproduce the problem? I can reproduce that issue even when mysqld gets started or when I reinstall mysql-server-5.0. $ less /var/log/boot Thu May 4 00:11:30 2006: Starting MySQL database server: mysqld. Thu May 4 00:11:33 2006: . Thu May 4 00:11:33 2006: FIXME: This is still too noisy but will be changed, soon! Thu May 4 00:11:33 2006: This script updates all the mysql privilege tables to be usable by Thu May 4 00:11:33 2006: MySQL 4.0 and above. Thu May 4 00:11:33 2006: Thu May 4 00:11:33 2006: This is needed if you want to use the new GRANT functions, Thu May 4 00:11:33 2006: CREATE AGGREGATE FUNCTION, stored procedures, or Thu May 4 00:11:33 2006: more secure passwords in 4.1 Thu May 4 00:11:33 2006: Thu May 4 00:11:33 2006: Got a failure from command: Thu May 4 00:11:33 2006: cat /usr/share/mysql/mysql_fix_privilege_tables.sql | /usr/bin/mysql --no-defaults --force --user=root --host=localhost --database=mysql Thu May 4 00:11:33 2006: Please check the above output and try again. Thu May 4 00:11:33 2006: Thu May 4 00:11:33 2006: Running the script with the --verbose option may give you some information Thu May 4 00:11:33 2006: of what went wrong. Thu May 4 00:11:33 2006: Thu May 4 00:11:33 2006: If you get an 'Access denied' error, you should run this script again and Thu May 4 00:11:33 2006: give the MySQL root user password as an argument with the --password= option Thu May 4 00:11:33 2006: Checking for crashed MySQL tables in the background. > And if so send me > your /etc/mysql/my.cnf, /root/.my.cnf and /etc/mysql/debian-start? The first and the latter one are attached. The ~root/.my.cnf does not contain related information. If I can provide more information, please let me know. Regards, Daniel
debian-start
Description: application/shellscript
# # The MySQL database server configuration file. # # You can copy this to one of: # - "/etc/mysql/my.cnf" to set global options, # - "/var/lib/mysql/my.cnf" to set server-specific options or # - "~/.my.cnf" to set user-specific options. # # 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. # # For explanations see # http://dev.mysql.com/doc/mysql/en/server-system-variables.html # This will be passed to all mysql clients # It has been reported that passwords should be enclosed with ticks/quotes # escpecially if they contain "#" chars... # Remember to edit /etc/mysql/debian.cnf when changing the socket location. [client] port = 3306 socket = /var/run/mysqld/mysqld.sock # Here is entries for some specific programs # The following values assume you have at least 32M ram # This was formally known as [safe_mysqld]. Both versions are currently parsed. [mysqld_safe] socket = /var/run/mysqld/mysqld.sock nice = 0 [mysqld] # # * Basic Settings # user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp language = /usr/share/mysql/english skip-external-locking # # For compatibility to other Debian packages that still use # libmysqlclient10 and libmysqlclient12. old_passwords = 1 # # Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. bind-address = 127.0.0.1 # # * Fine Tuning # key_buffer = 16M max_allowed_packet = 16M thread_stack = 128K # # * Query Cache Configuration # query_cache_limit = 1048576 query_cache_size = 16777216 query_cache_type = 1 # # * Logging and Replication # # Both location gets rotated by the cronjob. # Be aware that this log type is a performance killer. #log = /var/log/mysql.log #log = /var/log/mysql/mysql.log # # Error logging goes to syslog. This is a Debian improvement :) # # Here you can see queries with especially long duration #log-slow-queries = /var/log/mysql/mysql-slow.log # # The following can be used as easy to replay backup logs or for replication. #server-id = 1 log-bin = /var/log/mysql/mysql-bin.log expire-logs-days = 20 max_binlog_size = 104857600 #binlog-do-db = include_database_name #binlog-ignore-db = include_database_name # # * BerkeleyDB # # According to an MySQL employee the use of BerkeleyDB is now discouraged # and support for it will probably cease in the next versions. skip-bdb # # * InnoDB # # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/. # Read the manual for more InnoDB related options. There are many! # # * Security Features # # Read the manual, too, if you want chroot! # chroot = /var/lib/mysql/ # # If you want to enable SSL support (recommended) read the manual or my # HOWTO in /usr/share/doc/mysql-server/SSL-MINI-HOWTO.txt.gz # ssl-ca=/etc/mysql/cacert.pem # ssl-cert=/etc/mysql/server-cert.pem # ssl-key=/etc/mysql/server-key.pem [mysqldump] quick quote-names max_allowed_packet = 16M [mysql] #no-auto-rehash # faster start of mysql but no tab completition [isamchk] key_buffer = 16M # # * NDB Cluster # # See /usr/share/doc/mysql-server-*/README.Debian for more information. # # The following configuration is read by the ndbd storage daemons, # not from the ndb_mgmd management daemon. # # [MYSQL_CLUSTER] # ndb-connectstring=127.0.0.1