Category: Database

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

How to Enable MySQL Binlog on Windows

Edit the mysql.ini file and add a line log-bin="path". The example below places it under C:/Program Files/MySQL/MySQL Server 5.5/log:

1.Create a new folder named log in the corresponding directory

2.Locate the MySQL installation directory, open my.ini, and add the following under [mysqld]:
log-bin = C …

How to Install MySQL Using Yum

Below is an example of installation in root mode:
#yum -y install mysql-server 
Installed: mysql-server.i386 0:4.1.20-1.RHEL4.1
Dependency Installed: mysql.i386 0:4.1.20-1.RHEL4.1 perl-DBD-MySQL.i386 0:2.9004-3.1 …

How to Repair, Check, and Optimize MySQL Tables

The general steps are as follows: enter the MySQL database, select the database to use, select the data table to use, and execute the relevant commands;

1. Enter MySQL: mysql -uroot -p Enter the password as prompted. 2. Select the database: Using ‘dz’ as an example here use dz; A successful selection will display: Database changed 3. Select …

How to Crack a MySQL Password

How to Reset Forgotten MySQL Password on Windows

Usually, we don’t manage MySQL very often, and over time the password gets forgotten — and without a MySQL management tool at hand, we have to manually reset the MySQL password. Let’s first look at how to reset MySQL on Windows. 1. First, stop the MySQL service …

MySQL “net start mysql” System Error 5 Fix

Running “net start mysql” in DOS fails to start MySQL! It prompts: system error 5; access denied! Go to Services in My Computer, find the MySQL service item, double-click it and then click the “Log On” tab, make sure the logon identity is using the system account, as shown below, …

Why Set MySQL ft_min_word_len=1

MySQL has supported full-text indexing since version 4.0, but the default minimum index word length is 4. For English this default is quite reasonable, but the vast majority of Chinese words consist of 2 characters, which means any word shorter than 4 characters cannot be indexed, rendering the full-text index functionality virtually useless. Domestically …

MySQL Extension Not Loading – Check PHP Configuration

This issue specifically occurs when phpMyAdmin cannot use MySQL plugins after a PHP update, causing it to malfunction. Generally, PHP and MySQL come as a series of integrated packages, but if this problem arises, refer to the following solution:
phpMyAdmin“Cannot load my …

Performance Test: MySQL 5.6 vs. MariaDB 10.0

Oracle just released the MySQL 5.6.10 GA version, so it’s time to update the previous performance benchmark data. This round of testing includes the following versions: MySQL-5.5.29 MySQL-5.6.10 MariaDB-5.5.28a MariaDB-10.0.1 This test also retains …

The Three Essential MySQL Optimization Techniques on Linux

Since most MySQL deployments today run on Linux, here are some general and straightforward strategies for optimizing MySQL on the Linux operating system. These methods can all help improve MySQL performance. Without further ado, let’s get straight to the point. 1. CPU Let’s start with the CPU. Check carefully …