PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : kein connect zur mysql-Datnbank



monsterherz
31.07.03, 19:21
Ich kann mein MYSQL nicht starten... was stimmt nicht ?
System : Knoppix
Hier die Infos:

root@laptop:~# /etc/init.d/apache start
Starting web server: apache[Thu Jul 31 18:00:46 2003] [alert] apache: Could not
determine the server's fully qualified domain name, using 127.0.0.1 for ServerNa
me

root@laptop:/usr/sbin# mysqld start
bash: mysqld: command not found

root@laptop:/usr/sbin# locate mysql
/etc/init.d/mysql
/etc/logcheck/ignore.d.server/mysql-server
/etc/logcheck/ignore.d.workstation/mysql-server
/etc/logrotate.d/mysql-server
/etc/mysql
/etc/mysql/debian.cnf
/etc/mysql/my.cnf
/etc/mysql/my.cnf.dpkg-old
/usr/bin/msql2mysql

(ich habe natürlich etwas "abgeschnitten")


root@laptop:/usr# mysql -h localhost -u root -p
bash: mysql: command not found


root@laptop:/usr/sbin# lsof -i -n
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
portmap 158 daemon 3u IPv4 152 UDP *:sunrpc
portmap 158 daemon 4u IPv4 153 TCP *:sunrpc (LISTEN)
nmbd 274 root 6u IPv4 383 UDP *:netbios-ns
nmbd 274 root 7u IPv4 384 UDP *:netbios-dgm
nmbd 274 root 8u IPv4 386 UDP 192.168.0.2:netbios-ns
nmbd 274 root 9u IPv4 387 UDP 192.168.0.2:netbios-dgm
smbd 276 root 9u IPv4 393 TCP *:netbios-ssn (LISTEN)
sshd 283 root 3u IPv4 405 TCP *:ssh (LISTEN)
apache 737 root 16u IPv4 9356 TCP *:www (LISTEN)
apache 738 www-data 16u IPv4 9356 TCP *:www (LISTEN)
apache 739 www-data 16u IPv4 9356 TCP *:www (LISTEN)
apache 740 www-data 16u IPv4 9356 TCP *:www (LISTEN)
apache 741 www-data 16u IPv4 9356 TCP *:www (LISTEN)
apache 742 www-data 16u IPv4 9356 TCP *:www (LISTEN)
apache 756 www-data 16u IPv4 9356 TCP *:www (LISTEN)
apache 762 www-data 16u IPv4 9356 TCP *:www (LISTEN)
apache 763 www-data 16u IPv4 9356 TCP *:www (LISTEN)
apache 764 www-data 16u IPv4 9356 TCP *:www (LISTEN)
apache 765 www-data 16u IPv4 9356 TCP *:www (LISTEN)
apache 766 www-data 16u IPv4 9356 TCP *:www (LISTEN)
apache 767 www-data 16u IPv4 9356 TCP *:www (LISTEN)
mozilla-b 772 root 27u IPv4 17967 TCP 192.168.0.2:32906->192.168.0 .1:3128 (ESTABLISHED)
mozilla-b 789 root 27u IPv4 17967 TCP 192.168.0.2:32906->192.168.0 .1:3128 (ESTABLISHED)
mozilla-b 790 root 27u IPv4 17967 TCP 192.168.0.2:32906->192.168.0 .1:3128 (ESTABLISHED)
mozilla-b 791 root 27u IPv4 17967 TCP 192.168.0.2:32906->192.168.0 .1:3128 (ESTABLISHED)
mozilla-b 792 root 27u IPv4 17967 TCP 192.168.0.2:32906->192.168.0 .1:3128 (ESTABLISHED)
mozilla-b 793 root 27u IPv4 17967 TCP 192.168.0.2:32906->192.168.0 .1:3128 (ESTABLISHED)

root@laptop:/usr/sbin# service mysqld start
bash: service: command not found

root@laptop:/usr/sbin# ps -ef | grep mysqld
root 1422 628 3 19:31 pts/0 00:00:00 grep mysqld


root@laptop:/# find / -name mysql.so
keine Angabe

Wieso steht im ps dass sql aktiv ist und er findet trotzdem nix ? PHP-Datei php-info über localhost läuft...

Berufspenner
31.07.03, 21:31
Wieso steht im ps dass sql aktiv ist und er findet trotzdem nix ? PHP-Datei php-info über localhost läuft... Deine ps-Anfrage ist selber ein laufender Prozess (gewesen) in dem mysql enthalten war. Normalerweise solltest du, wenn du den MySQL-Server samt aller Abhängigkeiten via apt installiert hast, MySQL du
/etc/init.d/mysql start starten können.

Cu
André

monsterherz
01.08.03, 07:06
Deine ps-Anfrage ist selber ein laufender Prozess (gewesen)
Ist mir nach langem Versuch des logischen Denkens (Frauen ;-) auch aufgefallen.

Woran liegt es, dass er auf den "Standard-Service" -Befehl nicht regiert? Wo lege ich die Services fest ? :(

so, genug gefragt....

danke nochmal..

monsterherz

ThorstenS
01.08.03, 08:41
root@laptop:/usr# mysql -h localhost -u root -p
bash: mysql: command not found

demzufolge ist also das Packet mysql-client nicht installiert.
Starten kannst du den Server über /etc/init.d/mysql start

monsterherz
01.08.03, 15:55
root@laptop:/etc/init.d# apt-get install mysqlclient
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package mysqlclient

root@laptop:/etc/init.d# mysql start
bash: mysql: command not found
root@laptop:/etc/init.d#

Laut Knoppix ist SQL standardmässig installiert- anscheinend nicht ?
In meiner locate Anfrag für SQL kam ja auch ne ganze Menge.....

Ein apt-get update geht nicht, da ich nicht auf den FTP-Host komme. Über deselect soll man ja mit Knoppix nicht arbeiten, hab ich im Knoppix Forum gelesen (oder linux-intern)

Was kann ich noch tun?

Berufspenner
01.08.03, 16:05
root@laptop:/etc/init.d# apt-get install mysqlclient
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package mysqlclient richtig wäre "apt-get install mysql-client".
root@laptop:/etc/init.d# mysql start
bash: mysql: command not found
root@laptop:/etc/init.d# Auch hier ist ein Fehler versteckt. Wenn du dich im Verzeichnis "/etc/init.d/" befindest muss das ganze "./mysql start" heissen.

Cu
André

monsterherz
01.08.03, 16:22
root@laptop:/etc/init.d# ./mysql start
bash: ./mysql: No such file or directory

root@laptop:/etc/init.d# apt-get install mysql-client
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
Sorry, but the following packages have unmet dependencies:
libmysqlclient12: Depends: libc6 (>= 2.2.4-4) but it is not going to be instal
led
Depends: libssl0.9.6 but it is not going to be installed
Depends: zlib1g (>= 1:1.1.4) but it is not going to be insta
lled
mysql-client: Depends: debianutils (>= 1.6) but it is not going to be installe
d
Depends: libdbi-perl but it is not going to be installed
Depends: libdbd-mysql-perl (>= 1.2202) but it is not going to be installed
Depends: perl but it is not going to be installed
Depends: libc6 (>= 2.3.1-1) but it is not going to be installed
Depends: libgcc1 (>= 1:3.3-0pre9) but it is not going to be inst alled
Depends: libncurses5 (>= 5.3.20021109-1) but it is not going to be installed
Depends: libreadline4 (>= 4.3-1) but it is not going to be insta lled
Depends: libssl0.9.7 but it is not going to be installed
Depends: libstdc++5 (>= 1:3.3-0pre9) but it is not going to be i nstalled
Depends: zlib1g (>= 1:1.1.4) but it is not going to be installed
W: Couldn't stat source package list http://download.kde.org stable/main Package s (/var/lib/apt/lists/download.kde.org_stable_3.1.2_Debian_dists_stable_ main_bin ary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://developer.linuxtag.net ./ Packages ( /var/lib/apt/lists/developer.linuxtag.net_knoppix_._Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a s olution).

root@laptop:/etc/init.d# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
gcc-3.3-base libc6 perl-base
The following packages will be REMOVED:
libmysqlclient12 mysql-client
The following NEW packages will be installed:
gcc-3.3-base libc6 perl-base
0 packages upgraded, 3 newly installed, 2 to remove and 1 not upgraded.
2 packages not fully installed or removed.
Need to get 4019kB of archives. After unpacking 13.5MB will be used.
Do you want to continue? [Y/n] Y

Danach keine Verbindung zum FTP-Host....

@Berufspenner: Dank Dir mal für Deine tolle Hilfe und Geduld :)

HEMIcuda
01.08.03, 16:29
ftp_proxy="http://proxy-ip:port/"

ist gesetzt? Ich vermute doch mal, dass Du hinter
einem Proxy steckst, oder nicht? Klingt zumindest so.
Oder Port 21 ist in der FW nicht freigegeben.
Oder so was....

'cuda

monsterherz
01.08.03, 16:39
Ja, ganu das:

http://www.linuxforen.de/forums/showthread.php?s=&threadid=91980

Der Befehl für die Konsole lautet also:

ftp-proxy="http://192.168.0.1:2121" oder ?