When executing commands on the MySQL command line interface, remember to set the encoding. Another unpleasant thing is that the last setting on the command line does not exist when you go in next time and you have to set it every time.
Set
When I use a Python script to update a MySQL table, I want to know the update details. So show processlist; after a while, we found that the process to which the script belongs is in sleep state. Run the show processlist command again, and the
Execution sequence:First, on, where, and having.
Usage:On: On is used for filtering when multi-table join queries are performed. On first, it filters out data that does not meet the query conditions, thus reducing the number of data operations
The database on the local machine has not been used for a long time (the local machine is only used for occasional testing), forget the root password, sweat
Finally, use the following solutions:
1. If MySQL is running, first exit: net stop MySQL.2.
In Linux:
MySQL version: ver 14.14 distrib 5.1.41
1 .)
VI/etc/My. CNF, add default-character-set = utf8 under [mysqld], and add default-character-set = utf8 under [client]: WQ save and exit
2.) Run MySQL cmd, MySQL-> service MySQL
1. Install MySql in Ubuntu
Enter sudo apt-Get install mysql-server in the Ubuntu command line to install the MySQL service. By default, MySQL-client is automatically installed when MySQL-server is installed.
The installed MySQL configuration
View engine Information System Information centos6.2 MySQL 5.1.69#1 View All engines
mysql> show engines;+------------+---------+------------------------------------------------------------+--------------+------+------------+| Engine | Support
Recently, I have studied PHP and MySQL development environments, and tested php5foriis6v2.0.exe, a software that has been compared in win2003 + iis6.0 x86os. It mainly includes php5.25 + mysql5.045 + zend3.3a + phpMyAdmin 3.3.0 and other software.
Reference: http://kin111.blog.51cto.com/738881/168984/
The procedure is as follows:1. Create a new project ibatisnew in eclipse, and import the jar packages of MySQL and ibatis. These two packages (ibatis-2.3.4.726.jar + mysql-connector-java-5.0.8-
Original article: http://www.360doc.com/content/10/0911/22/737570_52964836.shtml
Error executing insert: incorrect string value: '\ xe8 \ XAE \ xA1 \ xe7 \ XAE \ x97...' for column 'dep' at Row 1
The solution to this problem is as follows: (read
First, make sure that you have successfully installed hive and MySQL
Add the following to the hive-site.xml to specify the MetaStore address and Connection Method
javax. JDO. Option. connectionurl JDBC: mysql: // 10.20.151.10: 3306/hive?
Create trigger trigger_name trigger_time trigger_event on tbl_name for each row begin [statement] end
Trigger_name: trigger name
Trigger_time: departure time [after: after execution, before: before execution]
Trigger_event: Start event [insert,
1.1 MySQL storage engine Overview
MySQL supports multiple storage engines. When processing different types of applications, you can select different storage engines to improve application efficiency or provide flexible storage.
Including MyISAM,
1.1 Basic Principles for Data Type Selection
Prerequisites: Use a suitable storage engine
Selection Principle: Based on the selected storage engine, determine how to select the appropriate data type
The following options are classified by storage
Today, when I recovered a database, I was really depressed. I used a graphical interface (MySQL administraotr), and the backup file was about 8 Mb. It was nearly 40 minutes after recovery, it is as slow as a cow (my machine configures Core 2 + 2
In JSP, data in the query database is often used. In the same way, we use the SQL statement "select * From tablename order by ID DESC". This method has a disadvantage, when the database is very large, the query speed will become very slow, there is
MySQL optimization is very important. The other most commonly used and most needed optimization is limit. MySQL limit greatly facilitates paging. However, when the data volume is large, the performance of limit decreases sharply.
10 data records are
MySQL statement
First, explain the limit statement!Select * from Table limit parameter 1, parameter 2;Parameter 1: the start position of the database query. If you want to start from 20th, parameter 1 should be 20;Parameter 2: database query length.
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