Friends familiar with Oracle know that when the Oracle database does not start properly, you can save data and reduce loss by dul or other tripartite tools that directly read data from data files. If you use the InnoDB engine in MySQL, you can also
First, simple query:Basic Syntax:
The code is as follows
Copy Code
SELECT * from Tb_name;
Query all
The code is as follows
Copy Code
SELECT field1,field2 from Tb_name;
In the previous article, we introduced the results of a test question implemented using jquery. Then this article will be combined with examples to introduce how to use Jquery+php+mysql to achieve online test questions, including dynamic reading
The MYSQL LOAD Data infile command can import data from a CSV flat file into the database.If there is an import error, you should put the imported CSV file in the/tmp folder before you have any problems.
Method One, import data using the Load Data
To see if the log is open
1. Can be confirmed by MySQL profile my.cnf (MySQL defaults to open binary logging):# Replication Master Server (default)# Binary logging is required for replicationLog-bin=mysql-bin
Refresh Log
Flush logs;
View current
Entering commands on the command line is not a good idea and can create security problems. (see another article, "The safe operation of MySQL password entry") but if you decide to write an application, the application needs to use a password or
Note: This document has two MySQL instances, multiple instance methods and so on
Linux operating system: centOS6.3 64bit (Installation of the system default development package)
Example one:
MySQL version: mysql-5.0.56
OPTIMIZE TABLE is used to reclaim unused database space.
When rows of data on a table are deleted, the disk space occupied is not immediately reclaimed, the space is reclaimed after the Optimize table command is used, and the rows of data on the
At the Percona Performance Conference 2009 conference from Yahoo Surat Singh Bhati (surat@yahoo-inc.com) and Rick James ( rjames@yahoo-inc.com) to share the MySQL efficient paging experience.
I. Overview
Common
MySQL table to move to another DB, table renamed, two table to swap names, etc., How to do?
How to move and rename a Table in MySQL
Commands are all used RENAME can be achieved,
MySQL Table from Db_a to move to Db_b
The code is as
The length () function can get the lengths of a string:
Select Length (' ABCDEFG '), Length (' 0123456789 ');/*+-------------------+----------------------+| Length (' ABCDEFG ') | Length (' 0123456789 ') |+-------------------+----------------------+
To create a database:
Everything in MySQL starts with a database, which we can understand as "bookshelves", which can be understood as "books on the shelves", and the data in the table can be understood as "the contents of the book". This means
Use Mysql-u root-p to access the MySQL operating interface
Directly using/usr/local/php5/bin/php/web/test.php execution to connect to the database
Apache also restarted, as ineffective as
Doubt: Why Web page execution failed, command execution
MySQL DROP table,create index,drop INDEXDROP [temporary] TABLE [IF EXISTS] tbl_name [, Tbl_name,...][RESTRICT | CASCADE]DROP table removes one or more tables. All data and table definitions have been removed, so be sure to use this command carefully!
SELECT * FROM table1 where name= ' Zhangsan ' and TID > 10000and implementation:SELECT * FROM table1 where TID > 10000 and name= ' Zhangsan 'Some people do not know the execution efficiency of the above two statements is the same, because if it is
MySQL configuration file my.cnf Chinese version configuration Reference document
#BEGIN CONFIG INFO#DESCR: 4GB RAM, using only InnoDB, ACID, a small number of connections, large queue load#TYPE: SYSTEM#END CONFIG INFO
## This MySQL Tutorial
Workaround One:
To other MySQL-installed servers (if you want to know the MySQL root password on the server), open the "MySQL installation directory/var/mysql tutorial," which will be the user.frm, user. MyD, user. Myi three files are copied to the
MySQL tutorial is null usage
Note that in MySQL, 0 or null means false and other values mean true. The default truth value of a Boolean operation is 1.
The special handling of NULL is in the previous section, in order to determine which animal is
There are two main ways to handle MySQL transactions:1, with Begin,rollback,commit to achieveBegin a transactionROLLBACK TRANSACTION RollbackCommit TRANSACTION Confirmation2, directly with set to change the MySQL tutorial automatic submission
# Check and Uninstall
The code is as follows
Copy Code
Rpm-qa|grep httpdRPM-E httpdRpm-qa|grep MySQLRPM-E MySQLRpm-qa|grep PHPRpm-e PHP
# Delete the default Apache
The code is as follows
Copy
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