Ich hab ein kleines Problem und ich hiffe ihr könnt mir helfen.
Ich hab mir unter Windows und Linux XAMPP eingerichtet und so konfiguriert, dass ich meine Daten und Datenbank auf einer zentralen FAT32-Datenpartition liegen hab.
Unter Windows kein Problem.
Nur kann MySQL unter Linux manchmal nicht starten.
Folgende mc.cnf:
- Code: Select all
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /opt/lampp/var/mysql/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
tmpdir = /tmp
datadir = /mountpoints/localhost/mysql/data
port = 3306
socket = /opt/lampp/var/mysql/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
So kan der Server starten, auf die datenbank zugreifen und es funktioniert alles.
Das einzige Problem:
Beende ich MySQL, kommt die Meldung, dass MySQL gar nicht läuft. Schau ich mir aber die aktuell laufenden Prozesse an, entdecke ich, dass MySQL doch noch läuft.
Jetzt änder ich die my.cnf wie folgt ab:
- Code: Select all
[client]
socket = /mountpoints/localhost/mysql/data/mysql.sock
[mysqld]
socket = /mountpoints/localhost/mysql/data/mysql.sock
Jetzt startet er gar nicht mehr, mit folgender Meldung im Log:
- Code: Select all
080403 12:44:27 mysqld started
080403 12:44:27 [Warning] Setting lower_case_table_names=2 because file system for /mountpoints/localhost/mysql/data/ is case insensitive
080403 12:44:27 [ERROR] Can't start server : Bind on unix socket: Operation not permitted
080403 12:44:27 [ERROR] Do you already have another mysqld server running on socket: /mountpoints/localhost/mysql/data/mysql.sock ?
080403 12:44:27 [ERROR] Aborting
080403 12:44:27 [Note] /opt/lampp/sbin/mysqld: Shutdown complete
080403 12:44:27 mysqld ended
Daten zum Mountpoint:
- Code: Select all
drwxrwxrwx 6 root root 4096 2. Apr 14:12 mountpoints
Eintrag der /etc/fstab:
- Code: Select all
/dev/sdb10 /mountpoints/localhost auto users,gid=nobody,umask=0000 0 0
Weiß zufällig einer was ich hier falsch mache, oder kennt vielleicht einen ganz anderen Lösungsweg, den ich bisher noch gefunden hab.
Schonmal danke für die Hilfe!
Grüße
SonGoku