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 to back up:$ Con = mysql_connect ('localhost', 'root',
When phpMyAdmin is used, an error is reported:
Client does not support Authentication Protocol requested
By server; consider upgrading MYSQL client
The official statement is:
MySQL 4.1 and up uses an authentication protocol based on a password
I just saw someone posting the installation steps in windows.
It's just today that the company's website has a new server. It took me one morning to install MySQL + PHP + Apache.
The old version of the new version is still somewhat different.
Data Verification
Clear Spaces
The TRIM function will clear spaces at the beginning and end of the Data. Its syntax is:
Trim ($ first_name );
Processing of required fields
Some fields must be entered in your database. In this way, the
For the description of the valid format of the value range of each type and the specified date and time value, see 7.3.6 Date and Time type.Here is an example of using the date function. The following query Selects all records. The value of date_col
My personal practice is: phpmyadmin exports abc. SQL in UTF-8 insert modeFtp abc. SQL to serverSsh to serverMysql-u abc-pUse KKK (database name, if not, create database KKK)Set names 'utf8'Source abc. SQLNote: I have seen the set character set utf8;
Import notes:Using tools such as phpmyadmin or navicat to import data is still quite slow. You can directly use mysql to import data.The import command is as follows:Mysql>-uRoot-PSupidea Jb51.netE: \ www.jb51.net. SQLYou canNote:Mysql>-uMysql user
1. Stop the running MySQL processIn Linux, run killall-TERM mysqldIn Windows, if it is written as a service, you can run: net stop mysql. If it is not loaded as a service, you can directly close it in the Process Manager.2. Start MySQL in Safe
Mysql 5.0.45 (modified) DoS Vulnerability/** MySQL * Kristian Erik Hermansen* Credit: Joe Gallo* You must have Alter permissions to exploit this bug!* Scenario: You found SQL injection, but you want to punch backend server* In the nuts just for fun.
1. MySQL Common commandsCreate database name; create a databaseUse databasename; select databaseDrop database name directly deletes the database, no reminderShow tables; displays tablesDescribe tablename; Detailed description of the tableAdd
Import failed at the beginning.
The generated SQL statement is incorrect.
SQL query:
Insert into 'CC _ present '. 'C _ City' ('A',' B ', 'C') VALUES (NULL, 1, 'city ')...
In this way, the column name is changed to A, B, and C.
There are two
After query, I know that the Mysql field is too long, so I just changed the length of the two fields.When an Index is created, the length of the key calculated by the database is to accumulate the char length of all the fields used by the Index, and
These things are just a bit confusing for new users. Here is my installation notes. It is successfully installed on the Centos virtual machine. For more information about How to Install MySQL 5.0 on Linux, How to Install PHP 5 on Linux, How to
There are three common methods for Mysql database backup:1. Directly copy (cp, tar, gzip, cpio)2. mysqldump3. mysqlhotcopy1. Use Direct Copy Database Backup Typical utilities such as cp, tar, or cpio.When using the direct backup method, you must
Method 1:1: On a terminal or windows:Mysql-VYou can.It can be seen that the version is mysql Ver 14.14 Distrib 5.1.42, for Win32 (ia32), where 5.1.42 is the version.Type 2: in mysql:Mysql> status;This operation can be performed only after
Recently, I got a MySQL script file of dozens of MB, which is ready to be restored to a database.
I used MySQL-Front for a short time. I tried it first and the result was suspended.
In this case, create an empty database with MySQL-Front and use
The table sharding logic here is based on the number of user_name groups in the t_group table.In this case, the index on the user_name field is a bad index. It does not have any obvious effect.1. test PROCEDURE.DELIMITER $Drop procedure't _ girl '. '
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