0, download and extract the zip version of MySQL
1, add environment variable path D:\mysql-5.7\bin;
2, add the Data folder in the D:\mysql-5.7\
3, modify the My-default.ini configuration file
Basedir = D:\mysql-5.7
DataDir = D:\mysql-5.7\data
MySQL Database Usage Summary
This article mainly records some MySQL daily use of the commands for future inquiries.
1. Change root password
Mysqladmin-uroot password ' yourpassword '
2. Remote login MySQL Server
Mysql-uroot-p-hip-p3306
3.
Must meet certain prerequisites to is able to restore a IBD tablespace:
1.The IBD file must to consistent backup with all insert buffer entries merged and have no uncommitted transaction s in order to is dependent of the shared 2.tablespace Ibdata.
First, Xtrabackup Simple overview:
Percona Xtrabackup is open source free MySQL database hot backup software, it can innodb and XTRADB storage Engine database non-blocking backup (for MyISAM backup also need to add table lock). Xtrabackup supports
Environment: Navicatformysql 8.2 + MySQL Sever 5.1
Problem: Add foreign key in Navicatformysql
Solution
Method One:
To create a foreign key by using an SQL statement:
ALTER TABLE FOREIGN KEY table add constraint constraint
name foreign key
The tables in the InnoDB storage engine are very much like the Index organization table in Oracle, each table must have a primary key, and if the table does not display a defined primary key at creation time, the primary key is automatically created
Mysqlbinlog
The tool that reads statements from the binary log. Logs of executed statements contained in a binary log file can be used to help recover from a crash.
MySQL database log, there are the following kinds of logs:
1. Error
This article is limited to the Web Server section, as the implementation of load balancing can be done according to requirements, can be based on DNS resolution load balancing, can also use LVS or dedicated load balancer (such as F5 or Randware)
MySQL automatic backup is critical, especially for DBAs. Here the main use of code to illustrate this issue, I hope to help you. You can put this script into the crontab, perform it once every morning, and automatically back up.
This script
It is important to back up your database if your database tables are missing or corrupted. If a system crash occurs, you will want to be able to recover as few data from your table as possible to the state at which the crash occurred. Sometimes it
1, look at the machine configuration, refers to three piece: CPU, memory, hard disk
2, look at the MySQL configuration parameters
3, check the MySQL line state, you can use the Mysqlreport tool to view
4, view the MySQL slow query
After solving
Modifying the default character set for MySQL is done by modifying its configuration file. Generally, there are two kinds of situations:
Windows platform
The MySQL configuration file under Windows is My.ini, generally in C:\windows\my.ini or
I believe that every project will have user feedback suggestions and other functions, the implementation of a lot of methods, the following is my way to achieve, for everyone to communicate. First look at the concrete interface, three fields. Name,
First, install MySQL
1. Create a system user running a MySQL database, group (if there is no need to create)
[root@www ~] #useradd –m–s/sbin/nologin MySQL//No working directory, landing Shell for Prohibition
2. Unpack and release the source
It is important to back up your database if your database tables are missing or corrupted. If a system crash occurs, you will want to be able to recover as few data from your table as possible to the state at which the crash occurred. Sometimes it
1 --########## 01, database Overview ##########2 --1, information: All kinds of things that can be touched in the real world3 --2, data: Mapping of information in the computer World (reflection)4 5 --in Java, data can be stored in various containers
SQL join query and SQLjoin connection Inner join (Intersection,Natural connection, Abbreviated as join)Is the most common connection query, which is equivalent to the query based on the where condition in the early stage.Outer join (Union or partial
MySQL database encapsulation and paging query, mysql database Paging
// My database name is house
Class DBDA
{Public $ host = "localhost ";Public $ uid = "root ";Public $ pwd = "root ";Public $ dbname = "house ";
Public function Query ($ SQL, $
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