Process of using the database:1. Registration drive;2. Use the Drivermanager.getconnection method to obtain the Connection object con;A method:3. Use the Createstatement () method of the Connection object to get the object stmt that can execute the
Colloquial business : refers to a set of operations that are either executed successfully or not executed .----> atomicity Other sessions are not able to see the process of intermediate changes until all operations have been completed--
Index : is the directory created for the data .function : can speed up the queryNegative effect : reduce the speed of adding and deleting .Principles of Index creation :1: do not over-index2: Add on the column with the most frequent where
Error Environment:MySQL 5.0: UTF8 encodingJdbc:mysql-connector-java-5.1.5-bin.jarError in case of emoticons:Java.sql.SQLException:Incorrect string value: ' \xf0\x9f\x98\x84 ' for columnBecause the emoji in some terminals, such as ios5.0 above, is
"SELECTn1.id, N1.nav_name, N1.nav_info, N2.id iid, N2.nav_name nnav_name fromCms_nav N1 Left JOINCms_nav n2 onN1.pid=n2.idWHEREn1.id='$this->id' ORN1.nav_name='$this->nav_name'LIMIT1"The Chinese military id=26 its pid=1Find
Syntax Description:Way One:Case value when [compare_value] and then result [when [compare_value] then result ...] [ELSE result] ENDWay two:case is [condition] then result [when [condition] then result ...] [ELSE result] ENDUse the Demo sample:Mysql>
The MySQL installation under Windows is divided into installation files (installed with Windows install), and one way to register a service through Windows (or not to register a service). You start and close each time you go through the Windows
Concepts similar to functions,is to encapsulate a piece of code.,when it comes to executing this piece of code,,You can call this stored procedure to implement the.inside the encapsulated statement body,can be usedIf/else, Case,whileand other
http://hi.baidu.com/wylinux/item/cbc458c2984381300831c651 View Index CommandsMysql> Show index from Tblname;Mysql> show keys from Tblname;· TableThe name of the table.· Non_unique0 if the index cannot include a repeating word. 1 if it is possible.·
http://blog.chinaacc.com/garfiled606/blog/20100119-1909060539272.html Client connections:Go to command line, Windows cmd, connect:Mysql-u User name-p password-H server IP address-P server-side MySQL port number-D database nameAttention:(1) Server
Accidentally saw "fotolog:scaling the world\ 's largest Photo Blogging Community", only to find a lot of database optimization truth is very simple, to high level is when you face the problem, whether really made their own thinking, And not just the
1.% allow connections from any IP localhost to allow native connections2. dbfor Studio MySQL 6.2.280 % of cases, use Backup databases, pour out the SQL file, import in another database (RESTORE database) does not go in localhost, using Backup
Delete behavior is issued at 4 o'clock in the morning, Just landed during the backup, because 5.5 had MDL (Meta data Lock), so when –single-transaction, the tables that were manipulated within the transaction would hold the MDL and therefore not be
Installation
Server installation. Use command: sudo yum-y install Mysql-server
Client Installation. Use command: sudo yum-y install MySQL
Set boot up
Sudo/sbin/chkconfig--add mysqld
Sudo/sbin/chkconfig
MySQL database usage process, code explanation, mysql usage process
Database usage process:1. Registration driver;2. Use DriverManager. getConnection to obtain the connection object con;Method:3. Use the createStatement () method of the connection
MYSQL stored procedures and events
About the creation of stored procedures and events in mysql
The following stored procedure mainly implements the function of querying the data in the table half a year ago. If yes, It stores the data in the file
Mysqlbinlog parameter settings1. mysql has many system variables that can be set. Different system variables may lead to different system running states. Therefore, mysql provides two groups of commands to view the system settings and running status.
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