Use PHP to implement XML backup MySQL database favorites
The following is a file used to back up a MySQL database through Apache + PHP in Linux.
Code :
File 1. listtable. php (the file lists all tables in the database for backup) Select the table
The database file is large, about 70 GB,
For normal migration, You need to export data in the original database and then import data in the new database.
After careful consideration, is the format of MySQL database file storage identical in
Once the local startup mode is enabled to change the root user password of MySQL, when MySQL can be enabled again, it is revealed that the default storage engine (InnoDB) is not available and MySQL cannot be started, search for the network and learn
I cannot use the root account of localhost to connect to the DBA to create a user!
Obtain the information of authorized users for emergency purposes.
Authorization Table example
Grant is used to add and create permissions for users, and
In general, there are two possible causes for Garbled text. The first reason is the incorrect encoding (charset) setting, which leads to the incorrect encoding resolution by the browser, resulting in the "tianshu", which is full of screens ",
1. select the most suitable field attribute
MySQL can support access to large data volumes, but generally, the smaller the table in the database, the faster the query will be executed on it. Therefore, when creating a table, we can set the field
System Requirements:
The hardware can start the operating system.
Win2k, WINXP, or win2003 Operating System
Preparations:List of required software: (this configuration includes the following software versions)1. APACHE_2.0.47-win32-x86-no_ssl
Replace runs like insert. Except for one, if an old record in the table has the same value as a new record used for the primary key or a unique index, the old record is deleted before the new record is inserted. See section 13.2.4 "insert Syntax ".
(Refer to the post of volcano:★Flash and ASP communication getting started tutorial-Make your own message book !). There are no good PHP message book tutorials on the Internet. The N multiple source files I downloaded can be viewed in the cloud, and
If you want to run multiple servers, the easiest way is to recompile the server with different TCP/IP ports and socket files, so they do not listen on the same TCP/IP Port or socket.
Assume that an existing server is configured as the default port
Test System Environment Windows 2003 Python 2.5.1 MySQL 5.0.1
It should only apply to win, because CMD is called.Incremental backup, because of your own use, the database is not large.If you have the need to add a self-detection function, it will
Character_set_client, which is the character set that the user tells MySQL to query.
Character_set_connection. After MySQL receives the user query, it converts it to the character set character_set_connection according to
Unable to connect to MySQL through MySQL proxy
If the host and password are correct, you may encounter a problem where you cannot connect to MySQL. Check whether the MySQL server uses old_password and whether there is a problem in my. CNF.
CopyCode The Code is as follows: @ echo off
C:
Cd "C: \ Program Files \ WinRAR"
Net stop MSSQLServerWinrar.exe A-Ag "-[YYYY-MM-DD-HH-MM-SS]"-K-r-s-ibck-inul "E: \ sql20001_generated file .rar" "E: \ SQL2000 database data directory \*. *"Net
1. Enter mysqladmin processlist In the MySQL/bin directory;2. Start MySQL and enter show processlist (kill ID of a thread is disabled ;);If you have the super permission, you can see all the threads. Otherwise, you can only see the self-initiated
1. Download MySQL
Http://www.mysql.org/downloads What I download is mysql-noinstall-5.0.67-win32.zip.
Ii. Installation Process1. Extract
Mysql-noinstall-5.0.67-win32.zip
To a drive C, rename it
Mysql5
.Assume thatMysql_home = c :\
Record some select tips:
1. select statements can be separated by carriage return.
$ SQL = "select * from article where id = 1"
And $ SQL = "select * from article
Where id = 1 "can get the correct results, but sometimes it is clearer to write
1. select the most suitable field attribute
MySQL can support access to large data volumes, but generally, the smaller the table in the database, the faster the query will be executed on it. Therefore, when creating a table, we can set the field
The biggest limitation is here-data insertion, so we can only start with the existing functions of the program. In fact, many programs can submit comments, comments, and posts, it depends on how the program inserts variables into the database. In
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