MySqlBlob image storage Bug solution: the index exceeds the limit of the array. the error said goodbye to the network for more than a week, and finally returned. The problem was thrown to the group. some netizens raised the following question:
CYQ.
MySQL replication principle and configuration I. basic principles of Mysql replication
II. Binlog format in Mysql replication
2.1 Introduction to three formats
2.2 Advantages and disadvantages of Binlog format
2.3 Basic Binlog configuration
III. two
To forcibly re-change the password of mysql, you need to force re-change the password as follows:
/Etc/init. d/mysql stop (service mysqld stop)
/Usr/bin/mysqld_safe-skip-grant-tables
Enable another SSH connection
[Root @ localhost ~] # Mysql
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 *
Mysql initializes the root password and allows remote access to Mysql initializes the root password and allows remote access
Mysql has no password by default. enter mysql-u root to enter mysql.
1. initialize the root password
Enter the
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
Linux + iptables + Mysql initial configuration iptables
Configure the NIC
Method 1: place the following command in the/etc/rc. d/init. d/rc. local file.
[Root @ local root] # ifconfig eth0 down
[Root @ local root] # ifconfig eth0 up
[Root @
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
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