11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 26 • INSTALLING AND CONFIGURING MYSQLwww.it-ebooks.infoNamemy-small.cnfDescriptionIntended for minimally equipped servers, possessing nominal RAM(less than 64MB)So what does this file look like? Here’s a partial listing of the my-large.cnf configuration template:# Example mysql config file for large systems.## This is for large system with memory = 512M where the system runs mainly# <strong>MySQL</strong>.# The following options will be passed to all <strong>MySQL</strong> clients[client]#password = your_passwordport = 3306socket= /tmp/mysql.sock# Here follows entries for some specific programs# The <strong>MySQL</strong> server[mysqld]port = 3306socket= /tmp/mysql.sockskip-lockingkey_buffer=256Mmax_allowed_packet=1Mtable_cache=256sort_buffer=1Mrecord_buffer=1Mmyisam_sort_buffer_size=64M[mysqldump]quickmax_allowed_packet=16M[mysql]no-auto-rehash# Remove the next comment character if you are not familiar with SQL#safe-updates...Looks fairly straightforward, right? Indeed it is. Configuration files really can be summarized in threesuccinct points:• Comments are prefaced with a hash mark (#).• Variables are assigned exactly like they would be when assigned along with the callto mysqld_safe, except that they are not prefaced with the double hyphen.502

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!