Home >Database >Mysql Tutorial >How to open mysql database under linux

How to open mysql database under linux

王林
王林Original
2020-10-13 15:51:4010729browse

How to open the mysql database under Linux: First execute the [service mysqld start] command to start the mysql service; then execute the [mysql -u user -p passwd] command to connect to the database.

How to open mysql database under linux

To start the mysql service, we usually use the command service mysqld start. If there is no problem, the mysql service can be started.

(Recommended tutorial: mysql video tutorial)

How to judge whether the mysql service has been started successfully?

One is to view the process, we use the command ps -ef|grep mysqld to view.

A more reliable method is to use the command mysql -user -p passwd to connect and see if the connection can be made.

Related recommendations: mysql tutorial

The above is the detailed content of How to open mysql database under linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn