Fix mysql access issue