小记

昨天毕业设计中期检查,一运行项目,我天,怎么数据库崩溃了,日志如下:

2020-03-30 00:33:18 5800 [Note] Binlog end
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'partition'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'BLACKHOLE'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_METRICS'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_CMPMEM'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_CMP'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_LOCKS'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'INNODB_TRX'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'ARCHIVE'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'CSV'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'MRG_MYISAM'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'MyISAM'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'MEMORY'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'sha256_password'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'mysql_old_password'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'mysql_native_password'
2020-03-30 00:33:18 5800 [Note] Shutting down plugin 'binlog'
2020-03-30 00:33:18 5800 [Note] /www/server/mysql/bin/mysqld: Shutdown complete

数据库运行报错结果如下:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

各种百度之后的操作【看似并无效果】:

admin@my:~$ mysql -uroot -p111
Warning: Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
admin@my:~$ mysql -u root -p
Enter password: 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
admin@my:~$ mysql -uroot -h 127.0.0.1 -p
Enter password: 
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)
admin@my:~$ ^C
admin@my:~$ sudo systemctl start mysql.service
sudo: unable to resolve host my
admin@my:~$ mysql -uroot -h 127.0.0.1 -p
Enter password: 
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)
admin@my:~$ sudo systemctl start mariadb.service
sudo: unable to resolve host my
Failed to start mariadb.service: Unit mariadb.service not found.
admin@my:~$ 

然后我抱着尝试的心态去宝塔重新启动我的mysql...居然重启成功了!

然后数据库就是各种正常。。。迷之体验,以此记录。

我来吐槽

*

*

仅有 1 条评论