MySQL Default encoding is Latin1, does not support Chinese, so how to modify the default encoding of MySQL, the following UTF-8 as an example to illustrate how to modify the default encoding of MySQL.
The simplest and most thorough method in
1. Set the character set UTF-8 during MySQL installation. The JDBC driver is later than 3.0.15.
2. Add attributes to the hibernate configuration file.
true
UTF-8
3. Set filter in Web. xml=======================================================
Part1: Change MySQL Default character set to utf8 in my. CNF
Http://stackoverflow.com/questions/3513773/change-mysql-default-character-set-to-utf8-in-my-cnf
[Mysqld]Init_connect = 'set collation_connection = utf8_unicode_ci'Init_connect = 'set names
I. MySQL Stored Procedure
First, let's talk about the creation Syntax:
CREATE PROCEDURE sp_name ([proc_parameter[,...]]) [characteristic ...] routine_body
Here is a simple example.
"Pr_add" is a simple MySQL stored procedure. This MySQL stored
It is better to explain the classification of the database separately. However, as a skill, it is hard to determine how to classify the database.
Backup method:First, obtain the installation path of the MySQL program through the registry. If it is
Turn: http://www.68design.net/Development/Database/25689-2.html
Many friends have installed MySQL but do not know how to use it. In this article, we will connect to MySQL,You can learn some common MySQL commands by changing passwords and adding
Reproduced http://isky000.com/database/mysql-performance-tuning-hardware
Next, the last article on selecting the storage engine for MySQL database performance optimization is the sixth article in the MySQL database performance optimization topic
Extract php-5.0.5-win32.zip to the target file, save PHP. ini-Dist as PHP. ini, and modifyExtension_dir = "D: \ PHP \ Ext" // maps to the extension file of the PHP extension file, which is saved to some extension DLL, such as php_mysql.dll and
Original article address:'Mysql' is not an internal or external command, nor is it a solution for running programs or batch processing files
Author:Yan peifeng
'Mysql' It is not an internal or external command, nor a workable program or batch file
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
For example, as shown in, the emailsource field of the database is summarized by date.
Therefore, we can write the following SQL statement class to solve this problem.
SELECT sum(case when `EmailSource`='FM' then 1 else 0 end) as
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
1. Obtain the total number of processes under the MySQL user
PS-Ef | awk '{print $1}' | grep "MySQL" | grep-V "grep" | wc-1
Ii. Host performance status
# Uptime
[Root @ ~] # Uptime13:05:52 up 53 days, 52 min, 1 user, load average: 0.00, 0.00,
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
Recently, the customer's response to a page is getting slower and slower. It takes more than a dozen seconds to complete the operation.
SQL is not complex, probably because: Select field from table 1 where field 1 not in (select Field 2 from table 2
Published on blog.csdn.net/zxub
After MySQL is installed, phpMyAdmin is used again, and a problem is found. You cannot create a new database when logging on to MySQL using a common SA user. After re-installing the PHP runtime environment and
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.