728x90
    
    
  /etc/init.d 에 위치한 스크립트를 사용하여 MySQL 을 시작, 종료, 재시작할 수 있다. 다음과 같다.
시작
| 1 | ~$ sudo /etc/init.d/mysql start | cs | 
종료
| 1 | ~$ sudo /etc/init.d/mysql start | cs | 
재시작하기
| 1 2 | ~$ sudo /etc/init.d/mysql restart [ ok ] Restarting mysql (via systemctl): mysql.service. | cs | 
구동 상태 확인하기
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ~$ sudo /etc/init.d/mysql status ● mysql.service - MySQL Community Server    Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)    Active: active (running) since Thu 2018-11-08 09:39:08 UTC; 9s ago   Process: 26410 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/run/mysqld/mysqld.pid (code=exited, status=0/SUCCESS)   Process: 26388 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)  Main PID: 26412 (mysqld)     Tasks: 27 (limit: 3571)    CGroup: /system.slice/mysql.service            └─26412 /usr/sbin/mysqld --daemonize --pid-file=/run/mysqld/mysqld.pid Nov 08 09:39:08 hilbert systemd[1]: Stopped MySQL Community Server. Nov 08 09:39:08 hilbert systemd[1]: Starting MySQL Community Server... Nov 08 09:39:08 hilbert systemd[1]: Started MySQL Community Server. | cs | 
728x90
    
    
  'Season 1 아카이브 > 프로그래밍' 카테고리의 다른 글
| 파이썬을 통한 MySQL 접속 Python MySQL Database Connection (0) | 2018.11.10 | 
|---|---|
| 우분투 18.04 에 Nginx phpMyAdmin 설치하기 Installing phpMyAdmin for Nginx on Ubuntu 18.04 (0) | 2018.11.09 | 
| MySQL 5.7.24 비밀번호 변경 (0) | 2018.11.08 | 
| 구글 클라우드 VM 인스턴스 root 계정 비밀번호 (0) | 2018.11.08 | 
| 지메일 SMTP 서버를 사용하여 워드프레스 메일 발송하기 How to Fix the WordPress Not Sending Emails Issue (0) | 2018.11.06 |