Mysql Explain here to do a comprehensive collation of the data.
I. Grammar
Explain
For example: Explain select * from T3 where id=3952602;
Two. Explain output interpretation
+----+-------------+-------+-------+-------------------+---------+----
In the process of using a database, it is sometimes necessary to change its table structure, including changing the name of the field, or even changing the relationship between different database fields. The command that can achieve this change is
MySQL, the same table multiple timesatmp fields set default, often an error.
A table can have only one field that sets default.
But sometimes only one field setting default also complains.
Will report: incorrect table definition; There can be
Installation of MySQL:
1. Add User Group#> Groupadd MySQL2, add Users#> useradd-r-G MySQL MySQL3, switch to the installation directory (take/usr/local as an example)#> cd/usr/local4, Decompression (Mysql-5.5.22-linux2.6-i686.tar.gz has been copied
In the MySQL database system, char and varchar are very common, and they are two very similar, are used to save relatively short strings, such as the preservation of the article title, message, email, user name and so on.
The main difference
Its grammatical structure is:
The code is as follows
Copy Code
TRUNCATE [TABLE] Tbl_name
Here's a simple example,
I want to delete all the records in the Friends table, you can use the following statement:
1, to root add a password pass123:
First enter the directory Mysqlbin in DOS, and then type the following command
The code is as follows
Copy Code
Mysqladmin-u Root-password pass123
Note: Since Root does not
MySQL default root user only local access, not remote connection management MySQL database, Linux How to open MySQL remote connection? Set the steps as follows:1. Grant command create remote connection MySQL authorized user Itlogger
The
First MySQL updates a field of data, which is generally written like this:
UPDATE mytable SET myfield = ' value ' WHERE Other_field = ' other_value ';
You can also use in to specify the records to update:
UPDATE mytable SET
The Oracle tutorial you are looking at is: MySQL Security Guide (1) (turn). MySQL Security Guide
Author: Yan Zi
As a MySQL system administrator, you are responsible for maintaining the data security and integrity of your MySQL database system.
Troubleshoot the Rails bundle install MySQL gem package
Environment
Ubuntu 12.04ruby-2.1.1
First create a new project that executes bundle on the project install
Tips
Copy Code code as follows:
...
Make sure that
Gem install
Recently wrote some mysql stored procedures and functions, found that the online more valuable documents are very few, most of them are copied from the manual, some practical problems can not be solved, such as the use of variables as table
1, the index is not well established;
2, the SQL writing is too complex;
3, configuration error;
4, the machine is really not load;
1, the index is not built well
If you see the CPU consumed by MySQL is very large, you can use the MySQL client tool
I said PHP can not mention MySQL, but to talk about MySQL, then PHP is bound to be mentioned. The rapid rise of PHP can not be separated from MySQL, and MySQL is widely used, but also closely related to PHP.
The following is a detailed analysis of
Installing with the MSI installation packageDownload the corresponding 32-bit or 64-bit installation package according to your operating system. To do this, follow these steps:MySQL Database official website of
Socket file: The file you need when you connect using a UNIX domain socket.PID file: The process ID file for the MySQL instance.MySQL table structure file: Used to store MySQL table structure definition file.Socket fileLocal connection to UNIX
LAMP installation is often done by developers, and RPM installation is relatively easier. The installed rpm Package and dependent package can be found on the installation disc, of course, you can also download and install it online, such as in
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