MySQL log cleanup

MySQL bin-log log cleanupBin-log log files found in MySQL database directory are very large[Email protected] var]#du-SHmysql-bin* |Sort1020K MySQL-bin.0000021.1G Mysql-bin.0000211.1MMysql-bin.000018136K MySQL-bin.000019172K MySQL-bin.000014191M

MySQL statement to determine the number of operation Records per day

There is an article table article, the time to store the article's add-on is the Add_time field, which is of type int (5), and now you need to query the total number of articles added today and sort by time from large to small, then the query

MySQL Batch SQL statements

MySQL supports batch mode to run a bunch of SQL statements, and the following example is how MySQL runs SQL statements under Windows batch processing.CREATE TABLE Test (ID int,name varchar (20));INSERT into test values (1, ' Watson ');The

MySQL mass lock table, without restarting the case processing method

Mysql-u root-e "Show processlist" |grep-i "Locked" >> locklist.txt;for line in awk ' {print $} ' locklist.txtdo E Cho "Kill $line;" >>lock_kill.sqldoneView MySQL database table size#!/bin/bashdatabase=cmsuser=rootpassword= ' 123456 ' Mysql -u${user}

Install MySQL under Linux

The dependencies required to install the system[Email protected] ~]# yum-y install gcc gcc-c++ gcc-g77 autoconf automake zlib* fiex* libxml* ncurses-devel libmcrypt* L ibtool-ltdl-devel* CMake BisonCreate MySQL user and user groups[[email protected]

A simple MySQL service detection startup script

Objective: To monitor the survival status of MySQL and restart MySQL once it is monitored for MySQL down.Script content:/usr/local/mysql/bin/mysqladmin-uroot-psharpower ping >/dev/null 2>&1if [$?-ne 0]then/etc/init.d/m Ysql.server Restart >/dev/null

MySQL Installation: MARIADB binary package mode installation

MySQL that's quite a popular relational database has one, with the future of MySQL after the acquisition of the open source of Oracle is uncertain, gooogle, not to die, and so on to the MySQL open source community to maintain another open source

Modify MySQL character encoding appears job failed to start solution

Find the following information online:$sudo gedit/etc/mysql/my.cnf Add under [client]: Default-character-set=utf8 [Mysqld] under Add: Default-character-set=utf8 And then save the exit $/etc/init.d/mysql Restart The results appeared: Since The script

MySQL index or condition

In some cases, the or condition can avoid full-table scanning.1. If there is an OR condition inside the where statement, the MyISAM table can use the index, InnoDB not. 1) MyISAM table:? CREATE TABLE IF not EXISTS ' a ' (? ' ID ' int (1) not NULL

ODBC data source for MySQL

1. Download the MySQL adapter and installMysql-connector-odbc-3.51.20-win32.exe2. Configure the data source"Start"-"Administrative Tools"-"data Source (ODBC)"-"System DSN"-"Add"-"Select the installed MySQL ODBC drive-" Pop-up configuration dialog

MySQL create user and authorization method instance explaining

create a user and authorization implementation method in MySQL. Operating Environment: Widnows XP Professional + MySQL5.0One, create the user:Command: CREATE USER ' username ' @ ' host ' identified by ' password ';Description: Username-the user name

[MySQL] InnoDB parameter optimization

Innodb_buffer_pool_sizeThe innodb_buffer_pool_size parameter is used to set the size of InnoDB's primary buffer (Innodb_buffer_pool), which is the most significant cache space for cached user tables and index data, and has the greatest impact on

The long-awaited MySQL version of the Imatrix platform has been released

There are three versions of the Imatrix platform : Oracle, SQL Server, MySQL.Following the IMATRIX-ORACLE-6.0.0.RC1 and IMATRIX-SQLSERVER-6.0.0.RC1 versions,Then the IMATRIX-MYSQL-6.0.0.RC1 version was released successively. More information about

Teach you to manually MySQL to split the library

Most Internet Web applications use MySQL as a DB storage, limited to MySQL single-machine performance bottlenecks, in order to support greater capacity and greater access, DBAs generally through the establishment of distributed clusters, so that

Sqoop imported hive field names from mysql, sqoophive

Sqoop imported hive field names from mysql, sqoophive There are some keyword restrictions in hive, so some field names are available in mysql, but it won't work when it comes to hive. For example, order must be changed to order1. The following

MySQL Data processing functions

MySQL Data processing functionsData processing functions sometimes process the data obtained from database tables. For example, replace lowercase letters with uppercase letters. This process can be performed on the client or the database. Database

Mysql storage engine

Mysql storage engine08-mysql storage engine ---- Storage engine Introduction (1 ),InnoDBEngine InnoDB is a storage engine of mysql. innodb provides transaction logs, rollback, crash repair capabilities, and multi-version Concurrency Control for

Restore a deleted MySQL database

Restore a deleted MySQL database In the morning, I accidentally deleted a database I just created yesterday! Fortunately, the log feature is enabled in mysql. The following describes how to restore a deleted database: First, save the most recent

Sysbench-0.4.12 compilation and installation and CPU test example sharing, sysbench-0.4.12cpu

Sysbench-0.4.12 compilation and installation and CPU test example sharing, sysbench-0.4.12cpu 1. Obtain the installation package Recent version 0.4.12,: http://sourceforge.net/projects/sysbench/ Ii. Compilation and Installation My environment is

Details and usage of thread pool in MariaDB, mariadbpool

Details and usage of thread pool in MariaDB, mariadbpool What is Thread pool? MySQL creates a thread for each connection to execute the statement. In this way, a new thread will be created for each new connection, which puts a lot of pressure on

Total Pages: 3233 1 .... 2069 2070 2071 2072 2073 .... 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.