Fedora 13下第一次使用MySQL

2014-11-24 17:54:02 · 作者: · 浏览: 1

不知怎么就稀里糊涂的搞定了,现在回忆一下。
第一步:# /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


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


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


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