Activity Stream
48,167 MEMBERS
62349 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1.     
    #1
    Moderator
    NewEraCracker's Avatar

    Default Replacing MySQL with MariaDB in a CentOS VPS

    Hello,

    MariaDB is a database server that offers drop-in replacement functionality for MySQL. MariaDB is built by some of the original authors of MySQL, with assistance from the broader community of Free and open source software developers. In addition to the core functionality of MySQL, MariaDB offers a rich set of feature enhancements including alternate storage engines, server optimizations, and patches.

    Before installation you can wget its packages from a mirror:
    1. Go to their download page: http://downloads.askmonty.org/mariadb/
    2. Select the version you wish to use (personally I like the new 5.3 series given the improvements it has)
    3. Select the linux package in the checkbox and it should give you some options
    4. In my case, since my CentOS install is i386 I've clicked in "CentOS 5 x86 RPMs"
    5. Browse the mirror rpms and wget each of them in the server. I recommend creating a new directory for the packages to be downloaded into.
    Code: 
    mkdir mariadb
    cd mariadb
    wget package-url
    Now you can follow the instructions here:
    kb.askmonty.org/en/installing-mariadb-rpm-files
    kb.askmonty.org/en/how-can-i-upgrade-from-mysql-to-mariadb

    Possible issues and fixes:
    I had it complaining about missing Perl(DBI) running "yum install perl-DBI" (without quotes) in ssh installs that dependency.
    Since you had to remove mysql from your server, you may have also removed php-mysql package. To reinstall it "yum install php-mysql" (without quotes) and then restart apache.

    Tuning MariaDB:
    Create or edit the my.cnf file at /var/lib/mysql/

    Add add this:
    Code: 
    [mysqld]
    default-storage-engine=myisam
    ignore-builtin-innodb
    Setting default storage engine back to myisam is useful if you, for some reason, want to go back to MySQL.
    Disabling innodb would reduce RAM usage if you don't need it.

    Issues with Webmin and how to fix:
    MySQL Database Server > Module Config
    Code: 
    Command to start MySQL server: /etc/init.d/mysql start
    Command to stop MySQL server: /etc/init.d/mysql stop
    MySQL configuration file: /var/lib/mysql/my.cnf
    Should you require any help, reply to this thread and I (or someone) will help you

    PS: Don't forget to restart mysql after changing configuration
    NewEraCracker Reviewed by NewEraCracker on . Replacing MySQL with MariaDB in a CentOS VPS Hello, MariaDB is a database server that offers drop-in replacement functionality for MySQL. MariaDB is built by some of the original authors of MySQL, with assistance from the broader community of Free and open source software developers. In addition to the core functionality of MySQL, MariaDB offers a rich set of feature enhancements including alternate storage engines, server optimizations, and patches. Before installation you can wget its packages from a mirror: 1. Go to their Rating: 5
    Trusted: Dom, l0calh0st, 0ccul7, robert420
    Find all threads started by NewEraCracker

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    NoSeriously.org
    Thanks for posting this up NEC.


  4.     
    #3
    Moderator
    NewEraCracker's Avatar
    This is the my.cnf file I use in my server, hope you find it useful:

    Code: 
    [mariadb]
    default-storage-engine=myisam
    ignore-builtin-innodb
    optimizer_switch='derived_merge=off,materialization=off'
    pbxt=off
    
    [mysqld]
    bind-address = 127.0.0.1
    port	= 3306
    key_buffer_size = 32M
    max_allowed_packet = 1M
    table_open_cache = 256
    sort_buffer_size = 1M
    net_buffer_length = 16K
    read_buffer_size = 512K
    read_rnd_buffer_size = 1M
    myisam_sort_buffer_size = 16M
    thread_cache_size = 4
    
    [mysqldump]
    quick
    max_allowed_packet = 16M
    
    [mysql]
    no-auto-rehash
    # Remove the next comment character if you are not familiar with SQL
    #safe-updates
    
    [myisamchk]
    key_buffer_size = 20M
    sort_buffer_size = 20M
    read_buffer = 2M
    write_buffer = 2M
    
    [mysqlhotcopy]
    interactive-timeout
    Trusted: Dom, l0calh0st, 0ccul7, robert420
    Find all threads started by NewEraCracker

  5.     
    #4
    Any tip how this can be managed by using kloxo, for eg to create a new db through kloxo panel.

  6.     
    #5
    Member
    does this work with normal php scripts like vb,wp without change in coding. Does all db operation works charm like mysql ?

  7.     
    #6
    Banned
    i am familiar with mysql already so don't want to change it

  8.     
    #7
    Respected Member
    Yes MariaDB works just the same as MySql as far as commands are concerned.

    I am using it now (locally) and see no improvement in speed but then again I only have one user.

  9.     
    #8
    Member
    Website's:
    10gb.in uploadjet.net
    i am using webmin with mysql 5.1.x can some one tell me the step by step process to upgrade to mariadb 5.2.x ?
    10Gb.in - Affordable Web Hosting Strictly No oversell |
    Kimsufi Reseller With 80 payment options



  10.     
    #9
    Member
    Nice share, another alternative is percona: http://www.percona.com/software/percona-server/

  11.     
    #10
    Member
    Website's:
    10gb.in uploadjet.net
    no one to guide
    10Gb.in - Affordable Web Hosting Strictly No oversell |
    Kimsufi Reseller With 80 payment options



Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to upgrade mysql 5.0.x to mariadb in kloxo
    By bhanuprasad1981 in forum Technical and Security Tutorials
    Replies: 3
    Last Post: 18th Feb 2012, 12:28 PM
  2. Install MySQL 5.5.17 on CentOS 6
    By ifirstdoz in forum Tutorials and Guides
    Replies: 1
    Last Post: 20th Nov 2011, 01:18 PM
  3. How To Install Apache with MySQL and PHP on Linux CentOS
    By enetcloud in forum Tutorials and Guides
    Replies: 3
    Last Post: 21st Aug 2011, 01:11 PM
  4. replacing mysql $link supplied data, a question?
    By XSLTel in forum Web Development Area
    Replies: 10
    Last Post: 23rd Jul 2011, 03:14 PM
  5. [How To] Lighttpd With PHP5 And MySQL On CentOS 5.2
    By DLow in forum Tutorials and Guides
    Replies: 3
    Last Post: 10th Jun 2010, 08:31 AM

Tags for this Thread

BE SOCIAL