MySQL usage guide (ON)
Author: King Kong
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.
When you connect to a MySQL server, you should usually use a password. The password is not transmitted on the connection with clear text.
All other information is transmitted as text that can be read by anyone. If you're worried about this, you
4.1 is a beta version of Alpha, this version is not made for dummies or many inconvenient installation programs. However, I quite like it myself.
The distribution of the compression package situation:) Here's my new installation and upgrade to a 3.23
MySQL takes speed as its target
--------------------------------------------------------------------------------
Both MySQL and PostgreSQL are well-known database open source projects, and there is a trend to replace the commercial database system,
The server has recently seen a MySQL Cpu too high a failure, the process is as follows:
The code is as follows
Copy Code
Login to Mysql#mysql-U root-pQuerying the currently executing SQL statementMysql>show full
First open your MySQL console, enter the password after entering
And then I typed the order to tell you why it timed out.
SQL code copy content to clipboard
Show global variables like '
If you set the unique attribute, which is also sensitive to the case of varchar, the resolver
The code is as follows
Copy Code
CREATE TABLE WORDS (ID BIGINT Auto_increment,WORD VARCHAR (128) not NULL UNIQUE,PRIMARY KEY
MySQL Full-text search in the previous article now let's take a look at SQL's fuzzy search. Do we usually use%? *-wait to replace the search content
MySQL provides standard SQL pattern matching and a format for extending regular expression pattern
MySQL Query So far, we've seen a couple of different uses of PHP's mysql_query features, and we'll see more of it in PHP for almost all the work done through MySQL query functionality. We have created a new table and data to insert into the table.
So far, no MySQL has ever been a problem.
Find Backup is kingly.
The script is as follows
The code is as follows
Copy Code
#!/bin/sh# File:/home/mysql/backup.sh# Database InfoDb_name= "Myad"Db_user= "Ad123"db_pass= "ad^
Let's take a look at some test examples
The code is as follows
Copy Code
SELECT * FROM Dlog_user-online_status, username
First look at the inline SQL statement above, username is the primary key of the
When the development and production environment on the same machine, or need to deploy more than one set of test environment on a machine, often need to start multiple mysqld processes, and recently to help test the environment encountered this
The group by IS easily understood in the MySQL statement as a grouped query.For example, select SUM (Score) from user group by name means to query each person's score sumBut, select SUM (Score) from the user group by item, sex?Here is the test
Syntax Introduction:
Insert all columns into a new table
The code is as follows
Copy Code
SELECT * into new_table_name [in externaldatabase] from Old_tablename
Just insert the desired column into the new
Create triggers. The syntax for creating triggers is as follows:
CREATE TRIGGER trigger_name trigger_time trigger_event
On tbl_name for each ROW trigger_stmt
Where the trigger_name identifies the trigger name and is specified by the user;
MySQL's PHP XMLPHP's download page has two files: a zip file and an installation file. Because we need to add extensions to the zip file, all two files are downloaded. Here's a simple step to do after downloading:
1. Install PHP using installation
How to use the Find_in_set function
For example:
There is a Type field in the article table, it stores the article type, there are 1 headlines, 2 recommendations, 3 hotspots, 4 text ... 1,12,13 and so on.
Now there is an article he is a headline,
MySQL Limit optimization method
SELECT * FROM table LIMIT [offset,] rows | Rows Offset Offset
The LIMIT clause can be used to force a SELECT statement to return the specified number of records. LIMIT accepts one or two numeric parameters.
SummaryIn this chapter, we will learn how to store and display information to the database on a Web page.(14:11:25)--------------------------------------------------------------------------------By Wing, source: LinuxaidChapter 4: Using PHP to
1. while loopIn this lesson, we will continue to use PHP and MySQL to write some simple and useful pages. We started to display the data in the database from the database we created yesterday, but it will be slightly improved.First, we use the
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