Home > Database > Mysql Tutorial > How to reopen mysql database after closing it

How to reopen mysql database after closing it

王林
Release: 2020-09-27 15:36:12
Original
3880 people have browsed it

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)
Copy after login

Use mysqld script to start:

/etc/inint.d/mysqld start
Copy after login

Use safe_mysqld to start:

safe_mysqld&
Copy after login

Then use the command

# service mysqld status
Copy after login

or

# service mysql status
Copy after login

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!

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