Remembering the mysql port in internal structure.

So we don't update it every time.