Fedora 13下第一次使用MySQL


用yum查看一下,Fedora 13已经安装有mysql,不想再卸了重新安装。

直接敲入mysql是没有反应的,可以参考这里。

不知怎么就稀里糊涂的搞定了,现在回忆一下。
第一步:# /etc/init.d/mysqld start
==>会出现一大串的东西,按照提示设置一个root的密码。
第二步:# service mysqld start
第三步:mysql -u root -p
之后输入密码,就会出现梦想中的
==================================================================
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 32
Server version: 5.1.48 Source distribution

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
=================================================================

以后使用mysql时,
重复第二步和第三步即可。MS可以设置系统启动时,也自动启动mysql,但已无心研究。

P.S.实在想不明白网上为什么那么多狗血一样的帖子,呼呼拉拉写了一大串怎么启动mysql,结果还是不能用。

相关内容