The following is an explanation of the configuration of the PHP operating environment in WAMP Environment:
First, preparation-download the required software
Apache Httpd-2.2.22-win32-x86-openssl-0.9.8t.msiPHP Php-5.2.17-win32-vc6-x86.zipMySQL
XAMPP is an environment (PHP+APACHE+MYSQL) software that can quickly create web sites, if there are many projects, Using 127.0.0.1 or localhost access is cumbersome and not easy to remember, you can use the domain name virtual directory to achieve
I want to use PHP and MySQL, but how do I install and run it? What is the most basic thing I should know in order to make a simplePhp-mysql application work? This is a basic tutorial. No weird code, just a few basics. To put it another way, there
Q:
My question when I write a query condition is as follows:
If I want to write all the records in a field that contain the word "Li"
$str = "Li";
SELECT * FROM table where field like '% $STR% ';
In addition to the records that contain the word "Li",
MySQL tutorial Add new user and modify password method
Format: Mysqladmin-u username-P Old password password new password
1, to root add a password ab12. First enter the directory Mysqlbin in DOS, and then type the following command:
Recommendation I: null value does not necessarily occupy space
Here I first give you a literacy. Some database tutorial administrators think that null values do not occupy system resources, in fact, this is a mistaken understanding. They do not
MySQL Tutorial common command set
Create database name; Create a database tutorial
Use DatabaseName; Select Database
Drop database name deletes databases directly, without alerting
Show tables; Show Table
Describe TableName; Detailed
The following query selects all records and its date_col value is within the last 30 days:
MySQL Tutorials > select something from tablewhere To_days (now ())-To_days (Date_col)
DayOfWeek (date)Returns the week index of date (1= Sunday, 2 =
MySQL tutorial temporary tables and memory tables create query deletions and considerationsThe temporary table and the engine of the memory table are different, the temporary table defaults to the MyISAM, and the memory table is memory, the
In fact, tell the MySQL tutorial interpreter, whether the command is over, whether MySQL can be executed.By default, delimiter is a semicolon;. In a command-line client, if a line of commands ends with a semicolon,Then, after the carriage return,
MySQL tutorial several ways to export Excel files
Method One
PHP tutorials with mysql command and shell
SELECT * into outfile './bestlovesky.xls ' from Bestlovesky where 1 the ORDER by id DESC limit 0, 50;
Method Two Bestlovesky.xls is opened in
The functionality provided through MySQL
Export
Command:
Mysqldump-u user name-P database > database. sql
Example:
The code is as follows
Copy Code
Mysqldump-u root-p db1 > Db1.sql (Backup of database db1 to Db1.sql)
Causes of fragmentation(1) the storage of a table is fragmented. When a row of content is deleted, the space in the row is blank and left blank. A large number of delete operations are performed within a period of time, this will make the blank
MySQL is a commonly used RDBMS (RelationalDatabaseManagementSystem/relational database management system), and other relational database management systems such as PostgreSQL, Oracle, and DB2. The importance of database performance does not need to
In MySQL, InnoDB engine tables are (tered index organize tables, while MyISAM engine tables are heap organization tables ).Clustering indexes are also called clustering indexes.Of course, the concept of clustered index is not unique in MySQL, and
Table A: See the following figure.Table B: As shown in the following figure: To output the order number of status = 6 under master_id, the output result is as follows: The statement adopted at the beginning is: select count (. order_id) from a left
An error is always prompted when importing SQL statements today.The code is as follows:ERROR 2013 (HY000): Lost connection to MySQL server during queryERROR 2006 (HY000): MySQL server has gone awayNo connection. Trying to reconnect...ERROR 2002 (HY00
1. Have mysql been installed in the query system?Command:Yum list installed mysql *AndRpm-qa | grep mysql * Check whether the mysql installation package exists.Command: yum list mysql * 2. Install the mysql clientCommand: yum install mysql 3.
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