Whether in a small free database space or a large e-commerce website, it is necessary to reasonably design the table structure and make full use of the space. This requires us to fully understand the Common Data Types of database systems. Next I
Four key steps for JDBC connection to the MySQL database
1. Find the driver
MySQL currently provides the Java driver for Connection/J, can be downloaded from the MySQL official website, and find the mysql-connector-java-3.0.15-ga-bin.jar file,
REPLACE runs like INSERT. Except for one, if an old record in the table has the same value as a new record used for the primary key or a UNIQUE index, the old record is deleted before the new record is inserted.MySQL Replace INTO descriptionREPLACE
Download phpMyAdmin 3.3.6The address is published. If you are interested in phpMyAdmin, you can go to phpMyAdmin to obtain the latest official address.Download phpMyAdmin 3.3.6Download and try it out. PhpMyAdmin 3.3.6 released this time is a
1. MySQLIt is a relational database management system developed by MySQL AB in Sweden. because of its small size, high speed, and low overall cost, in particular, the open source code features that many small and medium websites have chosen the
XAMMPP Version: xampp-win32-1.8.3-0-VC11-installer
MySQL Version:
[View the current MySQL version]
Use-V Parameters
First, we must think of the parameter command to view the version number. The parameter is-V (uppercase letter) or -- version.
If you carefully check the MYSQL permission table, you will find that there are records with the Host Name localhost and the host name 127.0.0.1. When will these two records be used?
When you use/usr/local/mysql/bin/mysql-u root-p to access the
This article will introduce the differences between mysql 5.5 and 5.6 timestamp fields DEFAULT CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP. I hope this tutorial will be helpful to you.
Mysql5.6 database:
The Code is as follows:
Copy
You can use many methods to import/export ultra-large SQL text files in mysql, such as direct command operations on the client, multipart import, and source command operations on the client.
In practice, sometimes mysql Database Import and import
MySQL database-error 1166 Incorrect column name indicates the field name, which contains spaces. You only need to use alert or phpmyadmin to modify the field.
The following error is reported when Navicat for MySQL is used to modify the table fields
In the past, what I introduced most was to export the data in the database, so that the data and structure in the table can be exported directly. Today, only the data structure needs to be exported without the table, let's take a look at the
Mysqld Program-directory and fileBasedir = path uses the given directory as the root directory (installation directory ).Character-sets-dir = path indicates the directory where the character set is stored.Datadir = path reads database files from a
There are two methods to implement fuzzy query in mysql: LIKE/not like, And REGEXP/not regexp. Next I will introduce their usage, I hope this tutorial will help you.
First, use LIKE/not like,Second, use REGEXP/not regexp (or RLIKE/not rlike, which
In the temporary mysql table, xxx is full. You only need to modify the tmp_table_size and max_heap_table_size parameters in my. ini.
Tmp_table_size if the temporary table in the memory exceeds this value, MySQL automatically converts it to the
We will use join subqueries to update multiple tables using one MySQL statement. Let's take a look at the implementation method.
MySQL itself supports updating multiple tables with one update statement. Sometimes this is a very useful
In php and mysql database queries, I have summarized four methods: mysql_result (): mysql_fetch_row (): mysql_fetch_array (): mysql_fetch_object (): four methods, next, let's test and see the best performance.
1.
The Code is as follows:
This article does not introduce the simple import and export operations on database data using mysqldump. Here we will introduce how to perform Incremental Backup Data and restore Data Based on mysql binlog logs.
Mysql Incremental Backup
A small
Next, let's take a look at the mysql database show processlist result analysis. I hope this article will help you.
Mysql> show processlist;
+ -- + ----- + ------- +
| Id | User | Host | db | Command | Time | State | Info
+ -- + ----- + ------- +
| 20
Mysql applications often use commands such as data backup, permission management, mysql stop and start, and some common database operation commands. I will sort them out below.
Remote Access
Mysql-h localhost-uroot-p
Change Password
Mysqladmin-uroot-
As the programmer may not write the best things, we only need to enable the mysql slow query log function to analyze the performance of each SQL statement. Let's take a look at it.
In MySQL, the definition time of a slow query is specified by the
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