MySQL database is the first choice for the backend database of small and medium sized web sites, because it is free for non-commercial applications. Web developers can build a "linux+apache+php+mysql" platform, which is one of the most
has been stuck on a very strange database issue for a long time, slow log is full of some very basic SQL statements, the primary key query or update the simple field based on the primary key, should be the milliseconds to return the results of the
Linux is not specifically designed for MSSQL access to the library, but between the MSSQL is derived from Sybase, so access to Sybase's library can naturally access Mssql,freetds is such a realization.Perl typically uses DBI to access the database,
The difference between a MySQL int (3) and an int (11)
Summing up, int (m) Zerofill, plus zerofill after M to show a little bit of effect, such as int (3) Zerofill, you insert into the database is 10, then the actual insertion of 010, that is, add
The LOAD DATA infile statement reads from a text file into a table at a high speed. If you specify a local keyword, read the file from the client host. If local is not specified, the file must be located on the server. (Local is available in MySQL3.2
MySQL database in the query, sometimes the English letter case sensitive, sometimes not, mainly by the MySQL character validation rules of the setting of the decision, usually by default is not supported uppercase and lowercase sensitive.
1. What
Small and medium site simple backup strategy
Based on Drupal's small and medium line website, we can use the Backup_migrate module, which provides the function of the regular backup, the backup time, how many backup and so on, and so on, after
First, the purpose of the backup
Do disaster recovery: Restore and restore corrupted dataChange in demand: need to restore data to change before it changesTesting: Testing whether new features are available
Second, backup needs to consider the
To see if the event Scheduler is currently open, you can perform the following sql:
Show VARIABLES like ' Event_scheduler ';Or
SELECT @ @event_scheduler;Or
Show Processlist;If the display:
+-----------------+-------+| variable_name | Value |+----
It took so long to find out that I didn't know what the difference was between Utf_bin and Utf_general_ci.CI is case insensitive, that is, "case-insensitive", A and a will be treated as the same in character judgments;The bin is binary, and a and a
Page level: Engine BDB.Table level: Engine MyISAM, understood to lock the entire table, can be read at the same time, write notRow level: Engine INNODB, separate one-line record lock
Table level, locking the entire table directly, and other
In MySQL, databases and tables correspond to directories and files in those directories. Thus, the sensitivity of the operating system determines the case sensitivity of database and table naming. This means that database and table names are case
Conventions and styles conventions and programming styles
Every time I want to demonstrate the actual code, I adjust the code that appears on the MySQL client's screen, changing the font to courier so that they look different from normal text
mysql| Basic Tutorials HTML and PHP, MySQL interaction
Why should I use a database?
World Wide Web (WWW) is more than just a place to provide information. If you have something, make a website, you can share it with people all over the world. But
MySQL MySQL Getting Started Guide recommended: Dream published Date: October 10, 2000 reading: 2039 Miles Tsai (net-bull@126.com)
Songzy@mailcity.com 2000.2
First, SQL crash
Structure Query Language (SQL) is a standard language used to query
MySQL can be connected to the Web through PHP in two ways, a MySQL-related function via PHP, and another ODBC-related function via PHP
The related functions are as follows:
MySQL function
Mysql_affected_rows: Gets the number of columns affected
061 How do I delete a table?
Answer: Run command drop TABLE table_name;
062 Creating an Index
Indexing is especially important for queries as a major application. Most of the time the performance problem is simply because we forgot to add the
Download page: http://dev.mysql.com/downloads/mysql/5.0.html#downloads
To the bottom of the page, find source downloads, this is the source version, download the 1th tarball
Groupadd MySQL
Create a new user group named MySQL
useradd-g MySQL
[Data recovery failure description]
An important MySQL database server, 146GB*2,RAID1, about 130GB data volumes, stores approximately 200~300 databases. At ordinary times, the administrator for each database dump, directly compressed into the. GZ
T-SQL statement and several database engines, t-SQL Database Engine
Create a table
Note:
A. Self-Growth
B. database engine,ISAM is a well-defined and time-tested data table management method. It is designed to take into account that the number of
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