The JSP page uses the following three statements to ensure GBK encoding.
Use the following statement to connect to a database:String sconnstr = "JDBC: mysql: // localhost: 3306/test? User = Michael & Password = 123456 & useunicode = true &
Query_cache_min_res_unit: query the minimum block size (in bytes) allocated by the cache)
Query_alloc_block_size: QueryDuring analysis and executionMemory block size allocated to the created objectQcache_free_blocks indicates the number of free
During database maintenance recently, data cannot be stored into the database during data parsing. The reason is that MySQL transactions have deadlocked. I restarted MySQL several times before.
Recent frequent occurrences. So find a method.
Select
MySQL provides many table types for selection, including MyISAM, isam, heap, berkeleydb, and InnoDB. Each table Type of MERGE table type has its own attributes and advantages. The following is a brief discussion.
MyISAM Table type:
MyISAM
Table (
A very simple paging technologyMySQL+ JSP uses the MySQL limit parameter
Advantages: 1. I figured out 2. I used the MySQL database's own limit.
Disadvantage: only the next page function is implemented.
Int cateid = 0;If (request. getparameter ("
MySQL variables related to character sets include
SQL: Show variables like '% character %'
+ -------------------------- + ----------------------------------------------- +| Variable_name | value |+ -------------------------- + ---------------------
I found a lot of information about using MySQL C APIs and examples on the Internet. It's not for VC, it's for BCB, or for Linux, and I 've always wanted to use standard C ++ for something in WIN (the nickname is portability ). So I want to use MySQL
1.Character set (character set) is the ing from binary encoding to the specified symbol set;
Collation is a set of Character Set sorting principles;
2.If you run show variables like "% character %" on the mysql client, the character set setting in
The syntax of the grant statement is as follows:Grant privileges (columns)On whatTo user identifiedby "password"With grant option
User authorizationMysql> grant rights onDatabase. * to user @ host identified by "pass ";
Example 1:Add a user named
1. Command Line
Preface:
To know the space occupied by a table, it is equivalent to the data size + index size.
Show databases; (view the number of databases, also known as table Schema; it is a bit of a string)
1.1 view the size occupied by a
1. Introduction and configuration of mybatis + spring + MySql
Mybatis 1. Introduction and configuration of mybatis + spring + MySql
Mybatis 2. SQL statement ing file (1) resultmap
Mybatis 2. SQL statement ing file (2) addition, deletion,
1. Install the following three packages in sequence. 2nd and 3 packages depend on 1st packages.
Rpm-ivh pkg-name
Mysql-gui-tools-5.0r12-1rhel3.i386.rpm
Mysql-administrator-5.0r12-1rhel3.i386.rpm
Mysql-query-browser-5.0r12-1rhel3.i386.rpm
I. operation data (query)
1. Distinct
Syntax: select [distinct] column name [, column name]... from Table Name
Distinct is used to filter duplicate records. If distinct is followed by multiple columns, it filters out duplicates after multiple
TableStatementDescription
Create procedureCreate a table stored in the MySQL database.
Create FunctionCreate a user-defined function, especially the stored procedure of the returned data.
Alter procedureChange the pre-specified stored procedure
Open the mysqlinstallation file mysql-5.0.27-win32.zip, decompress the file, and run “setup.exe. The following interface is displayed:
Start the MySQL Installation Wizard and press "Next" to continue
Select the installation type, which has three
1. view the port
Netstat-
2. log on to the MySQL server
Mysql-u root-P mysql-hlocahost-u root-P
3. Select a database
Show Databases
4. Set character sets
Set names 'gbk ';
5. query tables in the database
Show tables;
6. Set character sets
Set names '
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