Recommanded Free YOUTUBE Lecture: <% selectedImage[1] %>

사용법

const char *mysql_stat(MYSQL *mysql)

설명

mysqladmin status와 매우 비슷한 정보를 출력한다. 실행중인 Thread(:12)갯수, question, reload, open tables 와 같은 정보를 얻을 수 있다.

리턴값

서버의 상태정보를 문자열형태로 넘겨준다. 에러가 발생했을 경우 NULL을 리턴한다. A character string describing the server status. NULL if an error occurred.

에러

  • CR_COMMANDS_OUT_OF_SYNC
Commands were executed in an improper order.
  • CR_SERVER_GONE_ERROR
The MySQL server has gone away.
  • CR_SERVER_LOST
쿼리가 실행되는 동안 서버와의 연결이 끊김
  • CR_UNKNOWN_ERROR
알수없는 에러

관련문서