INSERT permission. For each account, create user creates a new record in the Mysql.user table with no permissions. If the account already exists, an error occurs.Using the optional identified by clause, you can specify a password for the account. The user value and password are given the same method as the GRANT statement. In particular, to specify a password in plain text, you need to ignore the password keyword. To specify the password as a mixed value returned by the password () function, yo
Tags: pythonmysql # Job content ' 1, query the name of all the courses and the corresponding teacher name 2, query the student table of male and female students each have how many people 3, query physical results equal to 100 of the student's name 4, query average score of more than 80 students ' names and average results 5, query All students of the school number, name, select the number of courses Total 6, inquires the number of teachers surnamed Li 7, query did not report Li Ping Teacher Cla
Label:Original: SQL Server R2 Performance counter detailed list (ii)SQL Server Buffer Partition object: provides counters to monitor how SQL Server uses available pages
SQL Server Buffer Partition counters
Description
Free list Empty/sec
The number of times per second that an available page was requested but could not be supplied.
Free list Requests/sec
specifically for the database, and is a fully functional database language. Almost all relational databases have support for SQL statementsSQL Statement Specification:1, case-insensitive (the command suggests capitalization, because during SQL parsing, the database automatically converts lowercase commands to uppercase, and when there is a large number of SQL statements, the conversion generates some overhead)2. Use a semicolon as the ending symbol3, Comments (single line--, multi-line/* */)SQL
% , theCPU is the bottleneck. % Processor time value =100%-Idle Process ratio [ i.e.: idle thread (idle thread)],theCPU is fine when the idle thread is executed. Processor : % User time is the CPU time consumed by the non-core operation of the system , if it is a database server,%user The reason for the large value is probably that the database is sorted or the function operation consumes too much CPU time, so you can consider optimizing the database system. Memory Performance CountersMem
) copied, 15.2154 seconds, 35.3 MB/s 19.5 MB/s + 30.9 MB/s + 35.8 MB/s + 35.3 MB/s the sum of these values to obtain the average (II) hdparm has two parameters:-t: disk Performance Test-T: memory cache performance test. We also recommend that you perform multiple tests to obtain the average value [SQL] [root @ linwaterbin ~]. # Hdparm-t/dev/sda: Timing buffered disk reads: 226 MB in 3.02 seconds = 74.82 MB/sec [root @ linwaterbin ~] # Hdparm-t/dev/sda
management of MySQL usersFirst, view the current Connection account information1.1, view the current database to connect the account informationUse command: Show ProcesslistMySQL [(None)]> show processlist;+--------+-------------+---------------------+--------+---------+------+----------+------------------+| Id | User | Host | db | Command | Time | State | Info |+--------+-------------+---------------------+--------+---------+------+----------+------------------+| 232091 | Zabbix | 172.17.207.88
Tags: 1.7 configuration inux developed differently based on version specific SEL9.1 Creating a Database Command syntax: Create databaseIn the case of MySQL default character set, the database test is as follows: A. Creating a database named ZBF [emailprotected] 08:3120->create database zbf;
Query OK, 1 row affected (0.00 sec)
[emailprotected] 08:3810->show databases like ‘z%‘;
+---------------+
| Database (z%) |
+---------------+
| zbf |
+----------
To 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 ' and the others are lowMysql> Select if (salar
. Select the rack package you need most and press the "OK" button.If the package already exists in your local repository, the wizard only joins the dependency information in Pom.xml, and the contents of the Pom.xml file are as followsXML codeIf the local repository is not available, then the wizard will go to Maven's server to download the rack package and download the log in the console output as follows:06-8-4 09:21 A.M. 07 sec: Local Repository fol
With the advent of LBS applications, it is particularly important to implement location-based search in databases.
First, design a simple data table to store latitude and longitude information:
CREATE TABLE `index` ( `id` int(11) NOT NULL AUTO_INCREMENT, `lat` double NOT NULL, `lng` double NOT NULL, PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8;
After the creation is complete, we can check whether it looks like this.
mysql> desc `index`;+-------+---------+------+-----+---------+---
-pp.noarch[Email protected] 09.mysql]# RPM-UVH mysql-community-*.rpm 2. Start the serviceSystemctl Start mysqldSystemctl Enable Mysqld 3. Information related to MySQL database serviceProcess name MysqldProcess owner and owning group MySQL MySQLDefault port number 3306Transport Protocol TCPConfiguration file/etc/my.cnfDatabase Directory/var/lib/mysqlLog file/var/log/mysqld.log (store initial password) Connect to the database service using the database administrator root user initial password[Emai
(NULL).
Foreign KEY (English: foreign key). In fact, in a relational database, each data table is connected to each other by a relationship, and the parent key (primary key) is placed in another data table as a property to create relationships with each other, and this property is a foreign key.
For example, students and teachers correspond to the teaching relationship, the student data sheet will have a property called the instructor (foreign key), and this value is corresponding to
|+--------------------+| information_schema (mysql) | | Test |+--------------------+3 rows in Set (0.06 sec)MySQL command, you need a semicolon at the end.2. Querying a table for a libraryFirst you need to switch to a library:mysql> Use mysql;database changedThen list the tables:Mysql> Show tables;+---------------------------+| Tables_in_mysql |+---------------------------+| columns_priv | |
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.