How to start mysql in linux

藏色散人
Release: 2019-06-01 13:16:59
Original
17598 people have browsed it

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

(2), use mysqld script to start:

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

(3), use safe_mysqld to start:

safe_mysqld&
Copy after login

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!

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!