Toon posts:

probleem met mysql root wachtwoord

Pagina: 1
Acties:

Verwijderd

Topicstarter
hallo...ik ben de wanhoop nabij.....na 2 dagen utteren met mysql ga ik het maar eens hier proberen. Het lukt me niet om het wachtwoord van de root te veranderen en momenteel kan ik geen connectie maken als root met de localhost.

Volgens de manual :

If you have forgotten the root user password for MySQL, youcan restore it with the following procedure:

Take down the mysqld server by sending a kill (not kill-9) to the mysqld server. The pid is stored in a .pidfile, which is normally in the MySQL database directory:

kill `cat /mysql-data-directory/hostname.pid`

You must be either the Unix root user or the same user the serverruns as to do this.
Restart mysqld with the --skip-grant-tables option.
Connect to the mysqld server with mysql -h hostname mysql and changethe password with a GRANT command. See section 7.35 GRANT and REVOKE Syntax.You can also do this withmysqladmin -h hostname -u user password 'new password'
Load the privilege tables with: mysqladmin -h hostnameflush-privileges or with the SQL command FLUSH PRIVILEGES.

Note that after you started mysqld with --skip-grant-tables,any usage of GRANT commands will give you an Unknown commanderror until you have executed FLUSH PRIVILEGES.

Als ik dit probeer krijg ik vervolgens de melding "mysqladmin: unable to change password; error: 'you must have privileges to update tables in the mysql database to be able to change passwords for others'

Heeft iemand een oplossing?

Verwijderd

ben je root?
start mysqld is en kijk wie de eigenaar van dat pocess is.
dan een su <naam.van.eigenaar>
en probeer 't dan nog is....

  • QuarK
  • Registratie: Maart 2000
  • Laatst online: 09-07 21:48
Gebruik je mysqladmin?
Probeer het gewoon eens via de shell zoals in dat stukje text staat. Misschien heeft mysqladmin een extra beveiliging ingebouwd.

  • Jordi
  • Registratie: Januari 2000
  • Niet online

Jordi

#1#1

Laat me raden... de entry voor 'root' bestaat niet meer in de mysql user tabel? Even nieuwe aanmaken dan.

Het zal wel niet, maar het zou maar wel.


Verwijderd

Topicstarter
Nou na heel veel meer 'geklooi', foutmelding als can't connet trough socket etc...is het toch eindelijk gelukt....vraag me niet hoe want ik weet niet meer wat ik nu allemaal gedaan heb. Het probleem is (ik gebruik de versie die bij mijn suse 7.1 prutje zit) dat 'alles' al voor je gedaan is...ahum....

In ieder geval bedankt voor de reacties...