Tagged: mysql RSS

  • levin 5:05 pm on January 14, 2011 Permalink | Reply
    Tags: mysql   

    MySQL tuning for dummies 

    Introduction

    There is so many people asking how to improve their mysql instance, and also so many replies that increase key_buffer, sort_buffer, cache size… etc… which believe will lighten up the performance. However, fellows never notice those parameters was actually efficient to their setup.

    So here you are MySqlTuner,
    (More …)

     
    • Singularity 11:30 pm on January 21, 2011 Permalink | Reply

      how do you figure this is for “dummies”?!

    • Florin 3:20 am on January 25, 2011 Permalink | Reply

      “./mysqltuner.pl” didn’t worked for me .
      I made it work with “pearl mysqltuner.pl”

      • levin 3:29 am on January 25, 2011 Permalink | Reply

        try “chmod +x mysqltuner.pl” first, then you can run it without specifying “perl”

  • levin 5:52 pm on April 27, 2010 Permalink | Reply
    Tags: mysql   

    MySQL multiple instance on CentOS howto 

    Create new database instance on new destination

    mkdir /u02/mysql
    mkdir /u02/mysql/data
    mkdir /u02/mysql/log
    mkdir /u02/mysql/run
    mkdir /u02/mysql/lock
    
    chown -R mysql:mysql /u02/mysql
    mysql_install_db --datadir=/u02/mysql/data --user=mysql
    

    (More …)

     
    • Murad 1:11 pm on August 19, 2010 Permalink | Reply

      hello levin…
      after doing ‘ service mysqld.server2 start ‘ i’m getting one error.
      the error is
      ‘ mysqld.server2: unrecognized service ‘
      hope you can help me …
      thanks in advance


      murad

    • levin 2:13 pm on August 19, 2010 Permalink | Reply

      Hi Murad,

      How about /etc/rc.d/init.d/mysqld.server2 start ?

    • Joris Conijn 5:50 pm on October 21, 2010 Permalink | Reply

      Murad, try the following:

      $ chmod +x /etc/init.d/mysqld.server2
      $ service mysqld.server2 start

      The start script in init.d should be executable

  • levin 4:06 am on February 25, 2010 Permalink | Reply
    Tags: , , mysql, performance, ,   

    Performance tuning on Apache, PHP, MySQL, WordPress v1.1 – Updated 

    Introduction

    This tutorial is covering the web server performance tunings on MySQL, PHP and Apache, WordPress and BuddyPress or general web hosting purpose, the tuning example is based on CentOS 5.

    The key of the following performance tuning is focus on memory and caching, most of people host a web site or forum or blog without any tunings or even use the all out-of-box setting.

    (More …)

     
    • Chris 10:41 am on August 27, 2010 Permalink | Reply

      Thank for performa tuning server guide.

    • Eric Nielsen 7:31 am on January 21, 2011 Permalink | Reply

      Followed your instructions to setup FastCGI, all worked well accept at the end, when I hit my website, I get:

      #!/bin/bash
      PHP_CGI=/usr/bin/php-cgi
      PHP_FCGI_CHILDREN=16
      PHP_FCGI_MAX_REQUESTS=1000
      export PHP_FCGI_CHILDREN
      export PHP_FCGI_MAX_REQUESTS
      exec $PHP_CGI

      • levin 1:59 pm on January 21, 2011 Permalink | Reply

        Hi, please make sure you have the similar lines as below.

        ScriptAlias /cgi-bin/ “/var/www/cgi-bin/”

        \< Directory "/var/www/cgi-bin" \>
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
        \< \/Directory \>

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel