The test environment is win7, office 2010, and MySQL 5.5.42.
Step 1:
Select the data block to be imported. an additional column is required.
Step 2:
Copy the selected data block to a new Excel worksheet and save it as a text file
MySQLInstall configurations
1.Download mysql5.5.18 Green Edition and MySQL Official Website: mysql.com.
2.Decompress the package to the Directory D: \ mysql5.5.18.
3.Add MySQL to the environment variable path:
; D: \ mysql5.5.18 \ bin
4.
After you reinstall the system, you don't need to reinstall mysql. You just need to add the MySQL service to the System Service. The specific steps are as follows:
Install MySQL Service
Create and edit a BAT file with the following content,
Recently, due to the increase in database read requests, there was a serious read/write lock problem. Due to Master/Slave separation, the master server quickly completed the write operation, however, a large number of select queries in the slave
In daily work, for MySQL master-slave ReplicationCheck: on the one hand, we need to ensure that the overall structure of the replication is normal, and on the other hand, we need to check whether the Master/Slave Data is consistent. For the former,
This article introduces six useful MySQL SQL statements. Many may use PHP to implement these functions.
1. Calculate the number of years
You figured out how old this person is on your birthday.
Select date_format (from_days (to_days (now ()-to_
Alter table: add, modify, and delete table columns, constraints, and other table definitions.
View column: DESC table name;
Alter table t_book Rename to BBB;
Add column: alter table table name Add column name varchar (30 );
Delete column:
Port the database previously connected to sqlserver to MySQL.
The inserted Chinese data is garbled.
Find a solution for surfing the internet,
1. Change the connection string "JDBC: mysql: // localhost: 3306/JD? Useunicode = true & amp;
The most frequently asked question is about MySQL database performance optimization, so I plan to writeMySQL database performance optimizationIn this article, I hope to help MySQL DBAs at the early stage and other friends who are interested in MySQL
Next to the previous articleMySQL database performance optimization-SQL Optimization, This isMySQL database performance optimization topicsThe fifth article in the series:MySQL database performance optimization-storage engine Selection
The MySQL
This is the fotolog experience. It is said that fotolog has deployed 51 memcached instances on 21 servers and cached up to GB of content on 21 servers, this number is much larger than that of databases on many websites. The original Article is a
Start: Net start MySQL;Enter: mysql-u root-P/MySQL-H localhost-u root-P databasename;List databases: Show databases;Select Database: Use databasename;List tables: show tables;Show columns from tablename;Create a database: Source
Method: Add explain before a general SQL statement;Meaning of analysis results:1) Table: The table name;2) Type: Connection type (all/range/Ref ). Among them, ref is the most ideal;3) possible_keys: query the available index names;4) Key: actually
InnoDB and MyISAM are the two most commonly used table types in MySQL, each with its own advantages and disadvantages, depending on the specific application.The basic difference is that the MyISAM type does not support advanced processing such as
Use the mysqlbinlog command to restore the database.
BINLOG backs up data by recording binary files, and then restores data from the binary file to a certain time period or operation point.
1: Enable BINLOG Logging
Modify the MySQL configuration
For the use of the mysqlbinlog tool, you can refer to the MySQL help manual. It has detailed usage,
In this example, the focus is on the use of the -- start-position parameter and -- stop-position parameter.
· -- Start-position = N
Read from the
1. MySQL remote connection commands can be used to remotely import and export dataMysqldump -- default-character-set = gb2312-hsf-0000000.00-uroot-pxxxxxx mydatabase> D: \ data. SQLExport the specified database to an external SQL file!Restore
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