mysql 不知道怎么使用

mysql 不知道怎么使用

我装的是FC8,原本就已经装了。
[root@localhost yan]# yum install mysql-server
[root@localhost yan]# yum install mysql
[root@localhost yan]# mysql_install_db
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
以上是安装,不过装系统时已经装了
#####################################
下面是启动:书上说用 service mysqld start启动,但我不行,我用/etc/init.d/mysqld start
[root@localhost yan]# service mysqld start
bash: service: command not found
[root@localhost yan]# /etc/init.d/mysqld start
启动 MySQL:                                               [确定]
[root@localhost yan]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.0.45 Source distribution

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

mysql> show databases
    -> exit
   -> exit
#################################
结束用什么的,用exit怎么结束不了,还有用户名和密码不要吗?

汗,刚开始学,原来其他人已经写mysql怎么使用了,学ing