Home  >  Article  >  Database  >  How to reopen mysql database after closing it

How to reopen mysql database after closing it

王林
王林Original
2020-09-27 15:36:123765browse

How to close the mysql database and reopen it: execute the [service msyqld start] command. Then we can use the [service mysqld status] command to check the status of mysql.

How to reopen mysql database after closing it

Use service to start:

(Recommended tutorial: mysql video tutorial)

[root@localhost /]# service mysqld start (5.0版本是mysqld)
[root@szxdb etc]# service mysql start (5.5.7版本是mysql)

Use mysqld script to start:

/etc/inint.d/mysqld start

Use safe_mysqld to start:

safe_mysqld&

Then use the command

# service mysqld status

or

# service mysql status

Check the startup status of mysql.

If it is mysqld is stopped, it means that the mysql service is stopped. If it is mysqld is running, it means the mysql service is started.

Related recommendations: php training

The above is the detailed content of How to reopen mysql database after closing it. 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