Run the mysql backup and recovery command bitsCN.com under Win to store the backup database under the d: disk root directory. the backup database name is backup20070713. SQL (20070713. SQL indicates the backup date)
Back up the database:
MySQL escape character usage instructions bitsCN. comMySQL escape character "/"
Mfc_basic
MySQL recognizes the following escape characters:
/0
An ASCII 0 (NUL) character.
/N
A newline character.
/T
A positioning character. Separator
/R
A carriage
Mysql encoding setting command bitsCN.com view encoding:
Show variables like 'character % '; or status:
Modify: set variable = set
SET character_set_client = utf8;
Modify the root password for mysql
Method 1:
(Applicable to resetting
Mysql common Maintenance Command bitsCN.com
Analyze Table
When optimizing SQL statements, MySQL Optimizer must first collect related information, including the cardinality of the table (which can be translated as "hash degree "), it indicates the
3 steps to import pure IP data to MySQL: bitsCN.com prerequisites: you will use vi. Obviously, this article is tested in Linux. This document uses the MySQL command line tool. if you do not, you can use phpMyAdmin.
Step 2: Download the pure real IP
Mysql optimization diary bitsCN.com's simultaneous online access volume continues to increase. for servers with 1 GB of memory, the server even crashes every day or gets stuck from time to time. This problem has plagued MySQL for more than half a
Mysql sets bitsCN.com to query the cache.
Query_cache_size = 268435456
Query_cache_type = 1
Query_cache_limit = 1048576
Stored under [mysqld] of the/etc/my. cnf file
Then restart the mysql database.
Service mysqld restart
Mysql Cache is
Is MySQL inserting or updating interrupt records in a trigger? BitsCN.com is an implementation method. The idea is to try to use an incorrect statement in the trigger to interrupt code execution.
Mysql> create table t_control (id int primary key
Solve hibernate + mysql database write garbled Hibernate
BitsCN. comhibernate. cfg. xml with attributes.
True
UTF-8
Mysql drivers are later than 3.0.15,
Add a Filter and use the UTF-8 character set,
If Spring is used, write it in
Mysql common commands and learning experience bitsCN.com
1. PHP steps for database connection:
1. establish a connection with the database:
$ Conn = mysql_connect ("localhost: 3306", "username", "pass ");
Three parameters: the first is the
MySql. the frm database file import problem bitsCN.com has been searched online for half a day. The simplest way is to create a database with the same name as the original one in the new database, and then. copy the frm file.
However, sometimes
The scripts for mysql left connection, right connection, and inner connection bitsCN.com are as follows:
Drop table table1;
Create table 'Andrew '. 'table1'
(
'Name' VARCHAR (32) not null,
'City' VARCHAR (32) NOT NULL
)
ENGINE = MyISAM;
Modify and remove the password of mysqlroot
1. password modification: Use the mysqladmin command 1. for example, if your root user does not have a password and you want to change the password to abc, the command is mysqladmin-u root password abc.2.
Mysql cannot insert the Chinese Incorrectstringvalue bitsCN.com option default-charaset-set = utf8;
Create table a_table (B varchar (255) not null );
Insert into a_table values ('Beijing ');
When Chinese characters are inserted, the system
Mysql Performance check and tuning method bitsCN.com has the following potential when encountering severe performance problems:
1. The index is not created;
2. SQL statements are too complex;
3. configuration error;
4. the machine cannot be loaded;
Install and configure bitsCN.com in green mysql
1. download MySQL
Http://www.mysql.org/downloads I download is mysql-noinstall-5.0.67-win32.zip
II. installation process1. extract the mysql-noinstall-5.0.67-win32.zip to a C disk and rename it mysql5.
How to uninstall mysql
When you detach the old MYSQL database service from your computer, bitsCN.com first stops the MYSQL service in the WINDOWS service. Go to the add and delete programs in the control panel to delete the MYSQL service. However,
An important application of setting the MySQL password to bitsCN.com is how to change the password when the root user password is forgotten. the method used is to ignore loading the authorization table when the MySQL server is started.
MySQL uses a
Install and configure MySQLPlug-in OEM12c to monitor MySQL bitsCN.com
Emcli installation reference
Plug-in
Announcing MySQL Plugin 12.1.0.1.0 for Oracle Enterprise Manager 12c Cloud Control-- Registration information
[Root @ test agent] #/oem/emcli
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