linux mysql怎么安装

来源:互联网 发布:java 类构造器 编辑:程序博客网 时间:2024/04/28 10:11

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.
原创粉丝点击