WEB开发网
开发学院数据库MySQL linux 下 MySQL源码包的安装 阅读

linux 下 MySQL源码包的安装

 2009-05-07 11:19:31 来源:WEB开发网   
核心提示: -R 为递归(即其下所有的子文件的属主也随之改为root) [root@localhost mysql]# chown -R mysql var 改变var的属主为mysql [root@localhost mysql]# chgrp -R mysql . 改变当前目录的属组为mysql

-R 为递归(即其下所有的子文件的属主也随之改为root)

[root@localhost mysql]# chown -R mysql var

改变var的属主为mysql

[root@localhost mysql]# chgrp -R mysql .

改变当前目录的属组为mysql

[root@localhost mysql]#

[root@localhost mysql]# bin/mysqld_safe --user=mysql &

后台启动mysql服务 &为后台启动

[1] 17776

[root@localhost mysql]# Starting mysqld daemon with databases from /usr/local/mysql/var

[root@localhost mysql]#

[root@localhost mysql]# /usr/local/mysql/bin/mysql

登陆到mysql数据库

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 1 to server version: 4.0.27-log

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

mysql>

mysql> show databases ;

基本的查看数据库命令

+----------+

| Database |

+----------+

| mysql |

| test |

+----------+

2 rows in set (0.00 sec)

mysql>

mysql> ?

查询命令

For the complete MySQL Manual online visit:

http://www.mysql.com/documentation

For info on technical support from MySQL developers visit:

http://www.mysql.com/support

For info on MySQL books, utilities, consultants, etc. visit:

http://www.mysql.com/portal

上一页  1 2 3 4 5 6  下一页

Tags:linux MySQL 源码

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接