The code is as follows
Copy Code
?> Data Management esweb system data Management Data backup Data restore Data optimization /*--------------Interface--------------*/if (!$_post[' act ') {/*----------------------* *$MSGS []=
System Information Conventions:
System version: CentOS 6.3 X86PHP installation directory:/usr/local/webserver/php5318MySQL installation directory:/usr/local/webserver/mysql5520Handlersocket Installation
Scenario Description:
1, now on hundreds of MySQL database, character encoding latin1, now need to do an activity, will be on the MySQL database of some of the activity data synchronized to a MySQL summary database (latin1), and then the data
My WordPress database Wp_postmeta table has more than 10,000 lines, if the use of two cycles to find the judge, although we are not tired, but the program runs very tired AH.
If I want to query with a single statement to get all the data that
Java Backup Database tutorial four ways (MySQL tutorial, MSSQL database Backup)MySQL database backup things, and then studied how the Java language to invoke cmd command to implement mysqldump backup function. Specifically implemented as follows:
1.
We offer free web space, free hosting, and paid hosting for all of your needs with your own domain name or child. We support PHP, Perl, and MySQL. Join the 122mb.com free web space community
Free online space
Disk storage: 200
Monthly
100M Free Universal Space:1, we solemnly promise: committed to providing China's best free space, and permanent free, never close a legal space2, important reminder: Where to apply for the site's free space needs to be timely to the Ministry of
Downloading deletes using cmd mode
Command: Drop Database
For example, to delete a database named Xhkdb
The code is as follows
Copy Code
mysql> drop Database xhkdb;
Example 1: Delete a database that is
A simple PHP tutorial MySQL tutorial exam system, the example method is to determine whether the topic array is empty, empty then from the question bank randomly removed 12 questions ID
Include './inc/header.php ';if ($_session[' arr '] = = ')
The easiest way to do this is
MySQL Remote configuration
The code is as follows
Copy Code
GRANT all privileges on *.* to root@ '% ' identified by ' your Paaaword '; % indicates that there are more machines.
The method is as follows:
1. Modify the C:appservmysqlmy.ini file, find the Skip-innodb, add the # in front, and save the file.2. In operation input: services.msc, restart the MySQL service.3. In phpMyAdmin, mysql->show engines; (or perform
To summarize the methods of copying tables and knots first
One, CREATE TABLE method
Whole table copy: CREATE table new Table select * from old table;
Structure copy: 1, CREATE table new table select * from old table where 1<>1;
One, copy table
Let's analyze the problem first.
A typical symptom of a damaged table is as follows:1. When selecting data from a table, you get the following error: Incorrect key file for table: ' ... '. Try to repair it2. The query cannot find rows in the table
Specific methods
The code is as follows
Copy Code
#!/bin/bash#Shell Command for Backup MySQL Database everyday automatically by Crontab#Author: Carlos Wong#Date: 2010-08-24
#配置参数
code is as
1. Connect to each other MySQL server mysql-u root-h 192.168.0.1mysql.exe This program in the Bin directory where you installed MySQL
2. Let's take a look at some of the server database MySQL >show databases; MySQL default installation will have
Can ' t connect to [local] MySQL tutorial serverb.5.2.2.1. Connect to the MySQL tutorial server in Windows otherwiseThe UNIX MySQL client can connect to two different ways to start the MYSQLD server: by using a UNIX socket file, via the file system (
You can put this script into the crontab, his configuration file in the/etc/crontab every morning, the automatic backup of this script only once a day, and keep only the last five days of backup on the server.
The code is as follows
1. Configure Zeppelin to support MySQLZeppelin native supports JDBC links. However, the default setting is to point to PostgreSQL.One of the simplest ways is to directly modify the content in JDBC Interpreter and direct it to your own MySQL instance.
1. unix_timestampConverts a time to a timestamp. Convert data of the date type to the timestamp formatThe timestamp of the current time is used by default.Mysql> select unix_timestamp ();+ ------ +| Unix_timestamp () |+ ------ +| 1, 1436775578 |+ ---
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