only the usage permission. Further authorization is required using the grant command. You can also use the grant command to create an account directly to see subsequent demos. The following is an explanation of usage in the official MySQL manual. The USAGE privilege specifier stands for "no privileges." It is used at the global level withgrant to modify account attributes such as resource limits or SSL characteristics Witho UT affectingexisting account privileges.--Current demo environment [ema
processing threads and business processing threads, so our test case also configures the business execution thread pool to examine the scheduling effectiveness of their thread pools.
Mina thread pool Set io processor:ioacceptor acceptor = new Niosocketacceptor (Integer.parseint (Iopool)) ; Executor:acceptor.getFilterChain (). AddLast ("ThreadPool", New Executorfilter (Integer.parseint OL)); Netty thread pool Set io worker:new nioworkerpool (Executors.newcachedthreadpool (), Integer.parse
Fuzzy query likeReplace any character with%Where goods_name like ' Nokia% ';Clear a few characters on the underlineUnderline wildcard single character,% wildcard anyExercisesTurn a bunch of 10, 20, and 30 numbers into 10,20,30.Which is to remove single digitsQuery out Select outThe MySQL function is used.Floor returns the largest integer less than xLet a bunch of numbers in addition to 10, then floor is a number, also took the 10 digits, then multiply 10It becomes 10,20,30.That means you can upd
Tags: mysql process function InnoDB featuresTo create a table and insert a data statement:Mysql> CREATE TABLE salary (userid int,salary decimal (9,2));Query OK, 0 rows affected (0.11 sec)Mysql> INSERT into salary values (1,1000), (2,2000), (3,3000), (4,4000), (5,5000), (1,NULL);Query OK, 6 rows affected (0.13 sec)Records:6 duplicates:0 warnings:01.if (value,t,f) function: Above 2000 is considered ' high ' a
The MyISAM storage engine only supports table locks, which is the only supported lock type in MySQL versions. With the increasing requirements of applications on transaction integrity and concurrency, MySQL began to develop a transaction-based storage engine, later, we gradually saw the support for page locks for the bdb storage engine and the InnoDB Storage engine that supports row locks (InnoDB is actually a separate company and has now been acquired by Oracle ). However, MyISAM Table locks ar
[Transferred from: http://space.itpub.net/519536/viewspace-631445]
When impdp is used to import a database, if a table already exists, Oracle provides the following four processing methods:A. Ignore (Skip, default Act );B. Add (append) based on the original data );C. Drop the table first, create the table, and insert data (replace );D. truncate first, and then complete data insertion (truncate ).
Feel the effects of these methods for your reference.
1. Description of the table_exists_action para
this parameter is used to ensure that data is directly written to the hard disk]
Example:
dd if=/dev/zero of=testfile bs=1M count=512 conv=fdatasync
The result on my VM is as follows:
[root@localhost ~]# dd if=/dev/zero of=testfile bs=1M count=512 conv=fdatasync512+0 records in512+0 records out536870912 bytes (537 MB) copied, 19.6677 s, 27.3 MB/s
We recommend that you run this command multiple times to get the average value. Before executing the preceding command, we recommend that you use the
Memory: memory usage may be the most important factor in system performance. If the system frequently switches pages, the memory is insufficient. "Page Swap" is a unit called "page". It moves code and data blocks of a fixed size from Ram to a disk to release memory space. Although some page switches enable Windows 2000 to use more memory than actually, they are acceptable, but frequent page exchanges will reduce system performance. Reducing page switching significantly increases the system respo
Analysis on the solution of creating and last updating timestamp fields in MySQL, mysql FieldBefore writing this article, clarify my MySQL version.
mysql> SELECT VERSION();+------------+| VERSION() |+------------+| 5.5.29-log |+------------+1 row in set (0.00 sec)
This is the requirement. One table has a created_at field to create the timestamp of this record, and the other field updated_at record to update the timestamp of this record.
Let's try th
(Binary) ends.
2. Different character sets and validation rules can control case sensitivity.
MySQL5.1 uses different character sets or verification rules in the same server, database, or even table to mix and define strings. Character Set and verification rules have four default settings: Server-level, database-level, table-level, and connection-level.
2.1 server level
MySQL determines the server Character Set and server verification rules as follows:
(1) modify the configuration file/etc/my.
: Shows the activity of the process during the sampling time-y: Displays the activity of the end device during the sampling time-W: Displays the state of the system swap activity during the sampling time-O: The command result is stored in a binary format in the specified fileInterval: Sampling interval time, required parametersCount: Number of samples, default 1Example: Sar-u 1 3[Email protected]:~$ sar-u 1 3Linux 2.6.35-27-generic (user1-desktop) March 05, 2011 _i686_ (2 CPU)09:27 18
processo The total amount of virtual memory used by the VIRT process, in kilobytes. Virt=swap+resThe P swap process uses the size of the virtual memory, which is swapped out, in kilobytes.The size of the physical memory, in kilobytes, that the Q RES process uses and has not been swapped out. Res=code+dataR code executable code occupies the physical memory size, in kilobytesThe amount of physical memory that is used outside of the S data executable code (data segment + stack), in kilobytesT SHR
validation rules to control case sensitive
MySQL5.1 uses different character sets or collation rules in the same server, the same database, or even in the same table to mix the definition strings. Character set and proofing rules have 4 levels of default settings: Server, database, table, and join.
2.1 Server-level
MySQL determines the server character set and the server proofing rules as follows:
(1) Modify the configuration file/etc/my.cnf
Add under [mysqld]: Collation_server = Utf8_bin
Total number of successful lookups in the /internet information Services global/file cache Hits% file cache.
/process (inetinfo)/private Bytes The current number of bytes that the Http/asp service has allocated but cannot share with other processes. If the value is always large and increasing, it is possible that the server-side object is leaking.
/process (inetinfo)/% Processor time displays the processor times used by the threads of the Inetinfo process
/Process (inetinfo)/page faults/
.host.com
Operating system version
RHEL Server6.1 64-bit system
Version of the package to use
Mysql-5.5.29-linux2.6-x86_64.tar.gz
percona-toolkit-2.1.7-1.noarch.rpm
The first step is to build the environment. Modify the configuration file, note that each server-id inconsistent;
Copy Code code as follows:
[Root@serv01 ~]# cat/etc/my.cnf | grep Server-id
Server-id = 1
#server-id = 2
[Root@serv01 ~]#/etc/init.d/mysqld start
Starting MySQL success!
[Root@serv08 ~
Tags: log content properties same query serve Ecif Sele 1.0How do I represent the current time in MySQL?In fact, the expression is still quite a lot of, summarized as follows:Current_timestampCurrent_timestamp ()Now ()LocalTimeLocalTime ()LocaltimestampLocaltimestamp ()Ii. Comparison of Timestamp and datetimeA complete date format is as follows: Yyyy-mm-dd Hh:mm:ss[.fraction], which can be divided into two parts: the date part and the time part, where the date part corresponds to "YYYY-MM-DD" 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.