My PHP Blog Open Bo also nearly two years, with the support of the vast number of PHP enthusiasts, I have written nearly 100 of the original practice of the PHP tutorial, each PHP tutorial is permeated with my painstaking efforts, as the next 100
Now that we have all the basics we need, we can put MySQL into work! This section provides a tutorial that helps familiarize yourself with MySQL. When you complete this tutorial, you will create a sample database and a table in the database, and
Environment
RedHat Linux 6.1 + MySQL 5.1.7
Problem
RedHat Linux 6.1 Install MySQL
Prepare before installation
1. Download resources:
MYSQL-SERVER-5.1.7-0.I386.RPM, click here to download.
MYSQL-CLIENT-5.1.7-0.I386.RPM, click here to download.
This is one of the sections of my last article on security. It is a well-known fact that the MySQL database backup of your running Web site is extremely important.
Just follow the 3 steps below, and everything is under your control:
First Step:
MySQL tutorial delete data SQL statement usage
The delete from statement is used to delete records from a database table.
Grammar
DELETE from table_name WHERE COLUMN_NAME = some_value
Note: SQL is not sensitive to case. Delete from is equivalent
mysql| Reference | full-Text Search | Chinese mysql 4.1.0 chinese reference manual---dog (heart sail) Translate MySQL Reference Manual for version 4.1.0-alpha.
6.8 MySQL Full-Text Search
At 3.23.23, MySQL began to support Full-text indexing and
Original link: http://blog.chinaunix.net/u/29134/showart_480834.html
The performance tracker provided by the MYSQL5.0 family is really cool.
Pay attention to two points.
1, but the version after 5.0.37
The manual describes the following: (show
First, how to get the latest version of MySQL?
To install MySQL, first of course to get its latest version, although we all know in FreeBSD packages can find MySQL, but I suggest you go to the network to find the latest version of MySQL.
Second, the
The formula for using EXECL to convert timestamps is:
Code:
= (xxxxxxxxxx+8*3600)/86400+70*365+19
Use the MySQL tutorial statement to explain timestamp syntax examples:
Code:
Select From_unixtime (1234567890, '%y-%m-%d%h:%i:%s ')
Report:
In
Many friends have installed MySQL but do not know how to use it. In this article we will learn some common MySQL commands by connecting MySQL, modifying passwords, and adding users.
One, the connection MySQL.
Format:
Mysql-h Host Address
-U user
MySQL allows you to select columns from more than one table at a time. We'll leave this to the "Retrieving information from multiple Tables" section.
1. Specify the search criteria
To limit the set of records retrieved by the SELECT statement, you
Redhat-bug 576246-missingpower_meter Release () function question
Redhat How to install the configuration samba to achieve win shared Linux host directory
Redhat system Read-only problem caused by drop disk
Configuration problem of Yum source for
Show tables or show tables from database_name;Explanation: Displays the names of all tables in the current database
show databases;Explanation: Displays the names of all the databases in MySQL
Show Processlist;Explanation: Displays all processes
MySQL Tutorial export database tutorials several ways
Method One
CMD to the MySQL Bin directory with the following command mysqldump--opt-h192.168.0.156-uusername-ppassword--skip-lock-tables databasename> Database.sql
It's okay to change IP to
MySQL one, connect MySQL.
Format: mysql-h host address-u user name-P user Password
1, Example 1: Connect to MySQL on this machine.
First in the Open DOS window, and then into the directory Mysqlbin, and then type the command mysql-uroot-p, enter
MySQL server through the permission table to control the user access to the database, the permission table is stored in the MySQL database, by the mysql_install_db script initialization. These permission tables are User,db,table_priv,columns_priv
Show tables or show tables from database_name; Explanation: Displays the names of all tables in the current database Show Databases Explanation: Displays the names of all databases in MySQL shows processlist; Explanation: Displays all
SQL alert adding, modifying, and deleting field syntax instances
The syntax for ALTER TABLE is as follows:
ALTER TABLE "TABLE_NAME"
[Change Mode]
The detailed wording of the [change mode] will vary according to the goal we want to achieve. In
Several guidelines for indexing:
1, reasonable indexing can speed up the efficiency of data reading, the unreasonable indexing will slow down the response speed of the database.
2, the more indexes, the slower the speed of updating data.
3, try
The recovery process consists of two information sources---backup files and binary logs, which can be restored to the state at the time the backup was performed, and the binary logs revert to the state when the failure occurred. The following
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.