网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

Mysql5.5数据库启动关闭命令

启动MySQL服务
./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

关闭MySQL服务
./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

文章题目:Mysql5.5数据库启动关闭命令
网页网址:http://bjjierui.cn/article/psgiss.html

其他资讯