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 | |
in Set (0.00 sec)Mysql> SELECT @ @session. sql_mode\g;1. Row ***************************@ @session. sql_mode:no_unsigned_subtraction1 row in Set (0.00 sec)You can see that the current global Sql_mode setting is empty, and the current session is set to No_unsigned_subtraction. You can set the current Sql_mode to strict mode by using the following statement.mysql> SET GLOBAL sql_mode= ' strict_trans_tables '
:60 queries per second avg:0.053--------------Mysql>Create a test table for Scott users in the Oracle database:mysql> use MySQLReading table information for completion of table and column namesCan turn off this feature to get a quicker startup with-aDatabase changedMysql> Show Database;Error 1064 (42000): You have a error in your SQL syntax; Check the manual-corresponds to your MySQL server version for the right syntax-use near ' database ' at line 1mysql> show databases;+--------------------+|
13.4 MySQL User managementMySQL Create user and authorizegrant all on *.* to ‘user1‘ identified by ‘passwd‘;grant SELECT,UPDATE,INSERT on db1.* to ‘user2‘@‘192.168.133.1‘ identified by ‘passwd‘;grant all on db1.* to ‘user3‘@‘%‘ identified by ‘passwd‘;show grants;show grants for [emailprotected];Grant will not be logged in the command history, not secure.Operation ProcessMysql> Grant All on * * to ' user1 ' @ ' 127.0.0.1 ' identified by ' 123456a '; Query OK, 0 rows Affected (0.00
? The namespace of the aspx default import can be referenced directly and imported by itself using a different namespace. Default namespace System System.Collections System.Collections.Specialized System.Configuration System.Text System.Text.RegularExpressions system.web System.Web.Caching System.Web.Se Curity System.Web.SessionState System.Web.UI System.Web.UI.HtmlControls System.Web.UI.WebContr OLS 12, can I create a server control
Length truearp on Address Resolution Protocol (ARP) Trueautho Rity Authorized Users truebroadcast broadcast Address TRUEMTU 1492 Maximum IP Packet Size for this Device truenetaddr Internet Address TRUENETADDR6 IPv6 Internet Address truenetmask Subnet Mask Trueprefixlen Prefix Length for IPv6 Internet Address trueremmtu 576 Maximum IP P Acket Size for REMOTE Networks Truerfc1323 enable/disable TCP RFC 1323 Window S
());Byte[] result = Md5m.computehash (data);String hexstring = converttohexstring (result);Console.WriteLine ("MD5 HASH: {0}", hexstring);}Debug.WriteLine ("MD5:" + SW. Elapsed.tostring ());}static void Main (string[] args){var sw = stopwatch.startnew ();Generateaeskeys ();Generatemd5hashes ();Debug.WriteLine (SW. Elapsed.tostring ());Display the results and wait for the user to press a keyConsole.ReadLine ();}}}LISTING 2-3: Simple serial AES keys and MD5 hash generatorsusing system;using syste
planning to production. Our platform uses cutting edge technologies in both frontend and backend. It supports a broad range of payment methods worldwide, covering credit cards, electronic payment, mobile payment, prepaid Cards, bank transfer, direct debit, and so on.You'll be challenged with complex business logic, scalability, performance, reliability, operability, supportability, SE curity, fraud prevention, data redundancy, business intelligence,
planning to production. Our platform uses cutting edge technologies in both frontend and backend. It supports a broad range of payment methods worldwide, covering credit cards, electronic payment, mobile payment, prepaid Cards, bank transfer, direct debit, and so on.You'll be challenged with complex business logic, scalability, performance, reliability, operability, supportability, SE curity, fraud prevention, data redundancy, business intelligence,
part 3:ipv4 range strategy
Using Amazon DynamoDb for IP and co-ordinate based geo-location services part 4:lng/lat range strategy
Using Amazon DynamoDb for IP and co-ordinate based geo-location services part 5:creating The IPV4 source file for Dynamod B
Using Amazon DynamoDb for IP and co-ordinate based geo-location services part 6:uploading IPv4 range to DynamoDb
Using Amazon DynamoDb for IP and co-ordinate based geo-location services part 7:querying the IPV4 range table
Using Amazon
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.