1. Download the corresponding MySQL installation source code packageAddress: http://dev.mysql.com/downloads/mysql/5.1.html2. If you have ever installed, uninstall the unused old installed MySQLBecause there are a lot of Linux distributions, the
Recently in a PHP basic video tutorial, when doing a case, when querying user information through the user name, the first use of the escape function to filter the content submitted by the client and then to the SQL statement for subsequent
1, first turn off MySQL, using the '--skip-grant-tables ' parameter to start mysqld[[Email protected] ~] #service mysqld stop[[email protected] ~]#/usr/bin/safe_mysqld--skip-grant-tables&2, at this time can no password login mysql, change
MySQL Database common commands1. Display DatabaseSHOW DATABASES; Display DatabaseSHOW DATABASES;MySQL-User rights-related dataSYS-a table in which the database's related configuration residesINFORMATION_SCHEMA MySQL itself schema-related
MySQL we used to the engine has MyISAM and InnoDB these two, here we temporarily only do these two kinds of profiles.
MyISAM
InnoDB
Structural differences
Each myisam is stored as three files on disk. The
Ps-ef|grep MySQL//current investigation of PIDAnd thenLsof-p +pid can see the MySQL run serviceBaidu out of other people's wayWhen encountering MySQL card, and then want to know why, I often use the following methods to find the problemShow
Record some of MySQL's database syntax1 Change root password: mysqladmin-u root password ' 1234561 mysql- u user name-p password go in MySQL monitor1 , show databases; show all database names 2 11, CREATE database;1 CREATE all privileges on test.*
Guide
It is well known that in MySQL, the Binlog log of a transaction is written to the Binlog file before the transaction actually commits, and in the 5.7 version of MySQL, the function of so-called lossless replication is provided-that is,
first, what is a character set :To put it simply, a character set is a set of corresponding relationships;1, the current computer is built on the basis of binary system, binary is a numerical expression, that is, binary only expression "number",
Fault descriptionPrompt for error 2002 at startup (HY000)When you start the service, prompt the server quit without updating PID file.Workaround One:1. Because MySQL was uninstalled after reloading, view log files found that port 3306 was occupied.2.
The difference between char and varchar:1) Range of values:Char: Value range: 0~255VARCHAR: Range of values: 0~655352) space occupancy and speed:Char: fixed-length string, large space-intensive, fast, generally used for the constant-size form
MySQL import garbled, usually encountered in the command line. The following is the case of the command line that solves the garbled problem:Method One: Solve garbled problem by adding parameter –default-character-set = UTF8Mysql-uroot-p Linuxsight
1: First, the MySQL service starts2: Open dos as follows, Win7 systemMicrosoft Windows [version 6.1.7601]Copyright (c) Microsoft Corporation. All rights reserved.C:\users\administrator>CD C:\Program Files (x86) \mysql\mysql Server 7.0\bin------into
How MySQL improves the speed of bulk importA recent project test, there are several MySQL database table data records reached hundreds of thousands of, in the building test environment to import test data, very slow.Search on the Internet, there are
Wampserver (windows/apche/mysql/php) Integrated environmentOnline Status: Can be accessed within the area networkOffline Status: Local devices can accessFrom the proposed Web site root directory:Apache--httpd.conf--Search #documentroot #Note: httpd.
The duplicate data method in the mysql query table.
INSERT INTO hk_test(username, passwd) VALUES('qmf1', 'qmf1'),('qmf2', 'qmf11') delete from hk_test where username='qmf1' and passwd='qmf1'
Duplicate data records in the query table in MySQL:
View
MySQL stores the difference between full-width characters and half-width characters. mysql stores full-width and half-width characters.
Unfortunately, the company encountered the MYSQL_DATA_TRUNCATED error when testing IM, and the log record still
Mysql index and FROM_UNIXTIME, mysqlfrom_unixtime
Zero, Background
On Thursday, I received a lot of alarms. I looked at the DBA and found a slow query.
After collecting some information, I found that the slow query problem was hidden. Many people,
Mysql Master/Slave configuration tutorial in windows
The detailed process of configuring the mysql database Master/Slave in windows is as follows:
Tools used:
Mysql, Navicat Premium;
Master database settings:
1. Set the my. ini file;
1. Find the my.
Win10 mysql 5.6.35 winx64 installation-free configuration tutorial, win10winx64
Mysql 5.6.35 winx64 installation-free configuration tutorial in win10. The specific content is as follows:
1. decompress the MySQL package
Decompress the downloaded
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