Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Upgrade your account to a Community Supporter account and remove most of the site ads.
Community
Meta - Forums About Forums
Meta
MySQL Help Wanted: Current my.cnf file
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Michael Morris" data-source="post: 4383929" data-attributes="member: 87"><p>I know at least a couple users on here use mysql. As of 2:37AM this morning this is the mysql.cnf settings the machine seems happy with - but I won't know for sure until the morning and noon rushes work. As it stands I'm getting page replies within half a second at the moment.</p><p></p><p>[code]</p><p></p><p># The following options will be passed to all MySQL clients</p><p>[client]</p><p>#password = your_password</p><p>port = 3306</p><p>socket = /var/run/mysql/mysql.sock</p><p></p><p># Here follows entries for some specific programs</p><p></p><p># The MySQL server</p><p>[mysqld]</p><p>port = 3306</p><p>socket = /var/run/mysql/mysql.sock</p><p>skip-locking</p><p>key_buffer = 384M</p><p>#max_allowed_packet = 1M</p><p>max_allowed_packet = 2M</p><p>table_cache = 512</p><p>#sort_buffer_size = 2M</p><p>sort_buffer_size = 4M</p><p>#read_buffer_size = 2M</p><p>read_buffer_size = 4M</p><p>myisam_sort_buffer_size = 64M</p><p>thread_cache = 8</p><p>query_cache_size = 32M</p><p>#max_connections = 650</p><p>max_connections = 2048</p><p># Try number of CPU's*2 for thread_concurrency</p><p>thread_concurrency = 8</p><p></p><p># Don't listen on a TCP/IP port at all. This can be a security enhancement,</p><p># if all processes that need to connect to mysqld run on the same host.</p><p># All interaction with mysqld must be made via Unix sockets or named pipes.</p><p># Note that using this option without enabling named pipes on Windows</p><p># (via the "enable-named-pipe" option) will render mysqld useless!</p><p># </p><p>#skip-networking</p><p></p><p># Replication Master Server (default)</p><p># binary logging is required for replication</p><p>log-bin</p><p></p><p># required unique id between 1 and 2^32 - 1</p><p># defaults to 1 if master-host is not set</p><p># but will not function as a master if omitted</p><p>server-id = 1</p><p></p><p># Replication Slave (comment out master section to use this)</p><p>#</p><p># To configure this host as a replication slave, you can choose between</p><p># two methods :</p><p>#</p><p># 1) Use the CHANGE MASTER TO command (fully described in our manual) -</p><p># the syntax is:</p><p>#</p><p># CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,</p><p># MASTER_USER=<user>, MASTER_PASSWORD=<password> ;</p><p>#</p><p># where you replace <host>, <user>, <password> by quoted strings and</p><p># <port> by the master's port number (3306 by default).</p><p>#</p><p># Example:</p><p>#</p><p># CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,</p><p># MASTER_USER='joe', MASTER_PASSWORD='secret';</p><p>#</p><p># OR</p><p>#</p><p># 2) Set the variables below. However, in case you choose this method, then</p><p># start replication for the first time (even unsuccessfully, for example</p><p># if you mistyped the password in master-password and the slave fails to</p><p># connect), the slave will create a master.info file, and any later</p><p># change in this file to the variables' values below will be ignored and</p><p># overridden by the content of the master.info file, unless you shutdown</p><p># the slave server, delete master.info and restart the slaver server.</p><p># For that reason, you may want to leave the lines below untouched</p><p># (commented) and instead use CHANGE MASTER TO (see above)</p><p>#</p><p># required unique id between 2 and 2^32 - 1</p><p># (and different from the master)</p><p># defaults to 2 if master-host is set</p><p># but will not function as a slave if omitted</p><p>#server-id = 2</p><p>#</p><p># The replication master for this slave - required</p><p>#master-host = <hostname></p><p>#</p><p># The username the slave will use for authentication when connecting</p><p># to the master - required</p><p>#master-user = <username></p><p>#</p><p># The password the slave will authenticate with when connecting to</p><p># the master - required</p><p>#master-password = <password></p><p>#</p><p># The port the master is listening on.</p><p># optional - defaults to 3306</p><p>#master-port = <port></p><p>#</p><p># binary logging - not required for slaves, but recommended</p><p>#log-bin</p><p></p><p># Point the following paths to different dedicated disks</p><p>#tmpdir = /tmp/ </p><p>#log-update = /path-to-dedicated-directory/hostname</p><p></p><p># Uncomment the following if you are using BDB tables</p><p>#bdb_cache_size = 384M</p><p>#bdb_max_lock = 100000</p><p></p><p># Uncomment the following if you are using InnoDB tables</p><p>#innodb_data_home_dir = /var/lib/mysql/</p><p>#innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend</p><p>#innodb_log_group_home_dir = /var/lib/mysql/</p><p>#innodb_log_arch_dir = /var/lib/mysql/</p><p># You can set .._buffer_pool_size up to 50 - 80 %</p><p># of RAM but beware of setting memory usage too high</p><p>#innodb_buffer_pool_size = 384M</p><p>#innodb_additional_mem_pool_size = 20M</p><p># Set .._log_file_size to 25 % of buffer pool size</p><p>#innodb_log_file_size = 100M</p><p>#innodb_log_buffer_size = 8M</p><p>#innodb_flush_log_at_trx_commit = 1</p><p>#innodb_lock_wait_timeout = 50</p><p></p><p>[mysqldump]</p><p>quick</p><p>max_allowed_packet = 16M</p><p></p><p>[mysql]</p><p>no-auto-rehash</p><p># Remove the next comment character if you are not familiar with SQL</p><p>#safe-updates</p><p></p><p>[isamchk]</p><p>key_buffer = 64M</p><p>sort_buffer_size = 64M</p><p>read_buffer = 32M</p><p>write_buffer = 32M</p><p></p><p>[myisamchk]</p><p>key_buffer = 64M</p><p>sort_buffer_size = 64M</p><p>read_buffer = 32M</p><p>write_buffer = 32M</p><p></p><p>[mysqlhotcopy]</p><p>interactive-timeout</p><p>[/code]</p><p></p><p>Incidentally, if I comment out the log-bin line in this file will that stop the binary logs from clogging up the machine and can it be safely done?</p></blockquote><p></p>
[QUOTE="Michael Morris, post: 4383929, member: 87"] I know at least a couple users on here use mysql. As of 2:37AM this morning this is the mysql.cnf settings the machine seems happy with - but I won't know for sure until the morning and noon rushes work. As it stands I'm getting page replies within half a second at the moment. [code] # The following options will be passed to all MySQL clients [client] #password = your_password port = 3306 socket = /var/run/mysql/mysql.sock # Here follows entries for some specific programs # The MySQL server [mysqld] port = 3306 socket = /var/run/mysql/mysql.sock skip-locking key_buffer = 384M #max_allowed_packet = 1M max_allowed_packet = 2M table_cache = 512 #sort_buffer_size = 2M sort_buffer_size = 4M #read_buffer_size = 2M read_buffer_size = 4M myisam_sort_buffer_size = 64M thread_cache = 8 query_cache_size = 32M #max_connections = 650 max_connections = 2048 # Try number of CPU's*2 for thread_concurrency thread_concurrency = 8 # Don't listen on a TCP/IP port at all. This can be a security enhancement, # if all processes that need to connect to mysqld run on the same host. # All interaction with mysqld must be made via Unix sockets or named pipes. # Note that using this option without enabling named pipes on Windows # (via the "enable-named-pipe" option) will render mysqld useless! # #skip-networking # Replication Master Server (default) # binary logging is required for replication log-bin # required unique id between 1 and 2^32 - 1 # defaults to 1 if master-host is not set # but will not function as a master if omitted server-id = 1 # Replication Slave (comment out master section to use this) # # To configure this host as a replication slave, you can choose between # two methods : # # 1) Use the CHANGE MASTER TO command (fully described in our manual) - # the syntax is: # # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>, # MASTER_USER=<user>, MASTER_PASSWORD=<password> ; # # where you replace <host>, <user>, <password> by quoted strings and # <port> by the master's port number (3306 by default). # # Example: # # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306, # MASTER_USER='joe', MASTER_PASSWORD='secret'; # # OR # # 2) Set the variables below. However, in case you choose this method, then # start replication for the first time (even unsuccessfully, for example # if you mistyped the password in master-password and the slave fails to # connect), the slave will create a master.info file, and any later # change in this file to the variables' values below will be ignored and # overridden by the content of the master.info file, unless you shutdown # the slave server, delete master.info and restart the slaver server. # For that reason, you may want to leave the lines below untouched # (commented) and instead use CHANGE MASTER TO (see above) # # required unique id between 2 and 2^32 - 1 # (and different from the master) # defaults to 2 if master-host is set # but will not function as a slave if omitted #server-id = 2 # # The replication master for this slave - required #master-host = <hostname> # # The username the slave will use for authentication when connecting # to the master - required #master-user = <username> # # The password the slave will authenticate with when connecting to # the master - required #master-password = <password> # # The port the master is listening on. # optional - defaults to 3306 #master-port = <port> # # binary logging - not required for slaves, but recommended #log-bin # Point the following paths to different dedicated disks #tmpdir = /tmp/ #log-update = /path-to-dedicated-directory/hostname # Uncomment the following if you are using BDB tables #bdb_cache_size = 384M #bdb_max_lock = 100000 # Uncomment the following if you are using InnoDB tables #innodb_data_home_dir = /var/lib/mysql/ #innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend #innodb_log_group_home_dir = /var/lib/mysql/ #innodb_log_arch_dir = /var/lib/mysql/ # You can set .._buffer_pool_size up to 50 - 80 % # of RAM but beware of setting memory usage too high #innodb_buffer_pool_size = 384M #innodb_additional_mem_pool_size = 20M # Set .._log_file_size to 25 % of buffer pool size #innodb_log_file_size = 100M #innodb_log_buffer_size = 8M #innodb_flush_log_at_trx_commit = 1 #innodb_lock_wait_timeout = 50 [mysqldump] quick max_allowed_packet = 16M [mysql] no-auto-rehash # Remove the next comment character if you are not familiar with SQL #safe-updates [isamchk] key_buffer = 64M sort_buffer_size = 64M read_buffer = 32M write_buffer = 32M [myisamchk] key_buffer = 64M sort_buffer_size = 64M read_buffer = 32M write_buffer = 32M [mysqlhotcopy] interactive-timeout [/code] Incidentally, if I comment out the log-bin line in this file will that stop the binary logs from clogging up the machine and can it be safely done? [/QUOTE]
Insert quotes…
Verification
Post reply
Community
Meta - Forums About Forums
Meta
MySQL Help Wanted: Current my.cnf file
Top