The MySQL example shows my article in "Program and Code" in this website and the following routines:
Foreground HTML
You can take some time to fill in the form, or you can use electricity
Sub-mail contact,likai333@21cn.com.
Your name:
Environment: MySQL Sever 5.1 + MySQL command line tool
Issue: Create a user, authorize by using the command line
1. Create User:
Command: CREATE USER username identified by ' password ';
Description: username--You will create the username,
Environment
RedHat Linux 9 + vwware 8.0 + SSH 3.2.9 + Putty 0.62 + MySQL 3.2
Problem
MySQL Change Root password
Solve
mysqladmin-u user-p Password
password
User is username, password is new password
The command prompts you to enter the
Hash index is implemented based on hash table, only queries that accurately match all the columns of the index are valid, and for each row of data, the storage engine computes a hash code for all the indexed columns, and the hash codes for the
A simple SQL statement actually took the 15.87 sec,
Wrote
Mysql> SELECT x.loc as Loc, x.lastmod as Lastmod, x.changefreq as Changefreq, X.changecount as Changecount, x.priority As priority, x.language as language, X.ac cess as Access, x.status as
Don't say much nonsense. See for yourself. After a while there is time to perfect and perfect. ^-^
SQL code
CREATE TABLE ' vardata ' (
' Id ' int () NOT NULL auto_increment,
' name ' varchar (255) DEFAULT null,
' time ' datet IME not
We know that the B-tree index is ordered, so can you complete the order by operation by simply scanning the index? The answer is yes, but the conditions are also harsh: only if the column order of the index is exactly the same as the order in which
Similar to Oracle's parameter file, MySQL's option file (such as MY.CNF) is used to configure the MySQL server, but unlike Oracle, in MySQL, the official call variable (varialbes), but actually called the parameter is also OK, Just understand that
When stored procedures, functions, triggers, and views are created, not only by the creator to execute, but also by other users, in other words, the performer may not be the creator itself, so how does MySQL do permissions checks when executing the
Create
CREATE table user (id int (one) not NULL auto_increment,
Name varchar (255),
Birthday Date Default NULL,
PRIMARY KEY (Id,birthday))
Partition by range (birthday)
(partition P0 values less than (' 1985-12-26 '),
Partition P1 VALUES less
MySQL User management
First, create and delete users
Mysql> select Current_User (); Querying the current logged-on user
+----------------+
| Current_User () |
+----------------+
| Root@localhost |
+----------------+
No permissions were
MySQL AHI (Adaptive Hash Index): No sacrifice of any of the features and reliability of things;
According to the matching pattern of the search, MySQL uses the first half of the B-tree index key (the part that can be found with Btree index) to set
InnoDB and MyISAM are the most commonly used two table types in MySQL, each with its own pros and cons, depending on the specific application. The basic difference is that the MyISAM type does not support advanced processing, such as transaction
MySQL servers (3.23 to the highest version of the series, all 4.0 versions, and later) support transactions using the InnoDB and BDB transaction storage engines. InnoDB provides comprehensive acid compatibility.
Other non-transactional storage
When performing a rollback (rollback), if you receive the following message that 1 or more tables used in the transaction do not support transactions:
Warning: Some of the changed non-transactional tables cannot be rolled back.
These
Parsing: A method for establishing a foreign key in MySQL
Example:
1. Main Table
DROP TABLE IF EXISTS `biao`; CREATE TABLE `biao` ( id` int(11) NOT NULL auto_increment, title` varchar(11) default NULL, content` varchar(11) default NULL, PRIMARY
Q: How to solve MySQL 8 hours after the idle connection timeout problem?
A: When the application and the database connection, if more than 8 hours, the application sentence will not access the database, the database will be a broken connection
What would it be like if you were a racing driver and could switch the engine immediately without having to drive into the garage? What the MySQL database does for developers is like pressing a button to change the engine; it lets you choose the
The start service failed because the computer was not erased. Specific 1. Uninstall 2. Computer "search" all MySQL files note that hidden files can also be searched for all deletions. 3. Clear the registry for MySQL and subkeys. 4. Firewall problems
1. Download the generic binary package to the address belowwget http://mirrors.sohu.com/mysql/MySQL-5.5/mysql-5.5.53-linux2.6-x86_64.tar.gz2, the specific installation documentationHttp://dev.mysql.com/doc/refman/5.5/en/binary-installation.htmlShell>
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