學習啦>學習電腦>操作系統(tǒng)>Linux教程>

Linux下Mysql啟動、關(guān)閉、重啟指令

時間: 志藝942 分享

  MySQL是一種關(guān)系數(shù)據(jù)庫管理系統(tǒng),關(guān)系數(shù)據(jù)庫將數(shù)據(jù)保存在不同的表中,而不是將所有數(shù)據(jù)放在一個大倉庫內(nèi),這樣就增加了速度并提高了靈活性。對于Linux下Mysql啟動、關(guān)閉、重啟指令你知道么?下面是學習啦小編為大家收集的Linux下Mysql啟動、關(guān)閉、重啟指令,歡迎大家閱讀:

  Linux下Mysql啟動、關(guān)閉、重啟指令

  [root@master ~]# rpm -qa|grep -i mysql

  --查詢linux系統(tǒng)中是否安裝mysql數(shù)據(jù)庫

  mysql-devel-5.1.66-2.el6_3.x86_64

  perl-DBD-MySQL-4.013-3.el6.x86_64

  mysql-5.1.66-2.el6_3.x86_64

  mysql-server-5.1.66-2.el6_3.x86_64

  qt-mysql-4.6.2-25.el6.x86_64

  mysql-libs-5.1.66-2.el6_3.x86_64

  You have new mail in /var/spool/mail/root

  [root@master ~]# /etc/init.d/mysqldstart

  --啟動mysql,也可以使用命令:service mysqld start

  [root@master ~]# /usr/bin/mysqladmin -u root password root

  --設(shè)置root密碼

  [root@master ~]# mysql -u root@localhost

  --登陸到mysql

  Welcome to the MySQL monitor. Commands end with ; or \g.

  Your MySQL connection id is 8

  Server version: 5.1.66 Source distribution

  Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.

  Oracle is a registered trademark of Oracle Corporation and/or its

  affiliates. Other names may be trademarks of their respective

  owners.

  Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

  mysql>quit

  補充:

  [root@master ~]# /etc/inint.d/mysqld stop

  --停止mysql,也可以使用命令:service mysqld stop

  [root@master ~]# /etc/inint.d/mysqld restart

  --重啟mysql,也可以使用命令:service mysqld restart

  
看了“Linux下Mysql啟動、關(guān)閉、重啟指令”還想看:

1.Linux系統(tǒng)重啟命令和關(guān)閉命令怎么寫

2.liunx啟動/重啟/停上MYSQL的命令

3.Nginx服務(wù)器重啟關(guān)閉命令

4.linux重啟MYSQL的命令

5.windows下怎么重啟mysql

Linux下Mysql啟動、關(guān)閉、重啟指令

MySQL是一種關(guān)系數(shù)據(jù)庫管理系統(tǒng),關(guān)系數(shù)據(jù)庫將數(shù)據(jù)保存在不同的表中,而不是將所有數(shù)據(jù)放在一個大倉庫內(nèi),這樣就增加了速度并提高了靈活性。對于Linux下Mysql啟動、關(guān)閉、重啟指令你知道么?下面是學習啦小編為大家收集的Linux下Mysql啟
推薦度:
點擊下載文檔文檔為doc格式

精選文章

  • Linux系統(tǒng)下啟動MySQL的命令及知識
    Linux系統(tǒng)下啟動MySQL的命令及知識

    Linux是一套免費使用和自由傳播的類Unix操作系統(tǒng),是一個基于POSIX和UNIX的多用戶、多任務(wù)、支持多線程和多CPU的操作系統(tǒng)。那么你知道Linux系統(tǒng)下啟動MySQ

  • Linux下開啟或關(guān)閉MySql Server命令
    Linux下開啟或關(guān)閉MySql Server命令

    MySQL 是最流行的關(guān)系型數(shù)據(jù)庫管理系統(tǒng)之一,在 WEB 應(yīng)用方面,MySQL是最好的 RDBMS (Relational Database Management System,關(guān)系數(shù)據(jù)庫管理系統(tǒng)) 應(yīng)用軟件。那么你知

  • Linux CentOS Mysql修改默認端口
    Linux CentOS Mysql修改默認端口

    為了提高服務(wù)器的安全性,下面主要講的是Linux下如何修改Mysql端口。支持Linux環(huán)境下大部分系統(tǒng)的修改,如Centos和Ubuntu等。接下來是小編為大家收集的Lin

  • Linux系統(tǒng)無法訪問MySQL數(shù)據(jù)庫怎么辦
    Linux系統(tǒng)無法訪問MySQL數(shù)據(jù)庫怎么辦

    MySQL是一個關(guān)系型數(shù)據(jù)庫管理系統(tǒng),由瑞典MySQL AB 公司開發(fā),目前屬于 Oracle 旗下產(chǎn)品。那么你知道Linux系統(tǒng)無法訪問MySQL數(shù)據(jù)庫怎么辦么?接下來是小編為大

3028378