Access MySQL guide with ODBC interface
Current Author: Wang Mei (HeartIcy@163.com)
Date Created: January 15, 2003
Revised version: 1.1
MySQL's good and bad I think about it. I always think that this is not what a programmer or system designer should
The new version of the old edition is still a little different. Now explain the steps.
Installation steps:
1.mysql
Download the MySQL for Linux RPM package on the following page
http://www.mysql.com/downloads/
Save to/home/tmp Directory
List
Creating a Database
The code is as follows
Copy Code
CREATE TABLE IF not EXISTS ' tet ' (' id ' int (one) not NULL,' Name ' varchar (255) Not NULL,' URL ' varchar (255) Not NULL) Engine=innodb DEFAULT Charset=utf8;The
Using mysql+ Select in PHP
The SELECT statement is the data that is used to select the database.Select data from a database tableThe SELECT statement is the data that is used to select the database.Grammar
SELECT column_name (s)
MySQL Getting Started tutorial Chapter
MySQL database query
SELECT * FROM tableSELECT * FROM table1, table2, ...SELECT field1, Field2, ... From table1, table2, ...SELECT ... From ... WHERE conditionSELECT ... From ... WHERE Condition GROUPBY
Use Overlay Index
A table is built on the id,create_time to establish an index.
The following 2 SQL statements are executed at the same time. Because the query field ID is overwritten by the index.
Select ID from order_manage where create_time > '
1, MySQL installation after the password can not be landed problem Then you need to go into the/etc/mysql directory and check the username and password inside, and then sudo vim debian.cnf Use the username and password in this file to enter MySQL,
PS: This profile is for Dell R710, dual Xeon E5620, 16G memory hardware configuration. CentOS 5.6 64-bit system, MySQL 5.5.x stable version. Applies to the day IP 50-100W,PV 100-300w site, mainly uses the InnoDB storage engine. For other application
Hua Yi Network Quality free space 200m-5000m support MySQL databaseThe free universal space size is: 200m-5000m;
The monthly flow limit is: no flow limit;
Support ASP, asp.net, php,mysql, ACCESS database;
Support FTP upload and management files;
Today I saw my colleague accidentally deleted the user table in the MySQL database. Fortunately, there is a bin-log of MySQL on the log, so that the log can be used to restore previously backed up data. The specific operation is done by mysqlbinlog
There are two main ways to handle MySQL transactions.
1, with Begin,rollback,commit to achieve
Begin a transactionROLLBACK TRANSACTION RollbackCommit TRANSACTION Confirmation
2, directly with the set to change the MySQL automatic submission mode
1. Grant statement
Format: Grant Select on database. * To User name @ login host identified by "password"
Description
(1) Grant all grants all permissions
(2) All tables in the Demo.* database demo
(3) NewUser user name
(4) @localhost MySQL
, and can not return to other fields, this problem let me worry for a long time, with the distinct can not be resolved, I only use the double loop query to solve, and so for a very large amount of data station, it will undoubtedly directly affect
Second, the grammarMATCH (Col1,col2,...) Against (expr [search_modifier])Search_modifier: {in BOOLEAN MODE | With QUERY expansion}For example: SELECT * from Tab_name WHERE MATCH (col1,col2) against (Search_word);The table here needs to be MyISAM
Using cursors (cursor)
1. Declaring a cursor
DECLARE cursor_name Cursor for select_statementThis statement declares a cursor. You can also define multiple cursors in a subroutine, but each of the cursors in a block must have a unique name.
Now let's take a look at the mysql_fetch_field () function. This function reads the instance name and field name of the mysql data table. Let's take a look at its syntax.Mysql_fetch_field (data, field_offset)Mysql_fetch_field ()For example, if the
ECharts maps are used to visualize data in different regions. The ECharts official website provides map data downloads such as map of China and map of the world, and calls the map through js introduction or asynchronous loading of json files.ECharts
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