1. in MySQL installation and configuration of fedora, mariadb is a branch of mysql which is directly installed using yum install mysql. It is not much different from mysql in use. But there is a difference. Maybe it's a branch after all. Mariadb5.6
When using mysql, mysql is optimized. The longblob field in mysql is 1 MB by default in mysql 5.5.To change this issue, pay attention to the following points:Com. mysql. jdbc. PacketTooBigException: Packet for query is too large (2054817> 1048576).
In SQL server, how does one track SQL using an event probe?In fact, the method is very simple. Enable the mysql log function and view the tracking log.How to enable mysql log:Configuration method in windows:My Version: 5.0.37-community-nt-log (MySQL
There was a problem in the project these two days, and an error was reported after LIMIT was used.This is the requirement. I have three tables: infor info table, mconfig material configuration table, and maaply material application form. The
1. view log informationCopy codeThe Code is as follows:Mysql> show global variables like '% log % ';+ --------------------------------- +| Variable_name | Value |+ --------------------------------- +| Back_log | 50 || Bin log_cache_size | 32768 ||
1. First, use the system tool to locate the problem [top | nmon | dstat-dcnml | orzdba]:
The top command is used to view the resource usage of each process. Each metric is interpreted as follows [top f | 1 -- help ]:
Line 1: Current System Time,
1 using () is used for join queries on two tables. The column specified by using () must exist in both tables and is used as the join condition. Example: select. *, B. * from a left join B using (colA); equivalent to: select. *, B. * from a left
Time: 2014.01.19
Location: Base
Bytes ----------------------------------------------------------------------------------------I. background
Wow, when I debugged the code this evening, I found that the MySQL database could not be opened because of a
In the past, I used the limit, 20 Method for paging in mysql. I believe you are the same, but to improve the efficiency, make the paging code more efficient and faster, what should we do?
Part 1: Let's take a look at the basic principles of
The following is an example of MySQL installation. It is installed using an executable file! Open the mysqlinstallation file mysql-5.0.27-win32.zip, decompress the file, and run “setup.exe. The following interface is displayed:
Mysql installation
When I installed mysql again today, I always showed a 1045 error at the end. I gave up how many times I had to use qq manager, which is known as a powerful qq manager. Then I searched the internet. The general steps are as follows:
1. Delete mysql
In many cases, you may encounter the following situations when using Mysql:
For the sake of database security, the database administrator adds an "umbrella" to the database When configuring the database to protect the user's security and information
Show status like 'value'; query the performance of the MySQL database.
Value parameter Connections: Number of Connections to the MySQL server Uptime: MySQL Server launch time Slow_queries: Number of slow queries Com_lelect: Number of query
Select * from table where DATE_FORMAT (FROM_UNIXTIME (createtime), '% Y-% m-% D') = '2017-01-02' FROM _ UNIXTIME use syntax
FROM_UNIXTIME (unix_timestamp, format) FROM_UNIXTIME (unix_timestamp), FROM_UNIXTIME (unix_timestamp, format) is a time
Database definition:
A database is a data set that is organized according to a certain data model and has a secondary storage. This set is as unique as possible and provides multiple application services for a specific organization in the optimal
Video tutorial: http://pan.baidu.com/s/1b4hrk
MySQL is a relational database management system developed by MySQL AB in Sweden and currently belongs to Oracle. MySQL is an associated database management system that stores data in different tables
(1) single Field
1. Search for redundant duplicate records in the table. The record is determined based on the (question_title) field.
The Code is as follows:Select * from questions where question_title in (select question_title from people group by
Example
Insert ignore indicates that if the same record already exists, the current new data is ignored;
Insert ignore into table (name) select name from table2
Example
Insert into inserts data if any. If the primary key is not inserted
1.
Okay, I admit it was a major mistake in my project. During the trial run of this project, I modified the length and value of the database field twice, in order not to affect the existing data, I can only find another way to dynamically add, delete,
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.