Sometimes we install or develop Php+mysql+apache applications that require a version of the environment, and we can use the following code to query PHP, MYSQL, and Apache versions of the information to see if they meet our needs.1. Direct access to
Export Database command:
The following specific usage of the command line is as follows: Mysqldump-u user name-p password-d database Name table name Script name;
Mysqldump-h host Address-u user name-p password database name >sql.txt
Mysqldump-h
For better optimization of MySQL in high concurrency situations, it is necessary to understand the locking mechanism of MySQL query update. First, overview MySQL has three levels of locks: page level, table level, row level. The MyISAM and
First: New batch file Backup.dat, which enters the following code:
The code is as follows
Copy Code
net stop MySQLxcopy "C:/Program files/mysql/mysql Server 5.0/data/piaoyi/*.*" d:/db_backup/%date:~0,10%//ynet start
This article describes how to cooperate with the former to achieve keepalived dual-machine hot standby
System environment: CentOS 6.3 x64
MySQL version: mysql-5.6.10
Keepalived version: keepalived-1.2.7
mysql-vip:192.168.7.253
mysql-master1:192.
Method one, directly package MySQL database under the data directory in the database you want to back up the name of the directory, and then restore can be directly replaced
Method Two, using Xcopy timed backup, the following code
Save the. bat
MySQL tutorial regular expression queries and instances^ Start part of matching string$ match End of string$sql = "Select ' Fonfo ' REGEXP ' ^fo$ ' from String_find";. Match any character (including carriage return and new line)$sql = "Select ' Fofo
Two, install MySQL 1, download mysql installation file Install MySQL need the following two files: mysql-server-4.0.16-0.i386.rpm Mysql-clien t-4.0.16-0.i386.rpm Download Address: http://www.mysql.com/downloads/mysql-4.0.html, open this page,
Today, database operations are increasingly becoming a performance bottleneck for the entire application, which is especially noticeable for web applications. It's not just about the performance of the database that DBAs need to worry about, it's
Lu Fei
Source: Dodba (Mysqlcode)
0. Guidance
This article covers almost all of the knowledge points of MySQL Replication (master-slave replication), including the Replication principle, binlog format, how to ensure data consistency
Because the database additions and deletions suddenly burst, need to query is the operation of those tables is particularly frequent, wrote a tool to analyze Bin-log, find and add to change the table, and the number of operations in descending order,
Restrict MySQL from server to read-only status (CentOS 6.6)System: CentOS 6.6MySQL version: 5.1.73In the MySQL database, both the read-only state and the Master-slave settings and relationships are involved in data migration and read-only state
Set the password for MySQL in WampWamp after the installation, MySQL password is empty, then how to modify it? Actually very simple, through a few instructions on the line, below I step by step to operate.1. First, open the MySQL console via
To import *.sql scripts directly in MySQL Qurey Brower, is the command to execute SQL files in MySQL without executing multiple SQL commands at once:Mysql> source D:/myprogram/database/db.sql;Also attached to MySQL common commands:A) connect to
TPCH is a toolkit provided by TPC (Transaction Processing Performance Council) organization. Used for OLAP testing to assess the performance of decision support systems (DSS) in Business Analytics. It includes a complete set of business-oriented
MySQL database rollback method after misoperation, mysql database
Basically, Every programmer dealing with databases (or perhaps your colleagues) will have a problem. How can I roll back MySQL quickly after a misoperation? For example, if you delete
[SQL chapter -- DATABASE/EVENTS], -- databaseevents[SQL chapter] [SQL statement sorting: -- Based on MySQL5.6] [sorted: DATABASE/EVENTS] [will be improved] directory:1. Data Definition Statements:1.1 create database, alter database, show databases 1.
Using tcpdump to capture mysql packets
Using tcpdump to capture mysql packets is as follows:
The command is as follows:
Copy codeThe Code is as follows:Tcpdump-s 0-l-w-dst 192.168.244.10 and port 3306-I eno16777736 | strings
-I indicates the
PHP page to UTF-8 encoding problems1. Add a line at the beginning of the code: The code is as follows:Copy code Header ("Content-Type: text/html; charset = utf-8 "); 2. Php file encoding problemsClick the editor menu: "File"-> "save as", you
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