robotangel
24.07.04, 14:03
Hallo Leute,
Bei all den folgenden Sachen habe ich mich auch mal grafisch als root eingelogggt, weil man ja eigentlich alles als root machen muss.
ich habe nun einen Apache 1.3.31 mit php5 fest einkompiliert. Vorher aber MySQL mit
./configure --with-server-suffix --with-pthread --prefix=/www/mysql
(dann natürlich make && make install)
(habe eine SuSE Linux 9.0)
/www/mysql habe ich vorher angelegt. Dann habe ich in der PHP Configure --with-mysql=/www/mysql eingetragen. Und PHP und Apache den freien Lauf gelassen. phpinfo(), alles funktioniert, alle Pfade auch zu MySQL passen.
So /www/bin/apachectl stop.
So, wie starte ich 'nen MySQL Server?
linux:/ # mysqld
Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
040724 14:32:37 Aborting
040724 14:32:37 mysqld: Shutdown Complete
linux:/ # /www/mysql/bin/safe_mysqld
bash: /www/mysql/bin/safe_mysqld: Datei oder Verzeichnis nicht gefunden
linux:/ # /www/mysql/bin/mysqld_safe
Starting mysqld daemon with databases from /www/mysql/var
040724 14:33:03 mysqld ended
linux:/ # mysqlserver
bash: mysqlserver: command not found
linux:/ # mysql -u root
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
linux:/ # mysqld -u root
040724 14:39:48 Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't exist
040724 14:39:48 Aborting
040724 14:39:48 mysqld: Shutdown Complete
linux:/ # mysql -u root mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
linux:/ # mysql -u mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
linux:/ # mysql -u root -p
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
linux:/ # mysql -u root -p
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
linux:/ # mysqld
Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
040724 14:49:28 Aborting
040724 14:49:28 mysqld: Shutdown Complete
linux:/ #
Ein paar Sachen habe ich auch einfach aus Verzweiflung probiert.
Was soll ich jetz tun? Bin so ziemlich Verzweifelt, danke!!
Bei all den folgenden Sachen habe ich mich auch mal grafisch als root eingelogggt, weil man ja eigentlich alles als root machen muss.
ich habe nun einen Apache 1.3.31 mit php5 fest einkompiliert. Vorher aber MySQL mit
./configure --with-server-suffix --with-pthread --prefix=/www/mysql
(dann natürlich make && make install)
(habe eine SuSE Linux 9.0)
/www/mysql habe ich vorher angelegt. Dann habe ich in der PHP Configure --with-mysql=/www/mysql eingetragen. Und PHP und Apache den freien Lauf gelassen. phpinfo(), alles funktioniert, alle Pfade auch zu MySQL passen.
So /www/bin/apachectl stop.
So, wie starte ich 'nen MySQL Server?
linux:/ # mysqld
Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
040724 14:32:37 Aborting
040724 14:32:37 mysqld: Shutdown Complete
linux:/ # /www/mysql/bin/safe_mysqld
bash: /www/mysql/bin/safe_mysqld: Datei oder Verzeichnis nicht gefunden
linux:/ # /www/mysql/bin/mysqld_safe
Starting mysqld daemon with databases from /www/mysql/var
040724 14:33:03 mysqld ended
linux:/ # mysqlserver
bash: mysqlserver: command not found
linux:/ # mysql -u root
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
linux:/ # mysqld -u root
040724 14:39:48 Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't exist
040724 14:39:48 Aborting
040724 14:39:48 mysqld: Shutdown Complete
linux:/ # mysql -u root mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
linux:/ # mysql -u mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
linux:/ # mysql -u root -p
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
linux:/ # mysql -u root -p
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
linux:/ # mysqld
Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
040724 14:49:28 Aborting
040724 14:49:28 mysqld: Shutdown Complete
linux:/ #
Ein paar Sachen habe ich auch einfach aus Verzweiflung probiert.
Was soll ich jetz tun? Bin so ziemlich Verzweifelt, danke!!