MySQL database recovery (using mysqlbinlog command) bitsCN. com1: enable binlog logging
Modify the mysql configuration file mysql. ini and add it under the [mysqld] node.
# Log-bin
Log-bin = E:/log/logbin. log
Do not include Chinese characters
Mysqllimit is optimized. the reference of a compound index with millions to tens of millions of pages is applied to the lightweight framework bitsCN. the database comMySql is definitely suitable for DBAs. Generally, you can write 11 thousand pieces
Solve the problem of slow remote connection to mysql (mysql_connect slow connection) bitsCN.com finds that network communication is normal after ping and route, and it is very fast to perform local connection on the mysql machine, therefore, network
Extract data from the database for the last thirty days and generate a bar chart bitsCN.com. run the cd command on the terminal to enter the file directory.
Note: Here is an example of the project.
1. create a project: enter zf create project
MySQL error "Specifiedkeywastoolong; maxkeylengthis1000bytes" solution bitsCN.com is queried. it is because the Mysql field is too long, so I just changed the length of the two fields.
When an Index is created, the length of the key calculated by
Configuration method for dual-machine hot standby of Mysql database bitsCN.com
1. Mysql databases do not have an incremental backup mechanism. when the data volume is too large, backup is a big problem. Fortunately, the mysql database provides a
How to use the LOCATE and POSITION functions in MySQL
BitsCN. comLOCATE (substr, str)
POSITION (substr IN str)
Returns the position of the substring substr that appears for the first time in the str string. If the substring substr does not exist
MySQL database design review notes and project practices bitsCN.com
Author: Yang Xinqi
Recently, three projects were started on hand, and the other two started from the bottom layer. one was started for a while and developed by a small team in a
MysqlLONGBLOB stores binary data (modification + debugging + sorting) bitsCN.com creates a database test, table bintest, and data field data type in the middle of the DBMS to be tested using LONGBLOB.
// Test file c: // test. iso. you can find any
MySQL User authorized to delete authorization method bitsCN.com
User authorization method
You can add new users by issuing the GRANT statement:
The code is as follows:
Shell> mysql -- user = root mysqlMysql> grant all
Mysql database index creation and performance testing bitsCN.com
# --------- Mysql learning (IV) index creation --------#### I suddenly got started today, so I need to add some indexing knowledge.# Create an index. here, the mytab table with less
Two ways for MySQL to view the current running status: bitsCN.com
Method 1: Use the mysql command to view
In MySQL, you can view common system information directly by checking the status, as shown in the following example:
1. $ mysql-u root-p
What can I do if MySQL cannot be used after installation? how can I solve bitsCN.com? here I only talk about some issues related to MySQL database installation?
I have installed MYSQL before. it seems that I do not need to start the service
10 recommended bitsCN. com1. for MySQLSQL statement optimization, set these fields as indexes to sort frequently used fields (such as those frequently used for sorting or searching.
2. use int or tinyint as much as possible for the field type. In
Explanation of MySQL data type varchar bitsCN.com
1. Logic meaning of varchar (N)From MySQL4.1, N in varchar (N) indicates the maximum number of characters (characters) that can be stored in this field, not the number of bytes.
Whether it is a
How to view the encoding format bitsCN.com selected during mysql database installation
Enter the following in dos mode:
1. cd C:/Program Files/MySQL Server 5.5/bin
2. mysql-h127.0.0.1(The address of the host you want to access)-uRoot(User
[MySQL] how to add innoDB to phpMyAdmin and create a foreign key ForeignKey phpmyadminMysql
How to add innoDB to phpMyAdmin
PhpNow (the free green Apache + PHP + MySQL environment package under Win32) finds that the database does not support the
Ubuntu12.04 install and deploy the environment, nginx, tomcat, and mysql. Start tunginxtomcat at startup
Note: jdk, tomcat, and mysql should not be installed in your home directory. in this case, the startup will fail and the system will prompt
Chapter 2 Introduction to MySQL storage engine 3rd overview of MySQL storage engine
Later, MySQL realized the need to change the architecture and stored the front-end business logic and back-end dataWhile clear hierarchies are split up, ISAM is
Restore MySQL. frm ,. myd ,. myi files were removed from a mobile phone Forum website in the early morning. I was lucky to download the database files, but there were three files in it. frm ,. myd ,. myi file, that is, the original MySQL data file.
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