MySQL Installation and configuration

1. Download and unzip2. Create a new My.ini file with the following content[MySQL] # set MySQL client default character set Default-character-set=utf8 [mysqld] #设置3306端口 port = 3306 # Set the MySQL installation directory basedir=d:\mysql-5.7.2

MySQL--Logical statements

1.if statements delimiter \create procedure P1 () BEGIN DECLARE I int default 0 ; if i = 1 then select 1 ; ElseIf i = 2 then select 2 ; else select 3 ; End if ;end \delimiter; 2. Cycleintset num =0whiletendo Select

MySQL's index

What is an index:The index in the database is similar to a catalog in a book, where you can quickly find the information you need without having to read the entire book. In the database, the index enables the database program to find the data that

MySQL----view

View: is a virtual table, which is the essence of your own definition of a query SQL statement, through this view (statement), you each time to get the view data is equivalent to using a SQL statement even query, generate dynamic datasets (data do

Database connection pool (based on MySQL database)

How is JDBC used to ensure that the database client and database server are connected?By code:Conn=drivermanager.getconnection (URL, username, password);JDBC builds a physical connection of the client application to the back-end database through the

Backup of MySQL database with shell script

1234567891011121314151617181920212223242526272829303132333435 #!/bin/bash   #保存备份个数 number=3 #备份保存路径 backup_dir=/root/mysqlbackup #日期 dd=`date+%Y%m%d` #备份工具 tool=mysqldump #用户名 username=mracale #密码 password=456852 #将要备份的数据库 database_name=test   #

MySQL---master-slave replication

1.1 MySQLmaster-slave replication:Environment Planning : There are DB01 servers in the cluster as the database master server , because of the notebook space problem here the Backup server as Slave server , Don't install new machines , save some

MySQL master-slave copy operation notes

On the premise that the data in the MySQL database on the master and slave server should be fully consistent before it can be implemented. If there was only one master MySQL, then the data should be backed up, restored to the MySQL, the data is

MySQL scheduled backup

Backup process Create a backup directory$ cd ~$ mkdir backup$ cd backup To create a backup Shell script:Vim databasenamebackup.sh#!/bin/bashMysqldump-uusername-ppassword DBName | Gzip > ~/dbname$ (date +%y%m%d%h%m%s).

What to do if you forget your MySQL password

MySQL Password loss resolution1. Turn off MySQL2. Start MySQL by ignoring authorization login verificationMysqld_safe--skip-grant-tables--user=mysql--skip-grant-tables indicates that authorization table validation is ignored3. Change the MySQL

Python operation MySQL

"Using Python for Database pruning"The code is as follows:From pymysql Import *def main ():# 1. Create a Connection connectionconn = connect (host= ' localhost ', port=3306,database= ' Jing_dong ', user= ' root ', password= ' MySQL ', charset= ' UTF8

Install mysql in linux (one-click installation of shell) and mysqlshell

Install mysql in linux (one-click installation of shell) and mysqlshell 1. Related Files (install_mysql.sh, my. cnf, and mysqld are at the bottom of the text)   2. Upload the above files to a directory on the linux Server   3. Grant the execution

Detailed steps for full uninstallation of MySQL5.7 and detailed instructions on uninstallation of mysql5.7

Detailed steps for full uninstallation of MySQL5.7 and detailed instructions on uninstallation of mysql5.7 This article focuses on the various uninstallation and cleanup issues that may occur during MySQL reinstallation. I hope it will be helpful to

Install and configure Mysql5.7 and centos7mysql5.7 on Centos7

Install and configure Mysql5.7 and centos7mysql5.7 on Centos7 Step 1: Obtain the mysql YUM Source Go to the mysql website to obtain the RPM package Https://dev.mysql.com/downloads/repo/yum/   Right-click Copy link

Mysql Time query optimization skills based on time, mysql Time query skills

Mysql Time query optimization skills based on time, mysql Time query skills For example, to query newly registered users yesterday, the statement is as follows: EXPLAINselect * from chess_user u where DATE_FORMAT (u. register_time, '% Y-% m-% D') =

Mysql field pre-sorting method, multi-field sorting method, mysql Field

Mysql field pre-sorting method, multi-field sorting method, mysql Field Background: Under SEO, select a query condition to query the display information for the decoration designer and designer's work. The designer's prototype is as follows: if you

Database ~ Notes for Mysql derived tables ~ Mysql is derived from the slow query of millions of data

Database ~ Notes for Mysql derived tables ~ Mysql is derived from the slow query of millions of data Basic Concepts A derived table is a virtual table returned from a SELECT statement. A derived table is similar to a temporary table,SELECTIt is much

Mysql common statement exercises-Based on ecshop2.7.3 database (1), mysqlecs1_2.7.3

Mysql common statement exercises-Based on ecshop2.7.3 database (1), mysqlecs1_2.7.3 SELECT * FROM ecs_goods WHERE goods_id = 1;SELECT goods_id, goods_name FROM ecs_goods WHERE goods_id = 1;SELECT goods_id, cat_id, goods_name FROM ecs_goods WHERE cat_

A good mysql interview exercise, having comprehensive application, mysqlhaving

A good mysql interview exercise, having comprehensive application, mysqlhaving Write an SQL statement to calculate the average score of two or more failed subjects. > Two or more subjects must fail. > Calculate the average score of all the subjects

MyCAT learning summary, mycat Summary

MyCAT learning summary, mycat SummaryMyCAT Introduction Simply put, MyCAT is: A thoroughly open-source"Large Database Cluster" SupportedTransactions,ACID(Refers to the abbreviation of the four basic elements for correct execution of database

Total Pages: 3233 1 .... 2795 2796 2797 2798 2799 .... 3233 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.