Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] Mysql e password
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
sovtek
n00b
n00b


Joined: 13 Jan 2005
Posts: 32

PostPosted: Fri Apr 22, 2005 11:02 am    Post subject: [RISOLTO] Mysql e password Reply with quote

Ho installato apache+php+mysql+phpmyadmin e probalmente ho sbagliato nel digitare la password di root per mysql e adesso non riesco piu' ad accedervi ho provato con le soluzioni proposte in questo topic https://forums.gentoo.org/viewtopic-t-280931-highlight-mysql+password.html ma non riesco a sistemare allora ho provato a dare un bell' emerge -C mysql e poi a riemerge mysql ma non c'e' niente da fare non riesco lo stesso ad accedere a mysql o a cambiare la password di root , chi mi sa dire cosa devo andare ad aggiustare per risolvere il mio problema ?

Last edited by sovtek on Fri Apr 22, 2005 6:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
DaVe&OpenMOsix
Apprentice
Apprentice


Joined: 30 Dec 2003
Posts: 213

PostPosted: Fri Apr 22, 2005 11:10 am    Post subject: Reply with quote

non ho sotto mano la documentazione ( che trovi sul sito www.mysql.org e che puoi leggere da solo ;P)
potresti resettare il database col comando mysqlinitdb (dovrebbe essere così)
e reiniziare col database nuovo.
attenzione ho detto resettare! tutti i dati saranno perduti.
ciao
DV
_________________
-- Siccome sono un informatico ho votato PCI convinto di aumentare gli slot di espansione della società --
-^v^v^v^v^v^v^v^v^v^-
DaVe the WaVe
http://dave.ccni.it
http://www.davethewave.it
-^v^v^v^v^v^v^v^v^v^-
Back to top
View user's profile Send private message
sovtek
n00b
n00b


Joined: 13 Jan 2005
Posts: 32

PostPosted: Fri Apr 22, 2005 6:01 pm    Post subject: Reply with quote

Grazie della risposta , in effetti ho trovato la soluzione sul sito di mysql.

Ho risolto con :

> kill `cat /var/run/mysql/mysqld.pid`

> echo "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('nuovapassword'); > /root/mysql.init

> mysqld_safe --init-file=/root/mysql.init

> rm /root/mysql.init
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum