Installation Environment: This article is used in the Debian7 32-bit.
First, install and configure the Apache Web server
Run the upgrade command to ensure that all aspects of our system components are up to date.
The company uses the Master-slave structure, on the concrete study under, here records the related content.
The benefits of replication
Read-write Detach: The primary database is responsible for writing and update data and reads from the
Bulk Delete Multiple tables
Delete all pre_ prefixes table
The code is as follows
Copy Code
SELECT CONCAT (' drop table ', TABLE_NAME, '; ') from Information_schema.tables whereInformation_schema.tables.TABLE_NAME like '
Import Error: 40101 SET @OLD_CHARACTER_SET_CLIENT =@ @CHARACTER_SET
method to enter: Mysqluse test; MySQL source c:/test.sql Import data, if the target database or table is the UTF-8 character set, and the import SQL has Chinese, may be garbled in
Problem analysis
Error causes, some netizens say is frequent query and update [datasheet] table caused by indexing error, because my page is not static generation, but dynamic page, so I agree with this argument. It is also said that the MySQL
1, why does PHP choose MySQL as a database?
2, MySQL database to create users
This article mainly writes MySQL creates the user's statement the difference, turns from Isher's blogspot, because in writes when thought why does not use other database,
MySQL Four transaction isolation level detailed and comparison
According to the sql:1992 transaction isolation level, InnoDB is repeatable by default (Repeatable Read). MYSQL/INNODB provides all four transaction isolation levels described by the
Objective
The most common operation of C # to manipulate MySQL's large amount of data is to select the data and then process the data in C # before inserting it into the database. In short, select-> process-> Insert three steps. For small amounts
MySQL supports the two main table storage format Myisam,innodb, last month when doing a project, first used InnoDB, the result is particularly slow, 1 seconds can only insert 10. Later replaced by the MyISAM format, a second inserted tens of
Due to the openness and stability of its source code, and the perfect combination of the popularity of the site with the "Americium" PHP, many sites now use it as a back-end database, so that it has been widely used. Security considerations require
For its users and applications, each VPS platform runs and manages exactly the same as a stand-alone host, because each VPS can be restarted independently and has its own root access, user, IP address, memory, process, file, application, System
One, two-machine mutual standby, full automatic switching scheme:
1, Topology map:
2. Explanation:
(1), assuming the extranet domain name blog.s135.com to the external network virtual IP 72.249.146.214, LAN hosts set DB10 corresponding
JDBC Connection MySQL
JDBC Connection MySQL
Loading and registering JDBC drivers
Class.forName ("Com.mysql.jdbc.Driver");Class.forName ("Com.mysql.jdbc.Driver"). newinstance ();
The JDBC URL defines the connection between the driver and the data
Database optimization has a lot to say, according to the amount of data can be divided into two stages: stand-alone database and sub-Library, the former can support 500W or 10G of data, more than this value will need to consider the Sub-Library
Autocommit is a change in transaction submission method parameters, set to 1 o'clock, all changes to the immediate effect of the change, that is, 1 o'clock, after the execution of the statement, the transaction automatically submitted. If set to 0 o'
If you want to separate the WEB server from the database server, you need to configure the database server so that MYSQL/MARIADB can log on remotely.
Assume:
Web Server IP Address: 192.168.33.61Database server IP Address: 192.168.33.63Server
By default, MySQL does not have a root password and can log in directly after installation:[Email protected] ~]# Mysql-urootWelcome to the MySQL Monitor. Commands End With; or \g.Your MySQL Connection ID is 9Server version:5.1.49 MySQL Community
Detailed description of MySQL implementation tree traversal and simple implementation examples, mysql examples
MySQL implements tree traversal
Two fields with parent-child relationships in a table, such as empno and manager, need to be traversed in
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