Domanda

Let's say I want to save the whole list of the collations supported by MySQL into file. How can I save the result of the show collation into .txt file? The OS I'm using is Windows. I tried something like this: show collation INTO OUTFILE 'c:\aaa.txt'; or show collation > c:\aaa.txt; but it doesn't work.

È stato utile?

Soluzione

select * 
into outfile 'filepath.txt'
from information_schema.collations;

Altri suggerimenti

C:  mysql -e "select * from information_schema.collations" >collations.txt
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a dba.stackexchange
scroll top