Authorization to the user' User1 ' @'192.168.1.%'wangshaojun';Specify the library, user name User1 all under the network segment, password WangshaojunPermissions are not valid after authorization, refresh permissions> Flush Privileges;View database
1. Installing CMakeMySQL has been removed from version 5.5, and is replaced by the CMake tool./configure.Therefore, we first need to compile and install the CMake tool in the system source code.# wget
Common operations for MySQL1. LoginMysql-uroot-pdaixuan2. View the databasemysql> show databases;+--------------------+| Database |+--------------------+| Information_schema || Discuz || MySQL || Test |+--------------------+3. Switch
Ext.: http://jingyan.baidu.com/article/495ba841ef412d38b30edeb2.htmlMySQL is a relational database management system, and MySQL is one of the best RDBMS (relational database Management system, relational data management systems) application software
When querying, you can take an alias for the table and the field. This alias can be substituted for its specified table and fieldAlias a tableMysql> SELECT * fromDepartment D - WHEREd.d_id=1001;+------+-----------+--------------+-------------+|d_id|
I. Overview of Corosync1, what is AIS and Openais?AIS is an application interface specification, a collection of open specifications for defining application interfaces (APIs) that serve as middleware to provide an open, highly portable program
Here are four ways to use fuzzy queries in MySQL:1,%: Represents any of 0 or more characters. Can match any type and length of the character, in some cases, if Chinese, please use two percent sign (%).For example SELECT * from [user] WHERE u_name
How to restore MySQL after mistakenly deleting ibdata1If you mistakenly delete the MySQL innodb related data file ibdata1 and log file ib_logfile* in the online server,How should it be recovered?It should be a cold sweat, right?======================
MySQL database backup and migration is a frequently needed task in the DBA's daily work. Backup generally by physical backup and logical backup two, for the physical backup with xtrabackup, table data and user rights are all back up and restore, if
First, how to manage the range and list partitionTake the partition table for exampleCREATE TABLEMembers (IDINT, fnameVARCHAR( -), lnameVARCHAR( -), DOB DATE) PARTITION byRANGE ( Year(DOB)) (PARTITION p0VALUESLess THAN (1970), PARTITION p1VALUESLess
A strange problem arises in the calculation of the date:If the current date is February 29 of a leap year, then for the current date + N years, then the corresponding date becomes February 28. But this does not accord with our common sense,
1. Download the packageSee how many bits of Linux areUname-ix86_64 64-bit or i386 32-bitNot installed wget using Yum installationYum Install Wget-ySwitch to the specified directory, and the package is downloaded to the directorycd/usr/local/src/64
The go language uses MySQL database 1, MySQL driverGo in support of MySQL driver is more, there are several, some are support database/sql standard, and some are using their own implementation interface, commonly used are the following:
Clevercode found a simple way to export MySQL data into CSV format.1) MYSQL-E usage profileInstructions for use: Execute an SQL statement and exit.Format examples:1) mysql-uroot-p123456-h 192.168.10.210-p 3306 db_logs-e "show databases;"2)
Summary of MySQL Partitioning Based on Time FieldsMySQL supports four partition types: RANGE, LIST, HASH, and KEY. RANGE can be divided into Native RANGE and range columns. LIST is divided into Native LIST and list columns. HASH is divided into
Summary of TIMESTAMP and DATETIME in MySQL, timestampdatetime
1. How does MySQL indicate the current time?
In fact, there are many expressions, which are summarized as follows:
CURRENT_TIMESTAMP
CURRENT_TIMESTAMP ()
NOW ()
LOCALTIME
LOCALTIME
Mysql while, loop, and repeat loops.1. while Loop
DELIMITER $ drop procedure if exists 'SP _ test_while '$ create procedure 'SP _ test_while' (IN p_number INT, # The number of times to be cyclically IN p_startid INT # the actual value of the loop)
MySQL Partition Table Management ~ 1I. How to manage RANGE and LIST partitions take this partition TABLE as an example: CREATE TABLE members (id INT, fname VARCHAR (25), lname VARCHAR (25), dob DATE) partition by range (YEAR (dob) (PARTITION p0
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