Home > Database > Mysql Tutorial > body text

How to open mysql database under linux

王林
Release: 2020-10-13 15:51:40
Original
10675 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template