Linux安装多个MySQL数据库_MySQL数据库_黑客防线网安服务器维护基地--Powered by WWW.RONGSEN.COM.CN

Linux安装多个MySQL数据库

作者:黑客防线网安MYSQL维护基地 来源:黑客防线网安MYSQL维护基地 浏览次数:0

本篇关键词:数据库多个安装
黑客防线网安网讯:  1、按照常规安装。[root@ff_girl mysql5122]# chown -R root .[root@ff_girl mysql5122]# chown -R mysql data[root@ff_girl mysql5122]# chgrp -R mysql .[root@ff_girl mysql5122]# c...

  1、按照常规安装

[root@ff_girl mysql5122]# chown -R root .
[root@ff_girl mysql5122]# chown -R mysql data
[root@ff_girl mysql5122]# chgrp -R mysql .
[root@ff_girl mysql5122]# cp support-files/my-small.cnf /etc/my5122.cnf
[root@ff_girl mysql5122]# scripts/mysql_install_db --basedir=/usr/local/mysql5122/ --datadir=/usr/local/mysql5122/data/ --user=mysql
Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

。。

  首次启动MYSQL

[root@ff_girl mysql5122]# bin/mysqld_safe --defaults-file=/etc/my5122.cnf &
[1] 13700
[root@ff_girl mysql5122]# 080124 15:01:46 mysqld_safe Logging to '/usr/local/mysql5122/data/localhost.localdomain.err'.
080124 15:01:46 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql5122/data

[root@ff_girl mysql5122]# bin/mysql -uroot -p -S/tmp/mysql5122.sock
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 1
Server version: 5.1.22-rc MySQL Community Server (GPL)

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> show databases;
+--------------------+
| Database      |
+--------------------+
| information_schema |
| mysql       |
| test        |
+--------------------+
3 rows in set (0.00 sec)

    黑客防线网安服务器维护方案本篇连接:http://www.rongsen.com.cn/show-9389-1.html
网站维护教程更新时间:2012-03-20 17:19:04  【打印此页】  【关闭
我要申请本站N点 | 黑客防线官网 |  
专业服务器维护及网站维护手工安全搭建环境,网站安全加固服务。黑客防线网安服务器维护基地招商进行中!QQ:29769479

footer  footer  footer  footer