In MySQL, database and table pairs are stored in directories and files under those directories. Therefore, the sensitivity of the operating system determines the case sensitivity of the database and table names. This means that the database and
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.
Download: http://hackmysql.com/mysqlsla
Tar xzvf mysqlsla-2.03.tar.gz
CD mysqlsla-2.03
Perl makefile. pl
Make
Make install
Install the command mysqlsla to the/usr/bin directory by default.
When you install the Perl module through
Core Tip: when installing MySQL, the following error occurs: cocould not start the service MySQL error: 0. Solution: First, stop the MySQL service in the management tools-service, open CMD and enter your MySQL bin directory, for example, c: \
MySQL section:
The character set of the data table and field does not seem to affect the data. Whether I select utf8 or gb2312, the data will be displayed normally.
PHP section:
After mysql_connect, add the following sentence:
Mysql_query
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;
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
Mysqld Program-directory and file
Reference
Basedir = PATH uses the given directory as the root directory (installation directory ).
Character-sets-Dir = path indicates the directory where the character set is stored.
Datadir = path reads database
The preferred engine for transactional databases. It supports acid transactions and row-level locking. InnoDB is designed for maximum performance when processing massive data volumes. The InnoDB Storage engine is fully compatible with the MySQL
OurMySQL BackupSevere System ProblemsBug
Originated fromOpen SourceSoftware XtrabackupA bugHttps://bugs.launchpad.net/percona-xtrabackup/+bug/722638
We have not encountered this problem before large-scale deployment.
After converting the counter to
Show table status returns the following fields:
Name
Table name.
Engine
Table storage engine. Before MySQL 4.1.2, this value is marked as type.
Version
The version number of the. frm file of the table.
Row_format
Row Storage Format
MySQL parameter optimization is difficult for new users. In fact, this parameter optimization is very complicated. For different websites, their online volume, access volume, and number of posts, network Conditions and machine hardware
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
I used SQL Server databases all the time. Recently, my company has a new project to use MySQL databases, many of which are cross-server access. SQL Server uses linked servers for cross-server access, while MySQL is implemented through the federated
Show processlist shows which threads are running. You can also useMysqladmin processlistStatement. If you have super permission, you can see all the threads. Otherwise, you can only view your own thread (that is, the Thread associated with the MySQL
Generally, the memory used is 4 kb per page. If the huge page is used, the default memory is 2 MB per page. If you set MySQL to use the huge page, there are at least two advantages: one is to reduce the errors of the translation lookaside buffer
[Root @ dbsvr01 E] # service mysqld statusMysqld is stopped[Root @ dbsvr01 E] #
========================================
[Root @ dbsvr01 E] #Service mysqld startInitializing MySQL database: Installing MySQL system tables...OKFilling help tables...OK
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