티스토리 뷰

1. -----------------------------------

MySQL에 접속한다.



2. -----------------------------------

현재 최대 세션이 몇개인지 본다.


mysql> show variables like 'max%';

+----------------------------+----------------------+

| Variable_name                      | Value                |

+----------------------------+----------------------+

| max_allowed_packet              | 1048576              |

| max_binlog_cache_size          | 18446744073709547520 |

| max_binlog_size                    | 1073741824           |

| max_connect_errors               | 10                   |

| max_connections            | 100                  |

| max_delayed_threads        | 20                   |

| max_error_count            | 64                   |

| max_heap_table_size        | 16777216             |

| max_insert_delayed_threads | 20                   |

| max_join_size              | 18446744073709551615 |

| max_length_for_sort_data   | 1024                 |

| max_prepared_stmt_count    | 16382                |

| max_relay_log_size         | 0                    |

| max_seeks_for_key          | 18446744073709551615 |

| max_sort_length            | 1024                 |

| max_sp_recursion_depth     | 0                    |

| max_tmp_tables             | 32                   |

| max_user_connections       | 0                    |

| max_write_lock_count       | 18446744073709551615 |

+----------------------------+----------------------+

19 rows in set (0.00 sec)


보는것처럼.. 100개이다. 

3000개로 늘릴거임!



3.  -----------------------------------

my.cnf 로 들어간다


[root@oto2 ~]# vi /etc/my.cnf


4.  -----------------------------------

다음과 같이 추가한다.



[mysqld]

.......(..은 생략입니다. ....까지 추가하지 마시길)

max_connections = 3000



5.  -----------------------------------

mysql 데몬을 재시작


[root@oto2 ~]# service mysqld restart

mysqld 를 ì •ì§€ 중:                                     [  OK  ]

mysqld (ì

         )를 시작 중:                                  [  OK  ]



한글깨짐..왜그런지는 잘 모르겠음 리눅스 캐릭터셋이 안맞는가봄.

나중에 맞추기로함.


6. -----------------------------------

확인.




mysql> show variables like 'max%';

+----------------------------+----------------------+

| Variable_name              | Value                |

+----------------------------+----------------------+

| max_allowed_packet         | 1048576              |

| max_binlog_cache_size      | 18446744073709547520 |

| max_binlog_size            | 1073741824           |

| max_connect_errors         | 10                   |

| max_connections            | 3000                 |

| max_delayed_threads        | 20                   |

| max_error_count            | 64                   |

| max_heap_table_size        | 16777216             |

| max_insert_delayed_threads | 20                   |

| max_join_size              | 18446744073709551615 |

| max_length_for_sort_data   | 1024                 |

| max_prepared_stmt_count    | 16382                |

| max_relay_log_size         | 0                    |

| max_seeks_for_key          | 18446744073709551615 |

| max_sort_length            | 1024                 |

| max_sp_recursion_depth     | 0                    |

| max_tmp_tables             | 32                   |

| max_user_connections       | 0                    |

| max_write_lock_count       | 18446744073709551615 |

+----------------------------+----------------------+

19 rows in set (0.00 sec)




3000으로 증설 성공


수고하세요 프로그래머 여러분들 화이팅







공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함