Free Hosting
Price: $0.00
Disk space: 2G
Data transfer: GB/month
Additional domain 1
Child domains:: 1
Email Address: 5
MySQL Database: 5
Control Panel: Custom panel
Simple Site Builder √
Advanced Site Builder X
Technical support phone,
The code is as follows
Copy Code
#!/bin/bash#定义用户名及密码host=User=Userpwd=#定义数据库Database= Mysqladmin-h$host-u$user Flush-logsDaily_databakdir=/backdir#定义MYSQL数据目录Mysqldatadir=/mysql5.5/data emailfile= $daily _databakdir/email.txt#eMail
Today in the MySQL data directory of the local found many similar hostname-relay-bin.0000* files, the file is generally in the MySQL slave instance exists. The main purpose is to record the information of master-slave synchronization, which will
In the actual work, sometimes the MySQL database to import and import operations, but for large SQL file import, phpMyAdmin is not, there are too many restrictions, such as records, memory and so on!
A variety of scenarios are collected as follows:
For security reasons root accounts are generally accessible only locally, but you may need to open root remote access permissions during development. The following are the basic steps:
1, login to MySQL, for root remote access authorization,
Method One: The best approach is to change the float field to decimal (16,6). Specific methods: You can set a temporary field, combined with the MySQL keyword binary for accurate replication and so on.
Method Two: Use binary keyword to solve. The
Summary of several common MySQL backup methods:
Direct copy of database files
First, the data in memory is flushed to disk, while the data table is locked to ensure that no new data is written in the copy process:
The code is as
1, through floor error
You can use the following code
The code is as follows
Copy Code
and select 1 from (SELECT COUNT (*), concat (version (), Floor (rand (0) *2)) x to Information_schema.tables Group by X);and (select
MySQL has five common log types: error log, binary log, query log, slow check log, and relay log.
One, error log
The error log contains four types of information:(1) Information during the process of server startup and shutdown;(2) Error message
The purpose of creating a unique index is not to improve access speed, but to avoid duplication of data. A unique index can have more than one but the value of the indexed column must be unique, and the value of the indexed column allows null values.
Simple Unique index:
A table that can create a unique index. A unique index means that two rows cannot have the same index value. Here is the syntax to create the index table
The code is as follows
Copy Code
CREATE
Linux version: Ubuntu 12.04The PHP MySQL and Apache configuration was completed todayis mainly the source code configuration,Apache is mainly version 2.4.2PHP is mainly 5.3.11 versionMySQL is mainly 5.1.62 version
Several days ago tried several
System environment: DEBIAN,AMH PanelBecause the MySQL client is developed with C + +, the Libmysqlclient-dev is installed, and then AMH MySQL does not start, and the error message is:The server quit without updating PID file
# # 1 Overview # #MySQL's built-in replication capabilities are the foundation for building large, high-performance applications. The distribution of MySQL data across multiple systems is done by copying data from one of the MySQL hosts to the other
Install a database example--employeesUse tool for navicat--(CTRL + Q: Open new Query windowCTRL + R: Runs all statements within the current window)Reference http://www.cnblogs.com/chenyucong/p/5734800.htmlThere are 6 associations in the database,
First, MySQL:https://dev.mysql.com/downloads/https://dev.mysql.com/downloads/mysql/Download the required version:I'm under the second one here.Second, installation:① unzip the downloaded compressed file and rename it (MySQL Server 5.7) to the
The use of foreign keys in MySQL to implement cascade Delete, updateMySQL supports foreign key storage engine only InnoDB, when creating foreign keys,Requires that the parent table must have a corresponding index, and the child table will
Original: http://www.cnblogs.com/zhangminghui/p/4113160.htmlIntroductionMySQL itself provides built-in functions that are very handy for our daily development and data operations, such as the aggregate function sum (), AVG () and DateTime functions
The landing problem of mysql5.7 under 1.CENTOS6Description of the problem:ERROR 1045 (28000): Access denied for user ' root ' @ ' localhost ' (using Password:no)Workaround: 1. Close Service mysqld Stop2.--skip-grant-tables start
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