[KT] Lỗi Too Manual conections Mysql
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 9 của 9
  1. #1
    Thành Viên mrkutepro's Avatar
    Ngày tham gia
    Apr 2012
    Đang ở
    SafeZone
    Bài viết
    523
    Thanks
    82
    Thanked 248 Times in 125 Posts

    Lỗi Too Manual conections Mysql

    Tình hình mình mắc cái lỗi này, nguyên nhân là do mysql cài theo xampp giới hạn max_connections là 151. Mình đã theo dõi khi kết nối đạt đến như vậy thì xảy ra lỗi. Có lên trang mẹ đẻ ra cái thằng mysql tìm hiểu, nó đây ợ [Only registered and activated users can see links. ] thì được một khối lệnh thế này

    Command-Line Format --max_connections=#
    Option-File Format max_connections
    Option Sets Variable Yes, max_connections
    Variable Name max_connections
    Variable Scope Global
    Dynamic Variable Yes
    Permitted Values
    Type numeric
    Default 151
    Range 1 .. 100000

    Và chẳng biết lệnh này có xài được cho widows không nữa. Bác nào cao tay chỉ mình với
    Khách viếng thăm hãy cùng mrkutepro xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  2. #2
    Thành Viên Tâm Huyết tuidangvui's Avatar
    Ngày tham gia
    Mar 2009
    Bài viết
    715
    Thanks
    114
    Thanked 477 Times in 243 Posts

    Ðề: Lỗi Too Manual conections Mysql

    Sửa trong đây C:\Program Files\MySQL\MySQL Server 5.5\my.ini, ko dùng xampp nên ko bik MySQL của xampp, search file my.ini sửa max_connections
    # The default character set that will be used when a new schema or table is
    # created and no character set is defined
    character-set-server=latin1


    # The default storage engine that will be used when create new tables when
    default-storage-engine=INNODB


    # Set the SQL mode to strict
    sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_E NGINE_SUBSTITUTION"


    # The maximum amount of concurrent sessions the MySQL server will
    # allow. One of these connections will be reserved for a user with
    # SUPER privileges to allow the administrator to login even if the
    # connection limit has been reached.
    max_connections=100


    # Query cache is used to cache SELECT results and later return them
    # without actual executing the same query once again. Having the query
    # cache enabled may result in significant speed improvements, if your
    # have a lot of identical queries and rarely changing tables. See the
    # "Qcache_lowmem_prunes" status variable to check if the current value
    # is high enough for your load.
    # Note: In case your tables change very often or if your queries are
    # textually different every time, the query cache may result in a
    # slowdown instead of a performance improvement.
    query_cache_size=0


    # The number of open tables for all threads. Increasing this value
    # increases the number of file descriptors that mysqld requires.
    # Therefore you have to make sure to set the amount of open files
    # allowed to at least 4096 in the variable "open-files-limit" in
    # section [mysqld_safe]
    table_cache=256


    # Maximum size for internal (in-memory) temporary tables. If a table
    # grows larger than this value, it is automatically converted to disk
    # based table This limitation is for a single table. There can be many
    # of them.
    tmp_table_size=18M




    # How many threads we should keep in a cache for reuse. When a client
    # disconnects, the client's threads are put in the cache if there aren't
    # more than thread_cache_size threads from before. This greatly reduces
    # the amount of thread creations needed if you have a lot of new
    # connections. (Normally this doesn't give a notable performance
    # improvement if you have a good thread implementation.)
    thread_cache_size=8


    #*** MyISAM Specific options


    # The maximum size of the temporary file MySQL is allowed to use while
    # recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE.
    # If the file-size would be bigger than this, the index will be created
    # through the key cache (which is slower).
    myisam_max_sort_file_size=100G


    # If the temporary file used for fast index creation would be bigger
    # than using the key cache by the amount specified here, then prefer the
    # key cache method. This is mainly used to force long character keys in
    # large tables to use the slower key cache method to create the index.
    myisam_sort_buffer_size=35M


    # Size of the Key Buffer, used to cache index blocks for MyISAM tables.
    # Do not set it larger than 30% of your available memory, as some memory
    # is also required by the OS to cache rows. Even if you're not using
    # MyISAM tables, you should still set it to 8-64M as it will also be
    # used for internal temporary disk tables.
    key_buffer_size=25M


    # Size of the buffer used for doing full table scans of MyISAM tables.
    # Allocated per thread, if a full scan is needed.
    read_buffer_size=64K
    read_rnd_buffer_size=256K
    ...
    Lần sửa cuối bởi tuidangvui, ngày 22-07-12 lúc 03:40 PM.
    Khách viếng thăm hãy cùng tuidangvui xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  3. Các thành viên gởi lời cảm ơn đến tuidangvui vì bài viết này !

    mrkutepro (22-07-12)

  4. #3
    Thành Viên mrkutepro's Avatar
    Ngày tham gia
    Apr 2012
    Đang ở
    SafeZone
    Bài viết
    523
    Thanks
    82
    Thanked 248 Times in 125 Posts

    Ðề: Lỗi Too Manual conections Mysql

    Trích dẫn Gửi bởi tuidangvui [Only registered and activated users can see links. ]
    Sửa trong đây C:\Program Files\MySQL\MySQL Server 5.5\my.ini, ko dùng xampp nên ko bik MySQL của xampp, search file my.ini sửa max_connections
    Cảm ơn cậu trả lời, trước tớ đã xem trong file này, nó chả có cấu trúc gì liên quan tới max_connections cả, chì là liên quan tới port và bộ nhớ cấp phát thôi.
    Chèn vào cái chạy lại mysql lỗi tùm lum. À, mà của xampp cấu trúc của nó khác, file bạn nói nó nằm trong bin cơ.
    Khách viếng thăm hãy cùng mrkutepro xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  5. #4
    Thành Viên mrkutepro's Avatar
    Ngày tham gia
    Apr 2012
    Đang ở
    SafeZone
    Bài viết
    523
    Thanks
    82
    Thanked 248 Times in 125 Posts

    Ðề: Lỗi Too Manual conections Mysql

    Các bạn biết vào giúp nhiệt tình nào.
    Khách viếng thăm hãy cùng mrkutepro xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  6. #5
    Thành Viên mrkutepro's Avatar
    Ngày tham gia
    Apr 2012
    Đang ở
    SafeZone
    Bài viết
    523
    Thanks
    82
    Thanked 248 Times in 125 Posts

    Ðề: Lỗi Too Manual conections Mysql

    Ok đã làm được, nó cũng không khác mấy, cảm ơn cậu góp ý nhé. 1 thanks tinh thần. mod close hộ cái
    Khách viếng thăm hãy cùng mrkutepro xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  7. #6
    Thành Viên
    Ngày tham gia
    Jun 2011
    Bài viết
    159
    Thanks
    54
    Thanked 11 Times in 9 Posts

    Ðề: Lỗi Too Manual conections Mysql

    Đơn giản để fix lỗi này có nhiều cách để fix

    File này nếu sử dụng Xampp: my-innodb-heavy-4G.ini
    Khách viếng thăm hãy cùng jxonline2 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  8. #7
    Thành Viên mrkutepro's Avatar
    Ngày tham gia
    Apr 2012
    Đang ở
    SafeZone
    Bài viết
    523
    Thanks
    82
    Thanked 248 Times in 125 Posts

    Ðề: Lỗi Too Manual conections Mysql

    Trích dẫn Gửi bởi jxonline2 [Only registered and activated users can see links. ]
    Đơn giản để fix lỗi này có nhiều cách để fix

    File này nếu sử dụng Xampp: my-innodb-heavy-4G.ini
    hì, không được đâu cậu ơi. nó không có tác dụng, nếu xampp thì chỉ có nước chình như bạn kia nói. thank
    Khách viếng thăm hãy cùng mrkutepro xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  9. #8
    Thành Viên
    Ngày tham gia
    Jun 2011
    Bài viết
    159
    Thanks
    54
    Thanked 11 Times in 9 Posts

    Ðề: Lỗi Too Manual conections Mysql

    Trích dẫn Gửi bởi mrkutepro [Only registered and activated users can see links. ]
    hì, không được đâu cậu ơi. nó không có tác dụng, nếu xampp thì chỉ có nước chình như bạn kia nói. thank
    Có nhiều cách để fix lắm bạn
    Khách viếng thăm hãy cùng jxonline2 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  10. #9
    Thành Viên
    Ngày tham gia
    Jul 2012
    Bài viết
    240
    Thanks
    158
    Thanked 5 Times in 5 Posts

    Ðề: Lỗi Too Manual conections Mysql

    uppppppppppppppppppppppppppppppppppppp Bác nào biết cách fix cái này chỉ rõ giúp em với , em set nó lên 100000 nhưng koảng 2 giờ là bị lỗi lại
    Khách viếng thăm hãy cùng ltasa93 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 

Các Chủ đề tương tự

  1. Share web đang nhập gunny (mysql) mysql việt hóa chức năng
    Bởi vippro0 trong diễn đàn CHUYÊN ĐỀ WEB GAMES
    Trả lời: 2
    Bài viết cuối: 21-06-12, 12:27 PM
  2. Lỗi MySql ai pro giúp em cái
    Bởi nhoksock97 trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 3
    Bài viết cuối: 20-06-12, 02:15 PM
  3. [KT] Vấn đề MYSQL
    Bởi nguydatloc trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 1
    Bài viết cuối: 20-01-12, 12:53 PM
  4. MySQL bị lổi ai giúp với
    Bởi P0900 trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 2
    Bài viết cuối: 18-12-11, 09:23 AM
  5. help lổi gì đây (MYSQL)
    Bởi longryu trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 0
    Bài viết cuối: 20-12-09, 03:27 PM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 07:32 PM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.