mirror of
https://github.com/frappe/erpnext.git
synced 2025-12-03 18:35:36 +00:00
Page:
MySQL configuration file
Pages
"Expense or Difference account is mandatory for [YOUR ITEM HERE] as it impacts overall stock value"
Adding Custom Form to Website
Agri Farm ERPNext
Agri Farm ERPNext Documentation
Agri Farm ERPNext Proposed Doc
Agri farm ERPNext PR git primer
AgriNext Mockups
Apache HTTP Settings for Mac OS
Bank Transaction Management : Feature Specification (v0.1)
Cascading Pull Requests
Code Editing Tools
Code Security Guidelines
Coding Standards
Community Contributions
Community Developed Custom Scripts
Community Release Manager
Contribution Guidelines
Contribution Issues
Country wise Chart of Accounts
Create User Stories
Delivery Note Modern Legacy Print Format
Delivery Note Spartan Legacy Print Format
Designing Integrations
Documentation To Do
E Commerce Features List
ERPNext Performance Tuning
ERPNext Release Note v8.1
ERPNext Upgrade to Version 5
ERPNext Version 8
ERPNext for Import Export Business( Logistics Module)
ERPNext for Non Profits
Export Custom field using export fixtures
Feature Suggestions
Form Design Guidelines
Future Development: Tracking Productivity
Guide to splitting modules from ERPNext
Home
How To Make Regional Contributions
How to Install ERPNext Version 3
How to contribute ERPNext documentation[WIP]
How to test a Pull Request
Hub Code Sprint
Improve Precision of Stock Valuation
Install ERPNext on Debian based systems
Install ERPNext on RedHat based systems
Integrating Emails in ERPNext
Issue Guidelines
Legacy Print Formats (Category)
Manufacturing Module Community
Migrating your erpnext instance to wsgi
Migration Guide To ERPNext Version 16
Migration Guide to ERPNext version 14
Migration Guide to ERPNext version 15
Model Design Guidelines
Module Maintainers
MySQL configuration file
Naming Guidelines
Page format for ERPNext docs
Preparing a Contribution Proposal
Project Module Community
Pull Request Checklist
Purchase Order Classic Legacy Print Format
Purchase Order Modern Legacy Print Format
Purchase Order Spartan Legacy Print Format
Quotation Classic Legacy Print Format
Quotation Modern Legacy Print Format
Quotation Spartan Legacy Print Format
Restoring From ERPNext Backup
Sales Invoice Classic Legacy Print Format
Sales Invoice Modern Legacy Print Format
Sales Invoice Spartan Legacy Print Format
Sales Order Classic Legacy Print Format
Sales Order Modern Legacy Print Format
Setting up Backup Manager
Setting up TLS SSL certificates Let's Encrypt for ERPNext sites
Some Useful Aliases
Standard Print Header Code
Standard Release Test Plan
Standard With Columns Print Format
Supported Versions
Test Checklists
Troubleshooting Guide Template
Ubuntu HA Cluster with lsyncd, remote MariaDB, Apache Reverse Proxy Setup Guide
Updating ERPNext Instance
VSCode Debugging for Frappe Python
Version 4 Permission Use Cases
Version 5 Release Notes
Version 7 Release Notes
Version 7.1 Release Notes
WSGI Production Deployment
[Specifications] Hash chaining of sales and payment transactions in ERPNext
_sidebar
school
Clone
1
MySQL configuration file
anandpdoshi edited this page 2013-02-12 10:05:27 -08:00
Table of Contents
my.cnf
[mysqld]
# Misc Settings
# -------------
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-external-locking
table_cache=2048
thread_cache_size=16
back_log=100
max_connect_errors=10000
open-files-limit=20000
interactive_timeout=600
wait_timeout=600
max_connections=300
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Global, Non Engine-Specific Buffers
# -----------------------------------
max_allowed_packet=16M
tmp_table_size=64M
max_heap_table_size=64M
# Generally, it is unwise to set the query cache to be
# larger than 64-128M as this can decrease performance
# since the penalty for flushing the cache can become
# significant.
query_cache_size=32M
# Per-Thread Buffers
# ------------------
sort_buffer_size=1M
read_buffer_size=1M
read_rnd_buffer_size=8M
join_buffer_size=1M
# __________________________
#< Engine Specific Settings >
# --------------------------
# Set this to force MySQL to use a particular engine / table-type
# for new tables. This setting can still be overridden by specifying
# the engine explicitly in the CREATE TABLE statement.
default-storage-engine=InnoDB
# MyISAM
# ------
# Not sure what to set this to?
# Try running a 'du -sch /var/lib/mysql/*/*.MYI'
# This will give you a good estiamte on the size of all the MyISAM indexes.
# (The buffer may not need to set that high, however)
key_buffer_size=64M
# This setting controls the size of the buffer that is allocated when
# sorting MyISAM indexes during a REPAIR TABLE or when creating indexes
# with CREATE INDEX or ALTER TABLE.
myisam_sort_buffer_size=64M
# InnoDB
# ------
# Note: While most settings in MySQL can be set at run-time, InnoDB
# variables require restarting MySQL to apply.
# If the customer already has InnoDB tables and wants to change the
# size of the InnoDB tablespace and InnoDB logs, then:
# 1. Run a full backup with mysqldump
# 2. Stop MySQL
# 3. Move current ibdata and ib_logfiles out of /var/lib/mysql
# 4. Uncomment the below innodb_data_file_path and innodb_log_file_size
# 5. Start MySQL (it will recreate new InnoDB files)
# 6. Restore data from backup
#innodb_data_file_path=ibdata1:2000M;ibdata2:10M:autoextend
#innodb_log_file_size=100M
# InnoDB loves RAM. For customers using mostly InnoDB, consider setting
# this variable somewhat liberally. Do make sure the server is 64-bit,
# however, if you plan on setting it above 1.5-2GB.
innodb_buffer_pool_size=4G
#innodb_additional_mem_pool_size=20M
# innodb_file_per_table can be useful in certain cases
# but be aware that it does not scale well with a
# large number of tables!
#innodb_file_per_table=1
# Somewhat equivalent to table_cache for InnoDB
# when using innodb_file_per_table.
#innodb_open_files=1024
# If you are not sure what to set this two, the
# following formula can offer up a rough idea:
# (number of cpus * number of disks * 2)
#innodb_thread_concurrency=16
# _____________________________
#< Replication/Backup Settings >
# -----------------------------
server-id=16
# It may be wise to include the server-name or an easy identifier
# to the server in these logs, such as 'log-bin=/var/lib/mysqllogs/db1-bin-log'
log-bin=/var/lib/mysqllogs/bin-log
log-bin-index=/var/lib/mysqllogs/bin-log.index
#relay-log=/var/lib/mysqllogs/relay-log
#relay-log-index=/var/lib/mysqllogs/relay-log.index
# MySQL 5.0+ Only
expire_logs_days=60
# This is usually only needed when setting up chained replication.
#log-slave-updates
# Enable this to make replication more resilient against server
# crashes and restarts, but can cause higher I/O on the server.
sync_binlog=1
# MySQL 5.0+ Only
# Uncomment the following when enabling multi-master replication
# Do NOT uncomment these unless you know exactly what you are doing!
#auto_increment_increment=2
#auto_increment_offset=1
# _________________
#< Script Settings >
# -----------------
# (You probably do not need to change these)
[mysql.server]
user=mysql
log-error=/var/log/mysqlserver.log
#basedir=/var/lib
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
open-files-limit=65535