Home  >  Article  >  Operation and Maintenance  >  How to start mysql in linux

How to start mysql in linux

藏色散人
藏色散人Original
2019-06-01 13:16:5917679browse

How to start mysql in linux

How to start the Mysql server in Linux:

1. Check the mysql version

Method 1 :status;

Method 2: select version();

2. Common commands for Mysql startup

(1). Use service to start:

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

(2), use mysqld script to start:

/etc/inint.d/mysqld start

(3), use safe_mysqld to start:

safe_mysqld&

The above is the detailed content of How to start mysql in 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