Mysql> \s or status can query the MySQL status profile
--------------
MySQL Ver 14.14 distrib 5.1.69, for Redhat-linux-gnu (x86_64) using ReadLine 5.1
Connection id:28035 #连接ID
Current database: #当前数据库
Current User:root@localhost #当前登录用户
As long as the description of several day-to-day use of the query can be optimized place, only special circumstances can be used, do not expect any circumstances are set up, optimization is a long process of practice!
Optimization of maximum and
MySQL Storage engine MyISAM
1, create MyISAM table
Mysql> CREATE TABLE t (ID int, name varchar (), msg varchar ()) engine = MyISAM;
Mysql> Show Table status like "T" \g;
1. Row
Mysqldump BACKUP Database
-B,--databases Dump several databases. Note the difference in usage; In
This case no tables are given. All name arguments are
Regarded as database names. ' Use db_name; ' would be
Included in the output.
MySQL is a very popular small relational database management system. Currently, MySQL is widely used in small and medium Web sites on the Internet. Because of its small size, speed, the total cost of ownership is low, especially the characteristics
When you choose the version of MySQL installed, the second decision to make is whether you are using a source distribution or a binary distribution. In most cases, if you already have a binary distribution on your platform, you may use the binary
Due to competitive prices and ease of use, MySQL is gradually upgrading its market share. The open source community has developed to extend the scope of MySQL usage. NET Framework (. NET Framework) is a database connector that can be used in the.
Retrieving data
Now start writing the first program that retrieves data from a database. We will select the contents of all rows older than 5. Unfortunately we don't yet know how to handle this data, so all we can do is loop through it. This is
When working on a very large table, you may occasionally need to run many queries to get a small subset of a large amount of data, instead of running the query on the entire table, instead of having MySQL find the few records needed each time, it
Install, uninstall MySQL service
Install MySQL Service
Create and edit a bat file with the following contents (E:\mysql\bin\mysqld-nt.exe for installation directory, fill in the actual situation)
@ECHO off
E:\mysql\bin\mysqld-nt.exe-install
net
Recently Discuz released a new version, free, with more people, used to use other forum programs and DISCUZ2.5/ 3.0 of the conversion or upgrade to discuz4.0, can be seen discuz as the Chinese Development of PHP forum program, is indeed very
There are some details to be found during the work, and there is an accumulation here. I am using MySQL 5, which is not necessarily applicable in other versions.
The same characters may occupy different space in different character sets
The
An example of an error occurred:
Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (gbk_bin,IMPLICIT) for operation '=', SQL State: HY000, Error Code: 1267
Reason:
The encoding of the database is different from the coding of the table;
This is a development of the Linux file system, Linux can be the MySQL database as a file system to deal with. The development team would like to get more advice, as the following article translates from:
In fact, this is not the usual file system,
Now that you know how to enter a command, it's time to access a database.
Suppose you have a lot of pets in your home (your "zoo"), and you want to track all kinds of information about them. You can save your data by creating a table and load them
Many server administrators know that the MySQL database management system (RDBMS) is a highly flexible software block with a wide range of startup options that can be used to modify related behavior. However, most people are not aware that standard
The operating environment and resources used by this routine:
1. Tomcat 5.5
2. Mysql 4.1
3. mysql JDBC driver: 3.1.13
(The above procedures can be downloaded directly to the relevant official website)
Step1: First create a listener servlet,
MySQL has a function is log down to run the slower SQL statement, the default is not this log, in order to open this function, to modify the my.cnf or in the MySQL boot when the add some parameters. If you modify inside the MY.CNF, add the following
BodyIn the previous chapter, we learned the installation of MySQL software, since the software has been installed, now formally start the basic knowledge of MySQL learning bar, even if the 0 basis, but also to step by step. Well, the first thing to
Change mysql password in Centos, centosmysql1. Modify MySQL Logon Settings:
# Vim/etc/my. cnfAdd the following sentence: skip-grant-tables, for example:
[Mysqld] datadir =/var/lib/mysqlsocket =/var/lib/mysql. sock2. Restart mysql
# Service mysqld
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