1. Modify the engine
MySQL uses MyISAM by default and does not support transactions. InnoDB must be used to support transactions. You need to modify the configuration file to restart:
VI/etc/MySQL/My. CNF
Add the following content under [mysqld:
1. Delete all matching records with ID values in Table T2.
Delete T1 from T1, T2 where t1.id = t2.id or delete from T1 using T1, T2 where t1.id = t2.id
2. From Mysql Data Table T1, no matching records in data table T2 are found and deleted.
After MySQL enables binglog, log files increase rapidly and occupy disk space quickly.You can delete log files in the following ways:
The client cannot be executed on the server (using the Client Connection Tool !!!1. Set the Log retention period
# Execute the following statement in the slave database to specify the start log file and location for synchronization from the slave Database
Change master to master_log_file = "mysql-bin.000001 ";
Change master to master_log_pos = 1;
Others can
C # connect to MySQL. There is a bug in mysqldriver. dll. Do not use it!
Http://apps.hi.baidu.com/share/detail/20612001
Introduced mysqldrivercs-n-easyquerytools-4.0.1-dotnet2.0.exeIn mysqldriver.
However, this library has a serious problem. It
The default encoding of MySQL is Latin1, which does not support Chinese characters. You need to change the default encoding of the database to GBK or utf8 at noon.
1. You need to log in as the root user to view the database encoding method (the
1. Use the MySQL built-in command mysqldump
Usage:Mysqldump [Options] database [Tables]Mysqldump [Options] -- databases [Options] db1 [DB2 DB3. ..]Mysqldump [Options] -- all-databases [Options]
You can see that you can back up all the databases,
1. Configure the database connection driver
Resources --> JDBC provisionProgram--> Create --> User-Defined (MySQL is not selected) --> implement Class Name
Com. MySQL. JDBC. jdbc2.optional. mysqlconnectionpooldatasource
Name, such as
[MySQL]$ Mysql-3.23.36 CD$./Configure -- prefix =/usr/local/MySQL$ Make$ Make install$ CD ..$ Mysql-3.23.36/scripts/mysql_install_db -- force
[Libiconv]$./Configure -- prefix =/usr/local -- enable-extra-encodings$ Make$ Make install
[Apache]$ CD
Chinese garbled characters -- question mark ??
1: The default Character Set of eclipse is utf8;
2: The default Character Set of mysql6 database is also utf8;
3: The table creation statement also indicates:
Engine = MyISAM Character Set = utf8;
4
Document directory
16.1.1. Use the mysqldump command to back up data
16.1.2 directly copy the entire database directory
16.1.3 quick backup using mysqlhotcopy
16.2.1 restore using MySQL commands
16.2.2 directly copy to the database directory
Group_concat in MySQL is very convenient, not in MS-access. Find one online: http://access.mvps.org/access/modules/mdl0008.htm
Concatenate fields in same table Author(s) Dev Ashish (Q) I need to concatenate a field in the format "Value1; Value2
Document directory
2.1.1 Installation
2.1.2 uninstall
2.2.1 Installation
2.2.2 uninstall
2.3.1. MySQL
2.3.2. mysqladmin
2.1 install the MSI installation package 2.1.1
Note that you must delete the original my. you can change the name of INI
This article from: http://johnnyhg.javaeye.com/blog/245544
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
Incorrect string value:... encountered such an error today. I still cannot insert Chinese characters in the MySQL configuration file, and found a reliable method:Mysql> alter table user convert to Character Set utf8; by doing this, you can modify
Python 3 series has been released to version 3.1.2, and related database connection APIs are also updated, such as Oracle and PostgreSQL. However, MySQL APIs do not support the python3 series.
Recently, an open-source project named mypysql has been
I have been doing LoadRunner tests for several weeks recently. I have some experiences and recorded them for future search.
LoadRunner tests the database by simulating a client to connect to the database server. Therefore, the Protocol (or driver
First, install the ODBC database driver of MySQL in the system. The current stable version is 3.51. Yes:Http://dev.mysql.com/downloads/connector/odbc/3.51.html. Download and install it. On the driver page in Control Panel> Administrative Tools> data
After MySQL is installed, there is only one root user with super management permissions, and the root user is only allowed to be used on the local database. If we want remote management or other users need to access MySQL on my local machine, then
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