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
[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:
For info on MySQL books, utilities, consultants, etc. visit:
更多精彩
赞助商链接