Environment
RedHat Linux 9 + vwware 8.0 + SSH 3.2.9 + Putty 0.62 + MySQL 3.2 + MySQL 5.5
Problem
Linux install MySQL under the following error:
Warning:mysql-server-5.5.28-1.linux2.6.i386.rpm:v3 DSA
Signature:nokey, key ID 5072e1f5
1, MySQL 4.0.12, download URL:
Http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-4.1.12a-win32.zip/from/pick
2.MySQL jdbc driver 3.0.9, download URL:
Http://www.mysql.com/downloads/api-jdbc-stable.html
This article on the installation of
I believe that every project will have user feedback suggestions and other functions, the implementation of a lot of methods, the following is my way to achieve, for everyone to communicate. First look at the concrete interface, three fields. Name,
First, install MySQL
1. Create a system user running a MySQL database, group (if there is no need to create)
[root@www ~] #useradd –m–s/sbin/nologin MySQL//No working directory, landing Shell for Prohibition
2. Unpack and release the source
MySQL Replace into description
The run of replace is very similar to insert. Except for one point, if an old record in the table has the same value as a new record for primary key or a unique index, the old record is deleted before the new record
Functions of the script:
First of all, detect whether the MySQL port is normal, the port does not exist on the implementation of the start of the MySQL service, of course, the location of the startup script according to your installation path will
The concept of view handling functionality is not optimized:
• Indexes cannot be created on the view.
• Indexes can be used for views that are processed using the merge algorithm. However, views that are processed using temporary table algorithms
MySQL has 6 kinds of logs, you must know when monitoring the database system
Select Log
Slow Select Log
Change Log
Binary change log (Binlog)
Alarm Log
The error log.
Can be configured in MY.CNF
Parameters
Description
Log
Text Select Log,
It is important to back up your database if your database tables are missing or corrupted. If a system crash occurs, you will want to be able to recover as few data from your table as possible to the state at which the crash occurred. Sometimes it
Inserting new data using INSERT statements
Syntax: INSERT [into] tbl_name [(Col_name,...)] VALUES (pression,...),...
INSERT [into] tbl_name SET col_name=expression, ...
Let's start by using the INSERT statement to increase the record, which is an
31. Examples of Business
How the Myiasm table handles transactions:
mysql> LOCK TABLES Trans READ, customer WRITE;
Mysql> select sum (value) from trans where customer_id=some_id;
Mysql> Update Customer Set Total_value=sum_from_previous_statement
How to understand hibernate jdbc stored procedures
A stored procedure is a precompiled SQL statement in a database that can be compiled at a time, greatly increasing the speed at which SQL statements are executed.
Benefits: Increase the speed;
First, view and start the MySQL service. After installing MySQL under Windows XP, it has started the service automatically and has a shortcut connection to its client in the Start menu, as shown in Figure 4.1.
Figure 4.1
Can be viewed through
If you're running a Web application that uses MySQL, it's a great opportunity to keep passwords or other sensitive information in your application. Protecting this data from hackers or prying eyes is an important concern because you cannot allow
Skill problem MySQL remote connection appears "Lost connection to MySQL server during query" installed RH 8.0 with its own MySQL after the use of MySQL directly on the computer can be used to log on normally, with
Mysql-u root-p
Added some users,
The way that MySQL uses usernames and passwords differs a lot from how UNIX or Windows uses them:
· MySQL uses the user name for the authentication purpose, regardless of the UNIX user name (login name) or the Windows user name. By default, most
Today's corporate database has stalled and blocked problems, check the database when found, show processlist; you can see a lot of:
.... : 3436942 : unauthenticated user : 192.168.0.4:49607 : : Connect : : login : : 3436943 : unauthenticated user
MySQL is the Linux platform's most popular database system, today is the introduction of MySQL installation and simple operation Method!
groupadd mysql //建立mysql用户组 useradd -g mysql mysql //建立mysql帐户 tar -zxvf mysql-x.x.xx.tar.gz //解压缩mysql cd
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