mysql启动命令

/etc/my.cnf

centos7之后启动命令是 systmctl start mysqld了

====================================
可使用如下命令启动MySQL:

service mysqld start

或者使用如下命令:

/etc/init.d/mysqld start


可使用如下命令重新启动MySQL:

service mysqld restart

或者使用如下命令:

/etc/init.d/mysqld restart

==========================================
————————————————
版权声明:本文为CSDN博主「菜鸟柱子」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/xinpz/article/details/84583704

systemctl status mysqld.service" and "journalctl  -xe

#vi /var/log/mysqld.log

/usr/sbin/mysqld: Binary logging not possible. Message: Either disk is full or file system is read only while rotating the binlog. Aborting the server.

2019-11-11T06:27:02.195037Z 2619 [ERROR] /usr/sbin/mysqld: Binary logging not possible. Message: Either disk is full or file system is read only while rotating the binlog. Aborting the server.
06:27:02 UTC - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=46
max_threads=151
thread_count=13
connection_count=13
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 68196 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7fe7984d4790
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7fe7f55dfe30 thread_stack 0x40000
/usr/sbin/mysqld(my_print_stacktrace+0x3b)[0xf07d6b]
/usr/sbin/mysqld(handle_fatal_signal+0x461)[0x7b97f1]
/lib64/libpthread.so.0(+0xf5d0)[0x7fe82cbdc5d0]
/lib64/libc.so.6(gsignal+0x37)[0x7fe82b5c62c7]
/lib64/libc.so.6(abort+0x148)[0x7fe82b5c79b8]
/usr/sbin/mysqld[0xe91c11]
/usr/sbin/mysqld(_ZN13MYSQL_BIN_LOG13new_file_implEbP28Format_description_log_event+0x4d5)[0xe9a3c5]
/usr/sbin/mysqld(_ZN13MYSQL_BIN_LOG6rotateEbPb+0x3e)[0xe9a43e]
/usr/sbin/mysqld(_ZN13MYSQL_BIN_LOG16rotate_and_purgeEP3THDb+0x8a)[0xea056a]
/usr/sbin/mysqld(_Z20reload_acl_and_cacheP3THDmP10TABLE_LISTPi+0x50f)[0xd0203f]
/usr/sbin/mysqld(_Z16dispatch_commandP3THDPK8COM_DATA19enum_server_command+0x1d26)[0xcd5bb6]
/usr/sbin/mysqld(_Z10do_commandP3THD+0x19f)[0xcd63df]
/usr/sbin/mysqld(handle_connection+0x290)[0xd98320]
/usr/sbin/mysqld(pfs_spawn_thread+0x1b4)[0x1280284]
/lib64/libpthread.so.0(+0x7dd5)[0x7fe82cbd4dd5]
/lib64/libc.so.6(clone+0x6d)[0x7fe82b68e02d]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0): Connection ID (thread ID): 2619
Status: NOT_KILLED

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
2019-11-11T06:27:02.891454Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-11-11T06:27:02.893394Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.26-log) starting as process 24666 ...
mysqld: File './mysql-bin.index' not found (Errcode: 13 - Permission denied)
2019-11-11T06:27:02.925003Z 0 [ERROR] Aborting

2019-11-11T06:27:02.925027Z 0 [Note] Binlog end
2019-11-11T06:27:02.925110Z 0 [Note] /usr/sbin/mysqld: Shutdown complete

2019-11-11T06:27:03.263701Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-11-11T06:27:03.265621Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.26-log) starting as process 24688 ...
mysqld: File './mysql-bin.index' not found (Errcode: 13 - Permission denied)
2019-11-11T06:27:03.267399Z 0 [ERROR] Aborting

2019-11-11T06:27:03.267423Z 0 [Note] Binlog end
2019-11-11T06:27:03.267486Z 0 [Note] /usr/sbin/mysqld: Shutdown complete

2019-11-11T06:27:03.761099Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-11-11T06:27:03.763012Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.26-log) starting as process 24724 ...
mysqld: File './mysql-bin.index' not found (Errcode: 13 - Permission denied)
2019-11-11T06:27:03.764843Z 0 [ERROR] Aborting

2019-11-11T06:27:03.764866Z 0 [Note] Binlog end
2019-11-11T06:27:03.764928Z 0 [Note] /usr/sbin/mysqld: Shutdown complete

2019-11-11T06:27:04.261590Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-11-11T06:27:04.263519Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.26-log) starting as process 24760 ...
mysqld: File './mysql-bin.index' not found (Errcode: 13 - Permission denied)
2019-11-11T06:27:04.265292Z 0 [ERROR] Aborting

2019-11-11T06:27:04.265315Z 0 [Note] Binlog end
2019-11-11T06:27:04.265406Z 0 [Note] /usr/sbin/mysqld: Shutdown complete

2019-11-11T06:27:04.761710Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-11-11T06:27:04.763210Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.26-log) starting as process 24783 ...
mysqld: File './mysql-bin.index' not found (Errcode: 13 - Permission denied)
原文地址:https://www.cnblogs.com/longsanshi/p/11835732.html