溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

Mysql 5.5 數(shù)據(jù)庫(kù)啟動(dòng)關(guān)閉命令

發(fā)布時(shí)間:2020-08-09 14:08:23 來(lái)源:ITPUB博客 閱讀:213 作者:410192979 欄目:MySQL數(shù)據(jù)庫(kù)
啟動(dòng)MySQL服務(wù)
./bin/mysqld_safe --defaults-file=/etc/my.cnf &

[1] 21698
[root@localhost bin]# 160402 05:57:36 mysqld_safe Logging to '/log/err.log'.
160402 05:57:36 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql

error日志中的記錄如下:

160402 05:57:36 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
160402  5:57:36 [Note] /data/bin/mysqld (mysqld 5.5.48-log) starting as process 22108 ...
160402  5:57:36 InnoDB: The InnoDB memory heap is disabled
160402  5:57:36 InnoDB: Mutexes and rw_locks use GCC atomic builtins
160402  5:57:36 InnoDB: Compressed tables use zlib 1.2.3
160402  5:57:36 InnoDB: Using Linux native AIO
160402  5:57:36 InnoDB: Initializing buffer pool, size = 100.0M
160402  5:57:36 InnoDB: Completed initialization of buffer pool
160402  5:57:36 InnoDB: highest supported file format is Barracuda.
160402  5:57:37  InnoDB: Waiting for the background threads to start
160402  5:57:38 InnoDB: 5.5.48 started; log sequence number 1595675
160402  5:57:38 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
160402  5:57:38 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
160402  5:57:38 [Note] Server socket created on IP: '0.0.0.0'.
160402  5:57:38 [Note] Event Scheduler: Loaded 0 events
160402  5:57:38 [Note] /data/bin/mysqld: ready for connections.
Version: '5.5.48-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  production environment

關(guān)閉MySQL服務(wù)
./bin/mysqladmin -u root -p shutdown

Enter password: 
160402 05:56:10 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
[1]+  Done                    ./mysqld_safe --defaults-file=/etc/my.cnf

error日志中的記錄如下:

160402  5:56:09 [Note] /data/bin/mysqld: Normal shutdown

160402  5:56:09 [Note] Event Scheduler: Purging the queue. 0 events
160402  5:56:09  InnoDB: Starting shutdown...
160402  5:56:10  InnoDB: Shutdown completed; log sequence number 1595675
160402  5:56:10 [Note] /data/bin/mysqld: Shutdown complete

160402 05:56:10 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI