MySQL bit type! What better method do you have? If there are only two types of promised data in MySQL, when setting its data type, we will first think of bit, which occupies less characters, is fast, and really cool! When this data type is inserted,
By default, MySQL is installed on Ubuntu with the character set Latin1.
1. View character set support
Show Character Set;
2. View character set variables
Show variables like "character_set % ";
3. Set the default Character Set
To solve garbled
In MySQL, you cannot use the + operator to connect strings. To useConcat ()Function.For example:Update cdb_ex_site set viewlog = Concat (viewlog, 'HTTP: // www.cnblogs.com/qiantuwuliang /')The preceding statement is the string http://www.cnblogs.com/
By default, Postfix in RHEL does not support MySQL.The Postfix needs to be re-compiled, but the Postfix is linked with other software, so I decided to use the SRC of the Postfix provided by RHEL to solve some problems after installing the source
We are familiar with the basic operations of databases and database tables. Now let's take a look at how to operate multiple tables.
Multi-Table operations
Multiple tables may exist in a database, which are associated with each other. We will
MySQLDatabase Engine type
The database engine you can use depends on how MySQL is compiled during installation. To add a new engine, you must recompile MySQL. By default, MySQL supports three engines: isam, MyISAM, and heap. The other two types of
If you are only interested in MySQL, you can copy this short article. If you want to configure a connection pool of other database types, you can also simply modify the parameters to use it.
1. install Tomcat
Refer to the installation wizard of
MySQL version used: mysql4.0.x
MASTER: 192.168.1.102SLAVE: 192.168.1.109
Modify C:/winnt/My. ini for Windows host. Modify/etc/My. CNF for Linux host.
1. Master operations1. modify my. ini##############Server-id = 1Log-bin =
1. select the most suitable field attributeMySQL can support access to large data volumes, but generally, the smaller the table in the database, the faster the query will be executed on it. Therefore, when creating a table, we can set the field
Apache + PHP + MySQL + Tomcat performance optimization skills (original)
Author: Yu Chao EMail: yuchao86@gmail.com
1. Apache performance optimization skills(1) The flat configuration uses the independent cache disk mod_disk_cache to set the cache
Linux has been quite depressing recently. The following article is very helpful, in red ~
Recently, the mmm architecture of MySQL has been launched, and I want to make a try. I think there is a virtual IP address like LVS in it. I started to use
1. Benchmark Test and Performance Analysis
Benchmark Testing and performance analysis are two basic methods for identifying system bottlenecks:
The benchmark test is used to measure the overall performance of the system. This helps to determine the
1. in the MySQL database, the datetime type is used to store the time. When reading this field using JDBC, The resultset should be used. gettimestamp () to get a java. SQL. timestamp type data. 2. In this case, neither resultset. getdate () nor
When updating records, mysql must add new values on the original values.
For example, there was a record:
Id
Country
A784829a-c0dc-4cb6-88a9-8c376fab83a6
USA
Update the country field now: Add "$ + $ UK" based on
After configuring the PHP environment on the basis of the above article, I found that there was still a problem during the discuz forum!
Recommended function name check resultsMysql_connect () is not supported. Check whether the mysql module is
Show status provides the server status information (like mysqladmin extended-STATUS ). The output is similar to the following display, although the format and number can be a bit different:
+ -------------------------- + -------- +| Variable_name |
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/* Add three common modes by using the mysql grant command */
1. grant all PRIVILEGES on *. * to 'test' @ 'localhost' IDENTIFIED by '123'
2. grant
1. select the most suitable field attributeMySQL can support access to large data volumes, but generally, the smaller the table in the database, the faster the query will be executed on it. Therefore, when creating a table, we can set the field
MySQL date type: Date Format, storage space occupied, and date range comparison.Date type storage space date format date range-----------------------------------------------------------------------------------Datetime 8 bytes YYYY-MM-DD HH: MM: SS 10
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