본문 바로가기

mysql62

mysql 동시접속자 수 인터넷 사용자들이 많아지면서 인기있는 웹 사이트에서는 Max connections 에러가 발생되는 것을 볼 수있을겁니다. 우선, MySQL은 동시에 연결될 수 있는 클라이언트의 수가 100입니다. 이런 에러가 발생한다면 먼저 접속되어있는 클라이언트의 수를 확인하셔야겠죠. 확인방법은 아래와 같습니다. $ mysqladmin -u root -p패스워드 variables | grep max_connection | max_connections | 100 이제는, 클라이언트의 동시 접속자를 늘리는 명령입니다. 먼저 mysqld - 이 데몬을 kill 하셔야 겠죠... $ safe_mysqld -O max_connections=200 & 참고로, 리눅스나 솔라리스 계열에서는 클라이언트의 동시 접속자수가 500 ~ .. 2008. 10. 10.
./configure 할때 다음과 같이 에러가 생길땐 에러 메세지~!! checking whether build environment is sane... configure: error: newly created file is older than distributed files! 요건~!!! mysql 개발일이랑 지금 시간이랑 논리적인 오류가 있을때 생겨남 해결은... 서버 타임을 확인해보자 ㅋㅋ /usr/bin/rdate -s time.bora.net 2008. 10. 10.
checking "LinuxThreads"... "Not found" 설치 시에... checking "LinuxThreads"... "Not found" configure: error: This is a linux system and Linuxthreads was not found. On linux Linuxthreads should be used. Please install Linuxthreads (or a new glibc) and try again. See the Installation chapter in the Reference Manual for more information. 가 나타나면.... /usr/include/pthread.h 파일에서 암때나 /* Linuxthreads */ 를 입력 이유 : mysql configure 과정에서 pthread.h 파.. 2008. 10. 10.
MYSQL 랜덤 추출 ORDER BY rand() desc MS-sql에서는 ORDER BY NEWID() 2008. 10. 10.