Note: Use Jsp+mysql database to create a message book, first to create a MySQL database, about the use of MySQL to http://pinghui.51.net/download/012mysql.chm download tutorial. Now in order to illustrate the need, we assume that the database has
First, preliminary preparation situation
1. An installed WIN2000 server, note: If IIS is pre-installed, please deactivate or disable the IIS service first.
2. Next software
APACHE: Version: 1.3.22--apache_1.3.22-win32-x86.msi
JDK: Version:
Self-taught Java EE courses, in doing some small things, need to connect the MySQL database, I read a book, and then find their own, step-by-step success, learning is a sharing process, graphic combination, hope to help more people.
First,
About MySQL collation of the need for memory and proficiency in the content
1./* View Operation * *---------------------------------------------------------------------------------------------------- ---1. /* View Operation * *
Show
MySQL stored procedures
14.1.1 Create a stored procedure
In MySQL, the basic form of creating a stored procedure is as follows:
CREATE PROCEDURE sp_name ([proc_parameter[,...]])[Characteristic ...] Routine_body
Where the Sp_name parameter is the
First, Mysqlslap Introduction
Mysqlslap is a MySQL5.1 benchmark benchmarking tool, similar to the Apache Bench load generation tool, which generates schemas, loads data, executes Benckmark and queries data, is simple, flexible, and easy to use. The
The column types supported by MySQL are listed below. The following code letters are used in the description:
M
Indicates the maximum display size. The largest legal display size is 255.
D
Applies to floating-point types and indicates the number of
one, the connection MySQL database
1. First open cmd into the DOS window
2. Switch to the directory: D:\MySql5.0\mysql-5.0.51b-win32\bin (ie: MySQL installation directory under the bin directory, the directory has many exe executable file)
3. Type
Test environment: MySQL 5.0.45
"Note: You can view the database version in MySQL by mysql> SELECT version ();"
one, the connection MySQL.
Format: mysql-h host address-u user name-P user Password
1, connected to the MySQL on the computer.
First
However, please note that the following optimizations are not complete. MySQL has implemented many optimizations, but I don't have time to test them all.
Some of the optimizations for MySQL are listed below:
To remove unnecessary parentheses:
((A
If Tmpdir,mysql is not set, the default value for the system is used, usually/tmp,/VAR/TMP, or/usr/tmp. If the file system that contains the temporary file directory is too small, you can use the "-tmpdir" option for mysqld to specify 1 directories
Tip: If you install MySQL service name is not MySQL, please use a text editor to open the bat file, batch replacement file MySQL.
Mysql.bat Program Source Code
Usage: Save the following file copy for Mysql.bat Direct operation, if your server
Download
A. I'm using the ZIP archive version, and WIN8 64-bit machines support this, so I suggest using this. And this is relatively simple and clean. The address is shown in the picture. Drag to the bottom, see clearly 64bit ZIP Archive, click
In a colleague that the entire installation version of MySQL, and then add to window services, but there are many problems in the middle, summed up personal experience, I hope others do not detours.
1 in the colleague that or to the official
Test environment:
Let's familiarize ourselves with the basic SQL statements to see the basics of the table we're going to test.
Use Infomation_schema
SELECT * from TABLES WHERE table_schema = ' dbname ' and table_name = ' product '
1. Why use triggers:
In a MySQL database, a Database object table is a logical structure for storing and manipulating data, and database object triggers are used to implement an action that is triggered by some table events. In a database system,
Small series for everyone to tidy up a lot of MySQL installation when a variety of common problems in the solution, for your reference, the specific content as follows
Question one:
When you install, reload when the could not start the service
The implication is that the data is modified. There are 3 statements in standard SQL, which are insert, update, and delete. There is another replace statement in MySQL, so this article takes MySQL as the background to discuss how to make an UPDATE
Analyze Table
MySQL's optimizer (optimization component) When optimizing SQL statements, you first need to gather some relevant information, including the cardinality of the table (which can be translated to "hash degree"), which indicates how
I. Export Data external
1 MySQL connection + to output the query results to the file. Execute on the command line (Windows cmd command line, Mac Terminal)
-H: followed by the linked host (host)
-U: The following is the user name
-P:
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