MySQL database server slows down Analysis and Solution sharing

1. Check the system status Check the status of the system by using some operating system tools, such as CPU, memory, swap, and disk utilization. Based on experience or compared with the normal status of the system, sometimes the system looks idle on

What is blob? mysql blob size Configuration

BLOB is a large file. A typical BLOB is an image or sound file. due to their size, it must be processed in a special way (for example: upload, download, or store data in a database ). According to Eric Raymond, the main idea of processing BLOB is to

Converting MySQL from MyISAM to InnoDB errors and Solutions

Later, I was working on WordPress. I didn't know that WordPress was using the InnoDB Data Engine at the beginning, so I built a database in the original database. I didn't find any problems at the beginning, it's okay to import the SQL statement. I

MySQL dynamically creates a table and stores data into Table shards.

Copy codeThe Code is as follows:BEGINDECLARE '@ I' int (11 );DECLARE '@ siteCount' int (11 );DECLARE '@ sqlstr' VARCHAR (2560 );DECLARE '@ sqlinsert' VARCHAR (2560); // DECLARE the variable aboveSelect count (0) into '@ siteCount' FROM tbl_base_site;

How to select an appropriate MySQL storage engine

MySQL supports several storage engines as processors for different table types. The MySQL storage engine includes the engine for processing transaction security tables and the engine for processing non-transaction security tables: ◆ MyISAM manages

How to regularly back up mysql and regularly cut nginx access log

Regular mysql backupPut/etc/cron. hourly/Copy codeThe Code is as follows:#! /Bin/bashDUMP =/usr/local/webserver/mysql/bin/mysqldumpOUT_DIR =/data1/backup/DB_NAME = Database NameDB_USER = Database UserDB_PASS = Database Password# How much days backup

Quickly repair corrupted MySQL Databases

1. myisamchkTo use myisamchk, you must temporarily stop the MySQL server. For example, we want to repair the discuz database. Perform the following operations:# Service mysql stop (stop MySQL );# Myisamchk-r/absolute path of the database file/* MYI#

Add a transaction processing method to the mysql database

Statement: alter table tableName engine = InnoDB;Tables UsedCopy codeThe Code is as follows:Create table if not exists 'test '('Id' int (10) not null auto_increment,'Websitename' varchar (200) character set utf8 not null,'Websiteurl' varchar (200)

How to modify the default password of mysql in WAMP

First, open the mysql console through WAMP. Prompt to enter the password. Because it is empty, press Enter. Then enter"Use mysql", Which means to use the mysql Database and prompt" Database changed. Then enter the SQL statement"Update user

Solution to Mysql database update errors

Statement: UPDATETestSETAge=5 WHERE'Name'='Wang Mang' As the name implies, Wang's age is changed to 5, but the result is helpless -- The number of affected rows is 0. What's going on? The syntax is correct. It's okay ...... I changed it and removed

The php background often prompts that the connection to mysql cannot be refresh and then accessible.

There are two methods available on the Internet: First:Uninstall the KB967723 patch.Log on to the server and go to control panel-add and delete programs-(check "show updates" at the top). You can see the updated KB967723 patch in it, and then

Timeout processing for accessing MySQL using PHP

Currently, you can set options to operate the connection timeout of two client extension libraries, such as mysqli:Copy codeThe Code is as follows:// Create an object$ Mysqli = mysqli_init ();// Set the timeout Option$ Mysqli-> options

Mysql cmd Common commands

Put mysql.exe in the binary directory under mysqldirectory under C: \ WINDOWS. You can run the following command:Connection: mysql-h host address-u user name-p User Password (Note: u and root do not need to add spaces, the same is true for

Summary of mysql delete Problems

Internal issues related to the mysql databaseCause delete from table where col not in (select col from table group by xx)An error is reported.What we need to do isCopy codeThe Code is as follows:Create table tmp selete col from table group by

Extract data from the database for the last 30 days and generate a bar chart

Run the cd command on the terminal to enter the file directory.Note: here is an example of the project.1. create a project: Enter zf create project Airline in the format of zf create action project-name in the terminal. Note: You can enter zf in the

MySQL 5.0 triggers reference page 1/4

Conventions and Styles Conventions and programming StylesEvery time I want to demonstrate the actual code, I will adjust the code displayed on the screen of the mysql client and change the font to Courier, make them look different from common text

How to Use mysqldump to back up and restore a specified table

Copy codeThe Code is as follows:Mysqldump-u user-p db tab1 tab2> db. SQL RestoreCopy codeThe Code is as follows:Mysql-u user-p db Refer:1. copy backup files: (ensure that the database has no write operations (you can lock the Table). Copying files

How to debug debugview using MySQL UDF

The UDF of MySQL is a dynamic Connection Library (* Nix is called a shared library) that does not need to set the entry point ). You can call this method to debug a DLL. Now I will introduce a very simple and easy-to-use debugging method. This

Error Code List of MySQL database

MySQL error code list:1005: An error occurred while creating the table.1006: database creation failed1007: the database already exists. An error occurred while creating the database.1008: the database does not exist. An error occurred while deleting

How to restore the ROOT password of MYSQL

If you forget your MYSQL root Password, you can recover it through the following process.1. Send the kill command to the mysqld server to disable the mysqld server (not kill-9). The files that store the process ID are usually located in the

Total Pages: 3233 1 .... 1682 1683 1684 1685 1686 .... 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.