Tom: Ohne my2.cnf klappt es aber

Beitrag lesen

Hello,

habe die my.cnf kopiert nach my2.cnf und die Einstellungen angepasst. Eigentlich nur den Port geändert und bei allen Pfaden auf /hdd2/... verwiesen.

das ist doch zu wenig! Das Handbuch sagt Dir doch, dass neben

-- port

noch die Optionen

-- socket
-- pid-file

unterschiedliche Werte enthalten müssen. (Ich gehe von Deinem Debian aus :-))

Ja, die sind doch über Pfade erreichbar :-)

---------------------------------

The MySQL database server configuration file for Server 2

Remember to edit /etc/mysql/debian.cnf when changing the socket location.

[client]
port  = 3307
socket  = /hdd2/var/run/mysqld/mysqld.sock

[mysqld_safe]
socket  = /hdd2/var/run/mysqld/mysqld.sock
nice  = 0

[mysqld]
user  = mysql
pid-file = /hdd2/var/run/mysqld/mysqld.pid
socket  = /hdd2/var/run/mysqld/mysqld.sock
port  = 3307
basedir  = /hdd2/usr
datadir  = /hdd2/var/lib/mysql

tmpdir  = /hdd2/tmp
language = /hdd2/usr/share/mysql/english
skip-external-locking

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

bind-address    = 192.168.101.99

key_buffer  = 16M
max_allowed_packet = 16M
thread_stack  = 128K
thread_cache_size = 8
#max_connections        = 100
#table_cache            = 64
#thread_concurrency     = 10

query_cache_limit       = 1M
query_cache_size        = 16M

Error logging goes to syslog. This is a Debian improvement :)

#server-id  = 1
log_bin   = /hdd2/var/log/mysql/mysql-bin.log

WARNING: Using expire_logs_days without bin_log crashes the server! See README.Debian!

expire_logs_days = 10
max_binlog_size         = 100M
#binlog_do_db  = include_database_name
#binlog_ignore_db = include_database_name

Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.

skip-bdb

You might want to disable InnoDB to shrink the mysqld process by circa 100MB.

#skip-innodb

[mysqldump]
quick
quote-names
max_allowed_packet = 16M

[mysql]
#no-auto-rehash # faster start of mysql but no tab completition

[isamchk]
key_buffer  = 16M

* IMPORTANT: Additional settings that can override those from this file!

!includedir /hdd2/etc/mysql/conf.d/
-----------------------------------------

Was ist denn noch falsch an der my2.cnf?

Mit

testserver:/hdd2/var/run/mysqld# mysqld_safe --port=3307 --socket=/hdd2/var/lib/mysqld/mysqld.sock --pid-file=/hdd2/var/lib/mysqld/mysqld.pid --datadir=/hdd2/var/lib/mysql --log
-error=/hdd2/var/log/mysql/mysql-bin.log
Starting mysqld daemon with databases from /hdd2/var/lib/mysql
mysqld_safe[2934]: started

klappt es aber. Mit Heidi und mit SQL-Front komm ich auch drauf.

Wie kann ich denn nun aber die mysql-shell auf der Konsole benutzen?

Harzliche Grüße vom Berg
http://bergpost.annerschbarrich.de

Tom

--
Fortschritt entsteht nur durch die Auseinandersetzung der Kreativen
Nur selber lernen macht schlau
Ein Jammer ist auch, dass die Dummen so selbstsicher und die Klugen voller Zweifel sind. Das sollte uns häufiger zweifeln lassen :-)