Download the Installation File
Copy the downloaded file to/usr/local
# Cd/usr/local
Decompress MySQL
# Tar-zvxf mysql-5.0.41-linux-i686-glibc23.tar.gz
Rename
# Music mysql-5.0.41-linux-i686-glibc23 MySQL
# Cp/usr/local/MySQL/support-files/my-medium.cnf/etc/My. CNF
Add mysql users and user groups
# Groupadd MySQL
# Useradd-G MySQL
Modify MySQL Directory Permissions
# Chown-r root/usr/local/MySQL
# Chgrp-r MySQL/usr/local/MySQL
# Chown-r MySQL/usr/local/MySQL/Data
Generate MySQL System Database
#/Usr/local/MySQL/scripts/mysql_install_db -- user = MySQL &
Start MySQL Service
#/Usr/local/MySQL/bin/mysqld_safe -- user = MySQL &
If starting mysqld daemon with databases from/usr/local/MySQL/data appears
The MySQL service is started normally. Press Ctrl + C to jump out.
Create a MySQL database
[Root @ olivenan Home] # MySQL
Welcome to the MySQL monitor. commands end with; or/g.
Your MySQL connection ID is 79
Server version: 5.0.41-log MySQL Community Server (GPL)
Type 'help; 'or'/H' for help. type'/C' to clear the buffer.
Mysql> Create Database freequery;
Create user
Mysql> grant all on *. * To freequery @ "%" identified by "freequery ";
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