Database index operations

Database index operations have never used indexes before and fail to understand the benefits of indexes. A few days ago, we had to process tables with millions of records, such as queries on both sides, with more records, the query speed is quite

Description of Sysbench Parameters

Description of Sysbench Parameters # Sysbench test case: sysbench [general-options]… -Test = [test-options]… Command common options: -- num-threads = N number of test threads created. The default value is 1. -- max-requests = N. The default value

Simple usage of mysql select

Simple usage of mysql select 1. select statements can be separated by carriage return $sql="select * from article where id=1"  And $sql="select * from article  Where id = 1 "can get the correct results, but sometimes it is clearer to write

Master/slave database manual synchronization of master-data

The master-data parameter for manual synchronization of master/slave databases is often used when a slave database is created, because this is a relatively useful parameter, the default value is 1, by default, the statement contains change master to,

MySQL learning footprint record 12-use subquery

MySQL learning footprint record 12-use subquery 1. subquery: Query raw data nested in other queries is as follows: Mysql> SELECT order_num FROM orderitems; + ----------- + | order_num | + ----------- + | 20005 | 20005 | 20009 | 20005 | 20009 | 20008

Can't connect to MySQL server for linux tcp connection Optimization

Can't connect to MySQL server for linux tcp connection optimization recently two web machines are connected to mysql, sometimes there will be Can't connect to MySQL server, view the exception log: [message:protected] => SQLSTATE[HY000] [2003] Can’t

Summary of database migration

Summary of database migration requirements: migrate data from database database1 on the remote server IP Address: 172.10.10.1 to the database database2 table on the server IP Address: 172.10.10.2, the required field must correspond to 1. log on to

Mysql order by rand () Optimization

We all know that order by rand () Optimization in mysql is slow when there is a large amount of data, because it can cause full table scanning in mysql, therefore, no index is used. Therefore, order by rand () is already in the restricted area when

[MySQL] account and permission management

[MySQL] account and permission management MySQL initial account is as follows: [sql] [root@lx16 ~]# mysql -u root mysql> select host,user,password from mysql.user; +-----------+------+----------+ | host | user | password | +-----------+-----

Mysql automatic backup

Mysql automatically backs up a series of problems. The test environment has finally been set up .. The server selected the MySQL-server-5.5.28 and the KEY verification information passed. It seems that the system is not installed correctly. Start

Analysis of mysql, mysqli, PDO

Analysis of mysql, mysqli, PDO, MYSQL, MYSQLI performance which is better? Here we will make a simple comparison. Normal mysql connections will certainly be discarded because every time SQL injection is prevented, it is relatively slow. Mysqli is an

MySQL4Mac and Environment Variables

MySQL4Mac and environment variable version: mysql-5.1.41-osx10.5-x86 first to enter the system preference settings Start MySQL Server to enter mysql Command is:/usr/local/mysql/bin/mysql use alias simplified command: alias mysql

SET SQL _MODE = & quot; NO_AUTO_VALUE_ON_ZERO & quot;

SET SQL _MODE = "NO_AUTO_VALUE_ON_ZERO" NO_AUTO_VALUE_ON_ZERO affects the processing of the AUTO_INCREMENT column. Generally, you can insert NULL or 0 to this column to generate the next serial number. NO_AUTO_VALUE_ON_ZERO disables 0, so only NULL

MySQL Chinese index plug-in mysqlcft Installation and Use

MySQL Chinese index plug-in mysqlcft installation and use 1. MySQL must be dynamically compiled and installed to load dynamic link libraries. 2. edit MySQL configuration file my. cnf: in the [mysqld] segment, add ft_min_word_len = 1 (meaning the

MySQL Cluster online management node configuration file-data node 96 GB memory

MySQL Cluster online management node configuration file-data node 96 GB memory [ndbd default] NoOfReplicas: 2 # DataDir:/data/mysql/log # FileSystemPath: /add/path/here # Data Memory, Index Memory, and String Memory # DataMemory: 61440 MIndexMemory:

Mysql service cannot be started. Error 1067 is displayed.

Mysql service cannot be started. Error 1067 is displayed. 1. Open the my. ini file, find the default-storage-engine = InnoDB line, and change it to default-storage-engine = MyISAM. 2. Delete ib_logfile0ib_logfile1 3 in the Data directory under the

Mysql modifies wait_timeout

Mysql modifies wait_timeout Mysql> show global variables like 'wait _ timeout ';  The default value is 8 hours for a mysql connection to be idle for more than 8 hours. mysql will automatically disconnect the connection. 1. modify vi/etc/my. cnf

Mysql grouping statement

Mysql year/year grouping statement Java code SELECT count (DISTINCT (. rect_id) zcount,. job_dept, DATE_FORMAT (submit_date, '% Y-% m') zsubmit_date FROM table name a WHERE. statu = 3 AND. rstatu = 2 AND. job_dept IN ('19', '20', '21') group by. job_

Install and use sysbench

Sysbench is an open-source multi-threaded performance testing tool that can perform performance tests on CPU, memory, thread, IO, and database. Currently, the database supports MySQL, Oracle, and PostgreSQL installation (rhel5.8 + mysql5.5). errors

Mysql performance problem locating

Mysql performance problem locatingUsing mysql as the basic database application may encounter some database performance problems. We can locate the problem through some methods. The following describes four methods to locate performance problems. 1.

Total Pages: 3233 1 .... 3189 3190 3191 3192 3193 .... 3233 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.