Category Archives: Mysql
Optimize MySQL Performance – memory – case study
The other day I was very upset about some extraordinary down times of my unmanaged VPS box at Linode. As it’s unmanaged, support staff at Linode are not responsible for the failures. I contacted them and they told me it’s OOM (Out Of Memory), pointing me to the right documentation to figure out how to … Continue reading
Compare InnoDB and MyISAM
Storage engines for MySQL databases are InnoDB and MyISAM. To summarize the differences of features and performance: InnoDB is newer while MyISAM is older. InnoDB is more complex while MyISAM is simpler. InnoDB is more strict in data integrity while MyISAM is loose. InnoDB implements row-level lock for inserting and updating while MyISAM implements table-level … Continue reading
How To Set Up MySQL Database Replication With SSL Encryption On Debian Lenny
How To Set Up MySQL Database Replication With SSL Encryption On Debian Lenny This tutorial describes how to set up database replication in MySQL using an SSL connection for encryption (to make it impossible for hackers to sniff out passwords and data transferred between the master and slave). MySQL replication allows you to have an exact copy of a database from a master server on another server (slave), and all updates to the database on the master server are immediately replicated to the database on the slave server so that both databases are in sync. This is not a backup policy because an accidentally issued DELETE command will also be carried out on the slave; but replication can help protect against hardware failures though. Continue reading
Installing A Web, Email And MySQL Database Cluster (Mirror) On Debian 5.0 With ISPConfig 3
Installing A Web, Email And MySQL Database Cluster (Mirror) On Debian 5.0 With ISPConfig 3 This tutorial describes the installation of a clustered Web, Email, Database and DNS server to be used for redundancy, high availability and load balancing on Debian 5 with the ISPConfig 3 control panel. GlusterFS will be used to mirror the data between the servers and ISPConfig for mirroring the configuration files. I will use a setup of two servers here for demonstration purposes but the setup can scale to a higher number of servers with only minor modifications in the GlusterFS configuration files. Continue reading
Apache And MySQL Monitoring With Bijk On Debian Lenny
Apache And MySQL Monitoring With Bijk On Debian Lenny This tutorial describes how you can monitor your server with the tool Bijk. Bijk creates online 30 graphs about load, CPU, memory, traffic, Apache, NginX, PostreSQL and others with alerts. Bijk can be used on Debian, Ubuntu, CentOS, RedHat and Gentoo. In this article I will explain how to install Bijk on Debian. Continue reading
Installing Apache2 With PHP5 And MySQL Support On Ubuntu 10.04 (LAMP)
Installing Apache2 With PHP5 And MySQL Support On Ubuntu 10.04 (LAMP) LAMP is short for L inux, A pache, M ySQL, P HP. This tutorial shows how you can install an Apache2 webserver on an Ubuntu 10.04 server with PHP5 support (mod_php) and MySQL support. Continue reading
How To Set Up WebDAV With MySQL Authentication On Apache2 (Ubuntu 9.10)
How To Set Up WebDAV With MySQL Authentication On Apache2 (Ubuntu 9.10) This guide explains how to set up WebDAV with MySQL authentication (using mod_auth_mysql) on Apache2 on an Ubuntu 9.10 server. WebDAV stands for Web-based Distributed Authoring and Versioning and is a set of extensions to the HTTP protocol that allow users to directly edit files on the Apache server so that they do not need to be downloaded/uploaded via FTP. Of course, WebDAV can also be used to upload and download files. Continue reading
Sphinx As MySQL Storage Engine (SphinxSE)
Sphinx As MySQL Storage Engine (SphinxSE) SphinX is a great full-text search engine for MySQL. Installing the Sphinx daemon was straightforward as you can compile it from the source or use a .DEB/.RPM package but SphinxSE was a little bit tricky since it needed to be installed as a plugin on a running MySQL server. So if you use Debian or Centos and install your MySQL from a .deb or .rpm package this is how you do it. Continue reading
When To Use Indexes In MySQL
When To Use Indexes In MySQL This comes up in discussions almost every new project I work on, because it’s a very important thing to consider when designing a database. When deciding when and how to create an index in your MySQL database, it’s important to consider how the data is being used. Continue reading
Allow Your Applications To Access The XAMPP MySQL Server Directly
Allow Your Applications To Access The XAMPP MySQL Server Directly If you want to have a full featured “LAMP” server with one step you can use “XAMPP”, it’s easy and fast but you can’t access its MySQL database server using the regular “mysql” client ( /usr/bin/mysql ), you have to use its own client ( /opt/lampp/bin/mysql ) to do that. Continue reading
Installing Lighttpd With PHP5 And MySQL Support On Fedora 12
Installing Lighttpd With PHP5 And MySQL Support On Fedora 12 Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on a Fedora 12 server with PHP5 support (through FastCGI) and MySQL support. Continue reading
Creating MySQL Backups With AutoMySQLBackup On Ubuntu 9.10
Creating MySQL Backups With AutoMySQLBackup On Ubuntu 9.10 AutoMySQLBackup is a shell script that lets you take daily, weekly and monthly backups of your MySQL databases using mysqldump. It can back up multiple databases, compress the backups, back up remote databases, and email the logs. This tutorial explains how to install and use it on an Ubuntu 9.10 server. Continue reading
How To Set Up MySQL Database Replication With SSL Encryption On CentOS 5.4
How To Set Up MySQL Database Replication With SSL Encryption On CentOS 5.4 This tutorial describes how to set up database replication in MySQL using an SSL connection for encryption (to make it impossible for hackers to sniff out passwords and data transferred between the master and slave). MySQL replication allows you to have an exact copy of a database from a master server on another server (slave), and all updates to the database on the master server are immediately replicated to the database on the slave server so that both databases are in sync. This is not a backup policy because an accidentally issued DELETE command will also be carried out on the slave; but replication can help protect against hardware failures though. Continue reading
Installing Cherokee With PHP5 And MySQL Support On Ubuntu 9.10
Installing Cherokee With PHP5 And MySQL Support On Ubuntu 9.10 Cherokee is a very fast, flexible and easy to configure Web Server. It supports the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL encrypted connections, virtual hosts, authentication, on the fly encoding, load balancing, Apache compatible log files, and much more. This tutorial shows how you can install Cherokee on an Ubuntu 9.10 server with PHP5 support (through FastCGI) and MySQL support. Continue reading
Installing Lighttpd With PHP5 And MySQL Support On Mandriva 2010.0
Installing Lighttpd With PHP5 And MySQL Support On Mandriva 2010.0 Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on a Mandriva 2010.0 server with PHP5 support (through FastCGI) and MySQL support. Continue reading