PHP-MySQL Persistent Connections to Run WordPress Blog

Saturday, July 3rd, 2010 512 views

When connecting to MySQL database, WordPress weblog based on PHP scripting will use non-persistent connection by default. That is, WordPress will trigger PHP to generate a new connection to MySQL server for each dynamic page request, and subsequently close the database connection once the web page building is completed. Repetitive opening and closing of MySQL [...]

Enable Logging of Slow Queries in MySQL Database

Saturday, July 3rd, 2010 80 views

One of the main requirements for a fast web server is to has efficient and effective SQL statements or queries that are optimized. Any non-optimal SQL (Structured Query Language) commands or statements that take too long or lengthy time to execute will use up a lot of system resources, causing MySQL database to run slower, [...]

How To create a MySQL database and set privileges to a user

Monday, June 21st, 2010 106 views

MySQL is a widely spread SQL database management system mainly used on LAMP (Linux/Apache/MySQL/PHP) projects. In order to be able to use a database, one needs to create: a new database, give access permission to the database server to a database user and finally grant all right to that specific database to this user. This [...]