Re: Aiuto sull'interpretazione del manuale MySQL
If the grant tables hold privilege rows that contain mixed-case database or table names and the lower_case_table_names system variable is set to a non-zero value, REVOKE cannot be used to revoke these privileges. It will be necessary to manipulate the grant tables directly. (GRANT will not create such rows when lower_case_table_names is set, but such rows might have been created prior to setting the variable.)
Il significato più esteso di tutto questo è che se tu hai nelle tabelle di grant nomi uguali e con case differenti, se lower_case_table_name è settato non puoi usare revoke per il semplice motivo che mysql può non capire su quale tabella deve effettivamente agire.
Esempio: non ho settato lower_case_table_names e creo tabellaA su Linux. Il sistema crea fisicamente il file tabellaA.frm . Un giorno decido di abilitare lower_case_table_names a 1 ma non vado a rinominare in lettercase nessuno dei file precedentemente creato. A questo punto creo tabellaA e se non vado errato il sistema lo dovrebbe lasciare fare perché lui converte il nome in lettercase nella fase di creazione su un filesystem che è case sensitive come quello di Linux. Ora ho tabellaA e tabellaa e voglio revocare i permessi su tabellaA ma con il lower_case_table_names lui converte tutto in minuscolo in fase di lookup e quindi trova tabellaa. E' questo a mio parere il motivo per il quale non permettono di fare un REVOKE in caso di diversi lettercase.
Non controllare nelle tabelle di grant controlla proprio fisicamente i nomi dei file e delle cartelle database directory.
Per eliminare i warning dovresti teoricamente rinominare tutti i file di tabelle, trigger e le database directory in lowercase poi fare ripartire mysqld con lower_case_table_names = 1.
Questo dovrebbe essere il motivo del warning.
Edited 1 time(s). Last edit at 08/29/2007 01:49AM by bruno rossi.
Subject
Views
Written By
Posted
5322
June 22, 2007 02:52AM
3153
June 22, 2007 04:09AM
Re: Aiuto sull'interpretazione del manuale MySQL
3251
August 29, 2007 01:45AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.