It is good to know your own weaknesses. = 知道自己的弱點是好事(人人皆適用, 對我對你都是好事。)
it is good for me to know my own weaknesses. = 知道自己的弱點對我來說是一件好事。(強調自己。)
簡單嚟講,It is good to know比較general,所以比較常用(google search 有成20,400,000 results)
而it is good for me to know針對個人,比較specific (google search 有4,140,000 results)
This is just used to tell others what is our main point.
In your example,
'It is good to know' mean know this is always good
''It is good for me to know'' mean I am just talking about myself
It is simple!
Just like the different between these two:
John's mother can cook well
Mother can cook well
It is good to know.(適用對象是任何人)=To know is good for everyone.
It is good for me to know.(適用對象只限我一人)= To know is good for me.
it是虛主詞,不定詞to know是delayed subject(延遲的主詞)