When querying MYSQL, the WHERE condition value is numeric.
SELECT * FROM demo WHERE status = 1;
I cannot find the desired result. I found the cause of the problem.
In my database, the status field type is enum. why is it not numeric?
SELECT *
In mysql, the difference between engineinnodb and enginemyisam is that the MyISAM type does not support advanced processing such as transaction processing, while the InnoDB type does. MyISAM tables emphasize performance, and the execution speed is
Mysql table sharding note (2) using the merge storage engine as a column to implement table sharding
It takes about 6 minutes to split eight tables with million data records
1. create eight sub-tables systemlog1, systemlog2, systemlog3, systemlog4
Mysql5.5 + mha installation configuration + vipip drift
I. Overview
MHA is a MySQL Failover Solution written by a Japanese in Perl to ensure high availability of the database system. failover and MHA deployment can be completed within the downtime (
Create or delete a user in Mysql 1. create a user
Log on to MYSQL:
@> Mysql-u root-p
@> Password
Create a user:
Mysql> insert into mysql. user (Host, User, Password) values ("localhost", "test", password ("1234 "));
In this way, a
MySQLINSERT
INSERTInsert:
INSERT INTO card(cardno, cardnum) VALUES('1111', '100');INSERT INTO card(cardno, cardnum) VALUES('2222', '200');...
For normal INSERT inserts, to ensure that duplicate records are not inserted, we only need to create
Use mysql python in python
Reason
Recently, I am tossing a small item to capture the online page, parse it, and put the result in the database. If you understand the advantages of Python in this regard, you can choose it. Because I have a server
MySQL master-slave synchronization is a mature architecture with the advantages of: ① the query can be performed on the slave server (that is, the read function we often call ), reduces the pressure on the master server. ② back up the master server
PHPMYSQL basic tutorial 1. three methods of annotation
① # Comment The shell style here
② // Note the c ++ style here
③/* Comments */c-style multi-line comments should not be placed in one line (single-line comments should be used //) to prevent
Mysql forgets to reset the root password. This article uses Ubuntu as an example.
1. modify the Mysql configuration file
# Vim/etc/mysql/my. cnf ### or/etc/my. cnf ### add skip-grant-tables under the [mysqld] line, save it, and re-execute mysql
MySql remote connection cannot be enabled
1. change the table method.
Use mysql management tools, such as SQLyog Enterprise
It may be that your account is not allowed to log on remotely, but only on localhost. At this time, you only need the
Centos tomcat + mysql configuration and project deployment CentOSTomcat
TOMCAT server configuration
1. jre installation
1.1 View and uninstall the original JDK from centos
[root@balakids home]# java -version|grep gcj [root@balakids home]# yum
Mysql backup command brief backup MySQL database
Mysqldump-hhostname-uusername-ppassword databasename> backupfile. SQL
Backing up a MySQL database is in the format of a table with deletion, so that the backup can overwrite existing databases
Mysql5.6 native supports migration of a single table. you do not need to export a table before 5.6. to migrate a table to another server, you must use the import and export methods. In version 5.6, you can directly copy the. ibd file for fast
Emacssql-mode automatically connects to the database (currently only MySQL is supported). The SQL-mode of Emacs can be used as a database client. you can open one. SQL file, connect to the database, and execute some SQL commands in the SQL file.
Mixer: mysql Protocol Analysis Overview
To implement a mysql proxy, you must first understand and implement the mysql communication protocol. In this way, the proxy can be used to build a bridge between the client and the server.
Mixer mysql
Settings of the MySQL decompressed character set in windows (MariaDB is also applicable) MariaDB
MySQL character set extraction in windows (MariaDB is also applicable)
Today, I got some configurations of MySQL decompressed and found some
[Switch] MySQL flash exit to solve the problem: enter the password flash, and there is no prompt at all. the password must be correct first ..
So I thought of skipping permission verification directly and used the following methods:
I,
First,
Self-made mysql master-slave replication (real-time) software -- configure mysql 5.5 -- my. ini -- innodb database engine configuration
My machine configuration is not a high-end configuration. generally, 2 GB memory is configured for a laptop.
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