MySQL installation detailed documentation

Source: Internet
Author: User

First, install MySQL

1. Download the MySQL installation file
The following two files are required to install MySQL:
mysql-server-4.0.16-0.i386.rpm
mysql-client-4.0.16-0.i386.rpm
To: http://www.mysql.com/downloads/mysql-4.0.html, open this page, drop-down page find "Linux x86 RPM Downloads" entry, find "Server" and "Client programs "Item, download the required two RPM files.

2. Install MySQL
rpm file is a software installation package developed by Red Hat, which allows Linux to be exempt from many complex procedures when installing packages. The parameters commonly used for this command during installation are –IVH, where I means that the specified RMP package will be installed and V represents the details of the installation, and h means that the "#" symbol appears during installation to show the current installation process. This symbol will continue until the installation is complete before stopping.
1) InstallationServerEnd
run the following command in a directory with two RMP files:
[root@test1 local]# rpm-ivh mysql-server-4.0.16-0.i386.rpm
The following information is displayed.
warning:mysql-server-4.0.16-0.i386.rpm:v3 DSA Signature:nokey, key ID 5072e1f5
Preparing ... ########################################### [100%]
1:mysql-server ########################################### [100%]
... (Omit display)
/usr/bin/mysqladmin-u root password ' new-password '
/usr/bin/mysqladmin-u root-h test1 password ' new-password '
... (Omit display)
starting mysqld daemon with databases From/var/lib/mysql
If the above information appears, the server installation is complete. Test success can run netstat see if the MySQL port is open, such as open indicates that the service has been started and the installation is successful. The default port for MySQL is 3306.
[Root@test1 local]# Netstat-nat
Active Internet connections (servers and established)
Proto recv-q send-q Local address Foreign address state
TCP 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
The above shows you can see that the MySQL service has been started.
2) Install the client
run the following command:
[root@test1 local]# rpm-ivh mysql-client-4.0.16-0.i386.rpm
warning:mysql-client-4.0.16-0.i386.rpm:v3 DSA Signature:nokey, key ID 5072e1f5
Preparing ... ########################################### [100%]
1:mysql-client ########################################### [100%]
The display is complete and installed.
connect MySQL with the following command to see if the test was successful.


Yum installation (SZ RZ)

After the root account is logged in, execute the following command:

yum install-y lrzsz


MySQL installation detailed documentation

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.