Copy Code code as follows:
The requirement imports the Tb_a table from the Ser_a library on the 192.168.3.5 to the Ser_b library on the 192.168.3.6 at 5 points per day, and the table name is also called Tb_a
Server-side
You may have heard of the great server-side scripting language-php3, and this article is its guide. However, PHP3 is only a glorious history, the future will be with Zend PHP4. It is bundled with Apache1.3.12 and MySQL, and they form a strong
With MySQL, security issues cannot be noticed. Here are 23 things to note about MySQL tips:
1. If the client and server-side connections need to cross over and pass through an untrusted network, you need to use an SSH tunnel to encrypt the
method One:
1. Guide Table structure
A way to generate a create script using MySQL. Find the script that generated the export, and modify it in MySQL syntax to create the table's column structure in the MySQL database or whatever.
2. Guide Table
I. Major changes from 4.0 to 4.1
If you create a InnoDB table that contains TIMESTAMP fields in MySQL 4.1.0 to version 4.1.3. You need to rebuild the table when upgrading to 4.1.4 and higher because the storage format has changed
Strings are
First in the new database must pay attention to generate the same encoding form of the original database, if already generated can be used phpMyAdmin and other tools to organize again, to prevent the database Code and table coding is not uniform
The example of this article tells the MySQL simple implementation of query results add serial number method. Share to everyone for your reference, specific as follows:
The first method:
Copy Code code as follows:
Select (@i:=@i+1) as
error message: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535
When a field type is text for a MySQL table plug-in, or if you modify a field type of text, the above error is reported. In fact, I do not
Yesterday afternoon to help carp to a large group purchase site Transfer Database server, this article should have been transferred yesterday after the summary issued, but for some reason did not write in time, now quickly fill up.
First of all, the
1, first stop the running MySQL process
Under Linux, run Killall-term mysqld
Windows, if written as a service can run: net stop MySQL, if not loaded as a service, can be closed directly in the process manager.
2. Start MySQL in safe mode
Under
2.6 Date_sub/date_add
Date_sub (Date,interval expr type)
The date argument is a valid datetime expression. The expr parameter is the time interval that you want to add.
SELECT ID from my_table WHERE create_time >= date_sub (now (),
One, AVG
AVG (COL)
Returns the average of the specified column
Two, COUNT
COUNT (COL)
Returns the number of non-null values in the specified column
Third, Min/max
Min (col): Returns the minimum value of the specified column
Max (COL):
Connect using MySQL Binary
You can use MySQL binary to enter the MySQL command prompt to connect to the MySQL database.
Instance
The following is a simple example of connecting to a MySQL server from the command line:
Copy Code code as
My personal practice is: phpMyAdmin export utf-8 insert mode Abc.sql
FTP Abc.sql to Server
SSH to Server
Mysql-u abc-p
Use KKK (database name, if not on create DB KKK)
Set names ' UTF8 '
SOURCE Abc.sql
Note: I see set character set UTF8; Saying,
Examples are as follows:
Data table is demotable, field has ID, condition1,condition2,condition3,condition4,condition5
The requirement is to query demotable, condition1,condition2,condition3,condition4,condition5 Five fields that meet any of two
Environment:
JDK 1.6.0_22+eclipse+mysql5.0.22+mysql-connector-java-5.1.7-bin.jar
Using JDBC to connect to the MySQL database, the JDBC driver has been added to Eclipse's project "Build Path", and it should be normal. Prompts "Unable to load
Fedora5 to configure MySQL (very valuable MySQL data including how to move the MySQL database in Linux file system)
First, download MySQL installation files
The full installation of MySQL requires the following 6 files:
mysql-server-community-5.1.
When you insert a record in a table in SQL or MySQL database, touch the trigger to insert another table in the same database into the same record.
In the process of learning, found that the two writing is different.
1, in the SQL set up two table
This script first judge whether the MySQL server is running, if normal, continue to judge the master and slave, otherwise send an email alarm, only once.Judge the master-slave status is to determine whether IO and SQL threads are yes, if not the
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