座右铭 literally means 'inscription to the right of one's seat.' In ancient China, people would place inscribed maxims on the right side of their desk as constant reminders.
memory
座 (seat) + 右 (right) + 铭 (inscription) = an inscription at the right side of your seat, your personal motto.