Results 1 to 10 of 15
-
10th Sep 2011, 12:29 AM #1
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
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
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
PS: Don't forget to restart mysql after changing configurationNewEraCracker 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: 5Trusted: Dom, l0calh0st, 0ccul7, robert420
Find all threads started by NewEraCracker
-
11th Sep 2011, 06:57 PM #2
-
5th Nov 2011, 02:39 PM #3
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
-
5th Nov 2011, 03:01 PM #4
Any tip how this can be managed by using kloxo, for eg to create a new db through kloxo panel.
-
8th Nov 2011, 05:22 PM #5Member
does this work with normal php scripts like vb,wp without change in coding. Does all db operation works charm like mysql ?
-
8th Nov 2011, 05:34 PM #6Banned
i am familiar with mysql already so don't want to change it
-
8th Nov 2011, 06:33 PM #7Respected 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.
-
12th Jan 2012, 01:02 PM #8MemberWebsite's:
10gb.in uploadjet.neti 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
-
12th Jan 2012, 01:06 PM #9Member
Nice share, another alternative is percona: http://www.percona.com/software/percona-server/
-
14th Jan 2012, 04:24 AM #10MemberWebsite's:
10gb.in uploadjet.netno one to guide
10Gb.in - Affordable Web Hosting Strictly No oversell |
Kimsufi Reseller With 80 payment options
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
how to upgrade mysql 5.0.x to mariadb in kloxo
By bhanuprasad1981 in forum Technical and Security TutorialsReplies: 3Last Post: 18th Feb 2012, 12:28 PM -
Install MySQL 5.5.17 on CentOS 6
By ifirstdoz in forum Tutorials and GuidesReplies: 1Last Post: 20th Nov 2011, 01:18 PM -
How To Install Apache with MySQL and PHP on Linux CentOS
By enetcloud in forum Tutorials and GuidesReplies: 3Last Post: 21st Aug 2011, 01:11 PM -
replacing mysql $link supplied data, a question?
By XSLTel in forum Web Development AreaReplies: 10Last Post: 23rd Jul 2011, 03:14 PM -
[How To] Lighttpd With PHP5 And MySQL On CentOS 5.2
By DLow in forum Tutorials and GuidesReplies: 3Last Post: 10th Jun 2010, 08:31 AM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...