For example, how to use the command line to implement MySQL export Import database
One, command line export database
1. Into the MySQL directory under the Bin folder: cd MySQL to the Bin folder directorysuch as: CD C:\Program files\mysql\mysql
Fortunately, MySQL provides some methods for batch data entry, making it easy to add data to the table. These methods are described in this section, as well as in the next section. This section describes the SQL language-level workaround.
1. Basic
The backup database is stored under the D: Packing directory, and the backup database name is Backup20070713.sql (20070713.sql is the backup date)
Back up the database:
mysqldump-uroot-p123456 Database_name>d:/backup20070713.sql
To recover a
1303-can ' t create a PROCEDURE from within another stored routine.
This error message is more difficult to understand, so carefully check the contents of the stored procedure, there is no problem, the code is as follows:
Copy Code code as
This article describes the MySQL implementation of tree-like all child node Query method. Share to everyone for your reference, specific as follows:
In Oracle we know that there is a hierarchical Queries through connect by we can easily check all
This article has shared two kinds of MySQL to delete the database method, for everybody's reference, the concrete content is as follows
The first method: To Delete a database using mysqladmin to log on to the MySQL server using a regular user, you
The main variables that have a greater impact on performance optimization are listed below, which are mainly divided into the variables of connection requests and buffer variables.
1. Variable for connection request:
1) max_connectionsThe maximum
Business Scenario:
Several of the company's major businesses have been isolated and placed on different database servers, but one business needs to correlate multiple business libraries for joint query statistics. At this point, you need to
This article describes the MySQL regular batch check table repair and optimization table optimize the shell script, for MySQL database maintenance is very useful! As shown below:
#!/bin/bash
host_name=192.168.0.123
user_name=jincon.com
user_pwd=
Case one: Shell+cron realize MySQL automatic backup and automatically delete n days before backup
Copy Code code as follows:
#!/bin/sh
Dump=/usr/local/mysql/bin/mysqldump
out_dir=/home/ldl/xxx/backup/
Linux_user=ldl
The system, with the previous "ASP connection Access database login System" (Click to open the link) in the article of the ASP login system is exactly the same, but the programming language from ASP into PHP, the database from access into MySQL.
I.
This file is/tmp/phpbeojq5.
################# can copy this code to test #################
?
Include ("Include/dbclass.inc"); You can use MYSQL. INC class instead of testing
$q = new Db_sql;
$db = $q->database; Define the database
mysql_connect ('
Error Number:2003
Problem Analysis:
Unable to connect to the MySQL server, as possible:
1, the MySQL service does not start, generally in the case of the exception of MySQL can not start, such as no available disk space, My.ini mysql basedir path
Environment:
Master server: CentOS 5.2 mysql 5.1.35 source ip:192.168.1.22
From server: CentOS 5.2 mysql 5.1.35 source ip:192.168.1.33
Configuration:
First, the main server
1.1, create a replication user,
The example in this article summarizes the method of MySQL modifying time zone. Share to everyone for your reference, specific as follows:
Description: Here is a summary of the three ways to modify the MySQL time zone.
Method One: Dynamic
According to the literal meaning is to write the parameters of the whole. This is not supported in a later version.
Many of the information on the Internet is directly using Myisam_recover can be used to achieve the MySQL database table repair, but
If you insert two rows of ' a ' and ' a ' on a column with unique constraints on MySQL, MySQL will think it's the same, but not in Oracle. It's MySQL. Default field values are not case-sensitive? This is a more troubling thing. Use the client
In MySQL daily development or maintenance, there are some problems or failures are often unavoidable, such as the loss of passwords, table damage. Here is a summary of the often forgotten MySQL root password solution:
1. Log in to the database
Several common MySQL functions, MySQL to judge Chinese characters, dates, numbers of specific functions to share with you, the specific contents are as follows
1. Judge whether the string is a Chinese character return value: 1-Chinese characters
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