Category: Database

MySQL (102)
Oracle (26)
Redis (8)
SQLServer (2)

NoSQL Introduction: Why Use NoSQL

NoSQL surged in popularity in 2010, with web sites large and small turning to NoSQL technologies as a top priority in the pursuit of high performance and high reliability. At the start of this year, InfoQ Chinese had the pleasure of inviting Mr. Sun Li from Phoenix New Media to share his experience with NoSQL …

21 Best Practices for MySQL Performance Tuning

When designing database table structures and operating databases (especially SQL queries when looking up tables), we need to pay attention to data operation performance. Here, we won’t discuss too much SQL statement optimization, but will focus specifically on MySQL, the most widely used database in web applications. Hopefully the optimization techniques below …

MySQL Master-Slave Replication (Async), Semi-Synchronous Replication, and SSL-Based Replication (Part 1)

Overview Replication is commonly used to create copies of the master node, ensuring high availability by adding redundant nodes. Of course, replication can also serve other purposes, such as performing data reads and analysis on slave nodes. In horizontally scaling businesses, replication is easy to implement, primarily by utilizing the master node for write operations …

MySQL Encryption Performance Testing

This is the second of a two-part series on MySQL encryption performance testing. In the first article, I exclusively used MySQL’s built-in SSL support to run stress tests, which produced some surprising results. Of course, it was expected that query throughput with SSL would be lower than without SSL, but …

phpMyAdmin Login Failed Error 1130 Fix

Issue: After installing MySQL, phpMyAdmin cannot log into MySQL and returns error 1130, but logging in via the MySQL command line with `mysql -u root -p` works. Analysis and Solution: A Baidu search reveals that MySQL error 1130 is caused by remote connection users lacking remote access privileges. Solution: Log in locally …

How to Delete MySQL Binlog Files and Recover Data from Logs

When installing MySQL, most people enable the binlog feature. The benefit of enabling this feature is that it makes data recovery easier in the future, while the downside is that the log files grow rapidly and can quickly fill up disk space. Therefore, we need to periodically or manually delete oversized log files. The methods for deleting log files generally include the following …