PDA

View Full Version : [MySQL] il database "mysql' mi si droppa da solo! come ripristinarlo?


fbcyborg
29-06-2007, 16:55
Salve,

utilizzo MySQL 5.0.42 su Gentoo Linux kernel 2.6.20-r7.
Nel configurare l'abilitazione per l'accesso da remoto (link (http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html)),
ho avuto un sacco di rogne.
Intanto non funziona, e questo è una cosa grave per me che sto progettando un'applicazione che gestisce un DB che si trova su un server remoto.
Inoltre, non so perché, mi ha cancellato il database che si chiama mysql che contiene tutte le info sugli utenti e i permessi.

Non so come ripristinarlo.. Anche se disinstallo mysql e lo reinstallo non si ripristina. Mi si è ripristinato una sola volta.

Come posso fare? E soprattutto, c'è una guida ufficiale (magari sul sito di mysql) che spieghi come abilitare l'accesso da remoto in modo che poi funzioni????????

Grazie!!!

RaouL_BennetH
29-06-2007, 17:05
uhm.. per il ripristino del db di base non so..

Per l'accesso da remoto, forse non ho ben capito io il problema, però io faccio:



GRANT Tipo_di_privilegio ON DataBase_Scelto.* TO MIOUTENTE@IP IDENTIFIED BY 'userpassword';



per una lettura più dettagliata:

http://dev.mysql.com/doc/refman/5.0/en/access-denied.html

fbcyborg
29-06-2007, 17:17
No no, hai capito qual'è il problema.

Avrò provato quella query non so quante volte.
Ho anche impostato il file my.conf come indicato nel link che ho postato prima, ma non riesco ad accedere...

BOH!

fbcyborg
01-07-2007, 11:12
Ok, poi ha funzionato... Grazie!
Ho anche dato subito un bel "FLUSH PRIVILEGES".

Ho ripristinato il database eliminando la directory /var/lib/mysql e installando di nuovo mysql.

Hardware Upgrade Forum Database Error
Database Error Database error
The Hardware Upgrade Forum database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.hwupgrade.it home page, then try to open another page.
  • Click the Back button to try another link.
The www.hwupgrade.it forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.