Home >Database >Mysql Tutorial >How to reopen mysql database after closing 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.
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!