MySQL Database Installation

Source: Internet
Author: User
Tags mysql manual
MySQL v4.1.10 for Linux
A multi-threaded, Structured Query Language (SQL) database server with high execution performance, fast operation speed, and ease of use. At present, many commercial Web virtual host Products in China provide support for it.
Http://down.chinaz.com/S/12030.asp
1. decompress the MySQL installation file to a directory. For example,/usr/local/src/
2. Add User Groups and users
# Groupadd MySQL // Add a MySQL user group
# Useradd-G MySQL // Add User MySQL to the MySQL user group
3. Create the original program directory Link
# Cd/usr/local/
# Ln-S/usr/local/src/mysql-standard-4.1.10-pc-linux-gnu-i686/MySQL // create a directory link to the original program under/usr/local/
4. Create an authorization table for MySQL
# Cd MySQL
# Scripts/mysql_install_db -- user = MySQL
5. MySQL directory program root and MySQL user authorization
# Chown-r root.
# Chown-r Mysql Data
# Chgrp-r MySQL.
6. Start the MySQL Service
# Cd/usr/local/MySQL/support-files/
#./MySQL. Server start
7. Test
#/Usr/local/MySQL/bin/MySQL
The prompt for mysql> appears. The installation and running of MySQL are successful.
Enter select now (); Press enter to see the following output interface.
Code:
+ -------------------------------- +
| Now () |
+ -------------------------------- +
| 20:00:03 |
+ -------------------------------- +
1 row in SET (0.00 Sec)

Mysql> enter quit at the prompt to exit
Tip: For more MySQL operation instructions, see the MySQL manual.
8. Disable the MySQL service.
#/Usr/local/MySQL/support-files/MySQL. server stop
Tip: You can create a connection to open and close MySQL applications on your desktop to improve your work efficiency.

Related Article

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.