MySQL Cache parameters

The optimization of MySQL is not in line, has done several optimizations, but is not very ideal, or waste resources too much. I have always found that my MySQL cache hit rate is very poor, in good times to reach the 60-70%, but run a long time, only

mysql cant open file: Table name modification method

mysql tutorial cant open file: Table name modification method 1.can ' t Open file: ' [table]mytable.myi '2.table ' picture ' are marked as crashed and should be repaired The following methods are valid only for tables in MyISAM format. Other types

Linux open MySQL remote connection method and problem solving methods

Linux open MySQL Remote connection method 1. Grant command create remote connection MySQL authorized user root Mysql-u root-pMysql>grant all privileges in *.* to root@localhost identified by ' 123456 ' with GRANT OPTION; Increase root user

MySQL save data appears illegal mix of collations (gbk_chinese_ci,implicit)

MySQL Tutorial save data appears illegal mix of collations (gbk_chinese_ci,implicit) Other such issues are very simple to deal with, that is, the page submitted data and MySQL field types inconsistent with the image, as long as they are unified.Now

Several methods of MySQL database backup (1/3)

Back up the MySQL Tutorial database tutorial commands mysqldump-hhostname-uusername-ppassword databasename > Backupfile.sql Backing up the MySQL database for a deleted table formatBacking up the MySQL database is a format with a deleted

MySQL CONCAT () connection string detailed description

MySQL tutorial concat () connection string detailed descriptionIn some cases you want two or more strings, in MySQL there is a string concatenation function concat (), let's talk about how it is used. Concat syntaxConcat (STR1,STR2,...) Simple

MySQL temporary tables and memory tables create query deletion and considerations

MySQL tutorial temporary tables and memory tables create query deletions and considerationsThe temporary table and the engine of the memory table are different, the temporary table defaults to the MyISAM, and the memory table is memory, the

MySQL and Apache consume a lot of CPU problem solving method

After restarting the server, use the top command to see which processes are consuming so much CPU usage. Stare at a good more than 10 minutes, the main CPU-consuming process has two, one is MySQL, the other is Apache. As you can see from the figure

SQL statement for counting the number of items in the MySQL price range

In Excel, we can use this formula to calculate the price segment of each price, and then use the pivot table to get the data:= LOOKUP (H2, {0, 49.99, 99.99, 149.99, 199.99, 249.99; "050 & Prime;," 100 & Prime;, "150 & Prime ;, "200 & Prime;," 250 &

High IO usage in MySQL

1. Log generation performance impact:The direct performance loss caused by log records is the most expensive IO resource in the database system. MySQL logs include ErrorLog, UpdateLog, Binlog, QueryLog, and SlowQueryLog. Of course, the update log is

MHA easily implements MySQL high-availability configuration

Online switching is also supported. Switching from the current running master to a new master takes only a short time (within 0.5-2 seconds). In this case, only write operations are blocked and read operations are not affected, easy to maintain host

How to optimize Mysql join queries

MySQL supports SQL subqueries. This technique can use the SELECT statement to create a single column query result, and then use this result as a filter condition in another query. Subqueries can be used to complete SQL operations that require

MySQL error 1418 cause analysis and solution

When using mysql to create and call stored procedures, functions and triggers, the error code is 1418.ERROR 1418 (HY000): This function has none of DETERMINISTIC, no SQL, or reads SQL DATA in its declaration and binary logging is enabled (you *

Mysql random RAND and group by optimization

I recently saw an article about mysql optimization. I would like to record and share the optimization methods used in two of them.Group by optimizationSELECT goods_id, count (*) FROM t group by goods_id;BY default, MySQL applies to all group by col1,

Add a new user to the MySQL database

After MySQL is installed on VPS, the default user is root @ localhost. The simplest way to add a new MySQL User is:Execute the following statement in phpmyadmin (add points at the end of the statement; no ):Grant all privileges on DBNAME. * to

How to use ntfs-format datadir in mysql in ubuntu

First, describe the background. There are two local hard disks,120 gb ssd = 60 (linux ext4) + 60 (win7 NTFS)2 TB mechanical hard drive = 600 gb ntfs + 600g ntfs + 700G NTFSIn order to take care of Windows 7's compatibility with ext partitions, we

How to uninstall mysql and install mysql in ubuntu

Three installation methods:1. install sudo apt-get install mysql-server from the Internet. After the environment variables have been automatically configured, you can directly use the mysql command.Note: We recommend that you change cn

Configure nginx + php + mysql server in Ubuntu

1. Install php5 The code is as follows:Copy code Apt-get install php-pear php5-cli php5-common php5-cgi php5-mysql php5-gd php5-dev 2. Install mysql5 The code is as follows:Copy code Apt-get install mysql-server mysql-client

Install and configure the LAMP server in yum in CentOS 6.4 (Apache + MySQL + PHP5)

 Preparation:1. Configure the firewall and enable port 80 and Port 3306.Vim/etc/sysconfig/iptables-A input-m state -- state NEW-m tcp-p tcp -- dport 80-j ACCEPT # Allow port 80 to pass the firewall-A input-m state -- state NEW-m tcp-p tcp -- dport 33

Total Pages: 3233 1 .... 1140 1141 1142 1143 1144 .... 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.