A script to change all tables and fields to the utf-8-bin collation in MYSQL

后端 未结 16 1028
有刺的猬
有刺的猬 2020-12-04 06:24

Is there a SQL or PHP script that I can run that will change the default collation in all tables and fields in a database?

I can write one

16条回答
  •  感动是毒
    2020-12-04 07:12

    Use my custom shell collatedb, it should work :

    collatedb    
    

    Example :

    collatedb root 0000 myDatabase utf8_bin
    

提交回复
热议问题