PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : /etc/init.d/mysql <-- Welches Packet für Sid ?



SirAbdul
09.01.04, 19:11
Hio all 1
ich bin echt ein dummes kind !!
Ich hatte probleme mit meinem mysql server.
auch das neuinsallieren über apt (remove dann install) hat nix
gebracht. also habe ich kurzerhand alles was von mysql war gelöscht
(auch das init.d script.) fataler fehler ;)

Weiss ein zufällig in welchem Packet das zu finden ist, weil
bei den mysql packeten (mysql-common, mysql-server, ...) ist es nicht dabei.

Danke SirAbdul

Berufspenner
09.01.04, 19:41
Hi

Ich kann dir keine 100%ige Antwort geben, da ich mir die Frage noch nie gestellt habe, aber ich vermute mal, dass es bei der Installation automatisch erstellt wird.

Cu
André

SirAbdul
09.01.04, 19:46
bei der installation von was ?
debian ?

Berufspenner
09.01.04, 20:42
Original geschrieben von SirAbdul
bei der installation von was ?
debian ? Ne, vom jeweiligen Programm.

Cu
André

SirAbdul
09.01.04, 20:59
ne das tut er eben nicht *gG*

Setting up mysql-server (4.0.16-2) ...
/var/lib/dpkg/info/mysql-server.postinst: line 12: /etc/init.d/mysql: No such file or directory
update-rc.d: /etc/init.d/mysql: file does not exist
dpkg: error processing mysql-server (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
mysql-server

SirAbdul
10.01.04, 15:31
ok ok den server hab ich wieder installiert bekommen mittels
apt-get remove --purge mysql-server
und dann halt wieder ganz normal geinstalled.

so nun stehe ich aber wieder vor folgendem problem:

der fehler wenn ich mysql starte:

Unpacking mysql-server (from .../mysql-server_4.0.16-2_i386.deb) ...
Setting up mysql-server (4.0.16-2) ...
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld...failed.
Please take a look at /var/log/mysql/mysql.err

dann sagte mir debcof ich solle 'mysql_fix_privilege_tables' ausführen.
das habe ich gemacht:


mysql_fix_privilege_tables
This scripts updates the mysql.user, mysql.db, mysql.host and the
mysql.func tables to MySQL 3.22.14 and above.

This is needed if you want to use the new GRANT functions,
CREATE AGGREGATE FUNCTION or want to use the more secure passwords in 3.23

If you get 'Access denied' errors, you should run this script again
and give the MySQL root user password as an argument!
Converting all privilege tables to MyISAM format
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

If your tables are already up to date or partially up to date you will
get some warnings about 'Duplicated column name'. You can safely ignore these!
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

Creating Grant Alter and Index privileges if they don't exists
You can ignore any Duplicate column errors
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

Adding columns needed by GRANT .. REQUIRE (openssl)
You can ignore any Duplicate column errors
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

Creating the new table and column privilege tables
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
Changing name of columns_priv.Type -> columns_priv.Column_priv
You can ignore any Unknown column errors from this
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

Fixing the func table
You can ignore any Duplicate column errors
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

Adding new fields used by MySQL 4.0.2 to the privilege tables
You can ignore any Duplicate column errors
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

Hm ich habe es dann nochmal mit meinem alten mysql pw versucht scheint aber nicht zu funzen

Ich habe jetzt auch versucht mein pw mittels mysqladmin zu ändern. funzt abba auch net:
mysqladmin -u root password <new-pass> ergibt:
usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)

Hat jmd ne ahnung wie ich das behoben bekomme ?
Ohne ne MySQL Datenbank bin ich aufgeschmissen ...

Ach ja der Fehler trat übrigens aus als ich versuchte meine gesicherten datenbanken aus
/var/lib/mysql wieder zurück zu spielen.

Kann mir evtl. auch einer sagen wie man das professionell macht ??

Ich habe einfach die ordner gesichert und hinterher wieder rein kopiert.

ThX 4 Help

SirAbdul