ArticleDirectory
Install MySQL
Set MySQL Security
Mysql-related directories and files
Install MySQL
Run the yum install command to install MYSQL:
YumInstallMysql-server MySQL
In a simpler way, run the yum groupinstall
There is a project in hand recently, and the database needs to be switched from SQL Server to MySQL. The business reason is not mentioned yet. The younger brother had a headache after obtaining the project, because the project used some new data
MyISAM and InnoDB are the two most important types.
MyISAM:
Storage files:
Data File:. MYD
Index file:. myi
Features:
Table lock, does not support transactions, supports full-text indexing, and supports indexing of text and blob types
Data
[Transfer] http://hi.baidu.com/tuozhuai/blog/item/bc77fd626c9868d6e6113a0b.html
In general, read/write operations in MyISAM are serial, but when querying and inserting the same table, to reduce the frequency of lock competition, according to the
Modify MySQL engine to InnoDB. You can use foreign keys, transactions, and other functions with high performance.
Modify my. ini and add
Default-storage-engine =InnoDB
The red font indicates the engine name to be specified.
Use SQL
This problem is encountered during project creation today.The Chinese prompt "the corresponding host cannot be found ."
At this time, check whether the mysql. Data. dll file version on the database server is consistent with the version under the
I,In yourProgramUsing the database is a good note. If you already have an available MySQL server, you can use the following method in VC to connect to the database.1. Find the include folder under the MySQL (win32) installation directory and add it
Data Type
Description
Bytes
Recommended
Smallint
Integer in the range of-32000 to + 32000
2
Store relatively small integers.For example, age and quantity
Int
Integer in the range of-2000000000 to +
How to change the MySQL passwordUse MySQLUpdate user SET Password = PASSWORD ('newpassword') where user = 'root ';Flush privileges;1. Modify the user table of the MySQL database in the MySQL databaseYou can use normal update and insert statements.2.
To implement a project, you must add a row lock to one or more rows of the data table due to the business logic. For example, the book borrowing system. Assume that the inventory of this book with ID = 1 is 1, but two people borrow this book at the
Date, datetime, and timestamp types in the MySQL database
The datetime type is used when you need to include both the date and time information. MySQL retrieves and displays datetime values in 'yyyy-MM-DD hh: mm: ss' format
The date
Today, I helped my friend configure the MySQL server and couldn't start the service. The error 1067 in the old version was very depressing!
At this time, the search engine plays a role, but the search results are the same. What is the content of
Databases are closely linked to daily applications. Before databases become available, people manually record and process various information. When a large amount of information needs to be recorded, the efficiency of manual processing becomes very
First, let's talk about the differences between the two character sets:
Gb2312 is a standard Chinese character set.
UTF-8 is a variable-length character encoding of Unicode, RFC 3629, can solve the problem of multi-language text display, so as
ByMySQLOther types of pattern matching are extended regular expressions. UseRegexpAndNot RegexpOperator(OrRlikeAndNot rlike, They are synonyms).
Some Characters of the extended regular expression are:
·'.'Match any single character.
·Character
Variables in SQL Server must be affirmed first and then assigned values:
The local variables are identified with one @ and the global variables with two @ (common global variables are usually defined );
Declare the local variable Syntax: declare @
For the official MySQL installation documentation, see 《Installing MySQL from generic binaries on other UNIX-like systemsAnd 《UNIX postinstallation procedures.
Ubuntu version: 12.04 lts
MySQL version:MySQL Community Server 5.5.25
ArticleDirectory
Install httpd
Install MySQL
Install PHP
Install httpd
1. Install httpd. First check whether httpd has been installed:
[Root @ centos-server ~] $ Rpm-Qa |GrepHttpd
If httpd is not installed, run 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service