Möchte mysql_fix_privilege_tables ausführen!

Alles, was MariaDB und MySQL betrifft, kann hier besprochen werden.

Möchte mysql_fix_privilege_tables ausführen!

Postby TraXter » 10. May 2003 23:10

... nur leider ist die my.cnf und die mysql.sock bei lampp nicht im default verzeichnis.

mit dem reinen mysql befehl kann ich folgendermaßen noch connecten:

Code: Select all
mysql --defaults-file=/opt/lampp/etc/my.cnf --user=root --password=pass


jedoch gibt

Code: Select all
mysql_fix_privilege_tables --defaults-file=/opt/lampp/etc/my.cnf --user=root --password=pass


folgendes aus:

Code: Select all
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!

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 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Creating Grant Alter and Index privileges if they don't exists
You can ignore any Duplicate column errors
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Creating the new table and column privilege tables
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Changing name of columns_priv.Type -> columns_priv.Column_priv
You can ignore any errors from this
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Fixing the func table
You can ignore any Duplicate column errors
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)


Ich vermute mal ganz einfach, dass man da keine parameter angeben kann und man default nehmen muss.

Was mach ich jetzt ?
TraXter
 

Postby Oswald » 11. May 2003 13:02

Huhu traXter!

Einfach die Befehle aufrufen, die beim LAMPP dabei sind. Dann sparst Du Dir komplizierte Parameter.

Z. B: /opt/lampp/bin/mysql_fix_privilege_tables

Dort liegt auch der reine mysql-Befehl und der sucht seine cnf-Datei und die sock-Datei schon an den richtigen Orten.

Liebe Grüße,
Oswald ;)
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
Operating System: Linux

Postby TraXter » 11. May 2003 15:04

Hey Kai!

Vielen dank - Du bist klasse :)
TraXter
 

Postby PF4 » 27. May 2003 17:56

Wie mache ich das unter Windows ?

Ich habe einen neuen User angelegt. Jetzt haben aber alle User auf einmal Zugriff auf alle DB. Dies is natürlich nich so toll.
PF4
 
Posts: 528
Joined: 10. March 2003 09:15

Postby TimKorves » 30. May 2003 09:50

Ich hab auch ein tolles Problem... Ich kann noch 10mal das korrekte root-pass mit anhängen und trotzdem sagt der mir "Access denied for user root (Using password YES)"... Ich hab damals als ich umgestiegen bin die Tabellen einfach ins LAMPP Verzeichnis kopiert, wie mir das hier im forum jemand geraten hat...
Ich bin /root, ich darf das...

PaulchenPanther @ irc.linuxirc.net #LinuxOB

Visit us @ irc.linuxirc.net
User avatar
TimKorves
 
Posts: 14
Joined: 13. April 2003 13:03
Location: Oberhausen


Return to MariaDB - MySQL

Who is online

Users browsing this forum: No registered users and 16 guests