现在的位置: 首页 > 综合 > 正文

linux mysql怎么安装

2012年01月02日 ⁄ 综合 ⁄ 共 816字 ⁄ 字号 评论关闭

1. Fortunately it’s very easy to check if the MySQL server is running:
$ ps -el | grep mysqld
If you see one or more mysqld processes running, the server has been started.

2. 安装命令:sudo apt-get install mysql-client-core-5.5

3.Try typing \s to get some additional information on your server.

4.You can get more information by using the mysql -?
command, which prints even more details about
the server.In the output there is one important thing to check for. After the list of arguments, you will
usually see something like Default options are read from the following files in the
given order:. This tells you where to find the configuration file that you will use if you need to configure
your MySQL server. The usual configuration file is /etc/my.cnf, though some distributions, like
Ubuntu, use /etc/mysql/my.cnf.

5.mysqladmin -u root version
The output will serve not only to confirm that the server is running but also to give you the version
number of the server you are using.

抱歉!评论已关闭.