Bonjour r2mi et merci pour ton aide !
1/ le log /var/log/mysql/error.log
est vide même après service mysql restart
!
2/ rien trouvé avec find / -type f -executable -name mysqld_safe
3/ voici la fonction qui ne trouve pas my_print_defaults
get_mysql_option() {
RESULT=$(my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1)
if [ -z "$RESULT" ];
then
RESULT="$3"
fi
echo $RESULT
}
4/ voici la version de MySQL
(MariaDB
)
root@debian:~# mysql --version
mysql Ver 15.1 Distrib 10.1.37-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
5/ reconfiguration de MySQL Server
impossible
root@debian:~# dpkg-reconfigure mysql-server
dpkg-query: le paquet « mysql-server » n'est pas installé et aucune information n'est disponible
Utilisez dpkg --info (= dpkg-deb --info) pour examiner les fichiers archives,
et dpkg --contents (= dpkg-deb --contents) pour afficher leur contenu.
/usr/sbin/dpkg-reconfigure: mysql-server n'est pas installé
6/ j’ai sauvegardé mes bases
cp -r /var/lib/mysql/* /root/crash_mysql/
7/ contenu de la fin du log d’hier :
root@debian:~# zcat /var/log/mysql/error.log.1.gz
2019-01-15 23:30:38 855 [Note] /usr/sbin/mysqld: Shutdown complete
2019-01-15 23:30:38 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
2019-01-15 23:30:38 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2019-01-15 23:30:38 0 [Note] /usr/sbin/mysqld (mysqld 5.6.34) starting as process 32409 ...
2019-01-15 23:30:38 32409 [Warning] Buffered warning: Changed limits: max_open_files: 1024 (requested 5000)
2019-01-15 23:30:38 32409 [Warning] Buffered warning: Changed limits: table_open_cache: 431 (requested 2000)
2019-01-15 23:30:38 32409 [Note] Plugin 'FEDERATED' is disabled.
2019-01-15 23:30:38 32409 [Note] InnoDB: Using atomics to ref count buffer pool pages
2019-01-15 23:30:38 32409 [Note] InnoDB: The InnoDB memory heap is disabled
2019-01-15 23:30:38 32409 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-01-15 23:30:38 32409 [Note] InnoDB: Memory barrier is not used
2019-01-15 23:30:38 32409 [Note] InnoDB: Compressed tables use zlib 1.2.8
2019-01-15 23:30:38 32409 [Note] InnoDB: Using Linux native AIO
2019-01-15 23:30:38 32409 [Note] InnoDB: Using CPU crc32 instructions
2019-01-15 23:30:38 32409 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2019-01-15 23:30:38 32409 [Note] InnoDB: Completed initialization of buffer pool
2019-01-15 23:30:38 32409 [Note] InnoDB: Highest supported file format is Barracuda.
2019-01-15 23:30:38 32409 [Note] InnoDB: 128 rollback segment(s) are active.
2019-01-15 23:30:38 32409 [Note] InnoDB: Waiting for purge to start
2019-01-15 23:30:39 32409 [Note] InnoDB: 5.6.34 started; log sequence number 127410191
2019-01-15 23:30:39 32409 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
2019-01-15 23:30:39 32409 [Note] - '127.0.0.1' resolves to '127.0.0.1';
2019-01-15 23:30:39 32409 [Note] Server socket created on IP: '127.0.0.1'.
2019-01-15 23:30:39 32409 [ERROR] Column count of mysql.events_waits_current is wrong. Expected 19, found 16. Created with MySQL 50553, now running 50634. Please use mysql_upgrade to fix this error.
2019-01-15 23:30:39 32409 [ERROR] Column count of mysql.events_waits_history is wrong. Expected 19, found 16. Created with MySQL 50553, now running 50634. Please use mysql_upgrade to fix this error.
2019-01-15 23:30:39 32409 [ERROR] Column count of mysql.events_waits_history_long is wrong. Expected 19, found 16. Created with MySQL 50553, now running 50634. Please use mysql_upgrade to fix this error.
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_host_by_event_name' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Incorrect definition of table performance_schema.events_waits_summary_by_thread_by_event_name: expected column 'THREAD_ID' at position 0 to have type bigint(20), found type int(11).
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_user_by_event_name' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_account_by_event_name' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Column count of mysql.file_summary_by_event_name is wrong. Expected 23, found 5. Created with MySQL 50553, now running 50634. Please use mysql_upgrade to fix this error.
2019-01-15 23:30:39 32409 [ERROR] Column count of mysql.file_summary_by_instance is wrong. Expected 25, found 6. Created with MySQL 50553, now running 50634. Please use mysql_upgrade to fix this error.
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'host_cache' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Incorrect definition of table performance_schema.mutex_instances: expected column 'LOCKED_BY_THREAD_ID' at position 2 to have type bigint(20), found type int(11).
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'objects_summary_global_by_type' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Incorrect definition of table performance_schema.rwlock_instances: expected column 'WRITE_LOCKED_BY_THREAD_ID' at position 2 to have type bigint(20), found type int(11).
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'setup_actors' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'setup_objects' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'table_io_waits_summary_by_index_usage' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'table_io_waits_summary_by_table' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'table_lock_waits_summary_by_table' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Column count of mysql.threads is wrong. Expected 14, found 3. Created with MySQL 50553, now running 50634. Please use mysql_upgrade to fix this error.
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_stages_current' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_stages_history' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_stages_history_long' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_stages_summary_by_thread_by_event_name' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_stages_summary_by_account_by_event_name' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_stages_summary_by_user_by_event_name' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_stages_summary_by_host_by_event_name' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_stages_summary_global_by_event_name' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_statements_current' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_statements_history' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_statements_history_long' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_statements_summary_by_thread_by_event_name' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_statements_summary_by_account_by_event_name' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_statements_summary_by_user_by_event_name' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_statements_summary_by_host_by_event_name' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_statements_summary_global_by_event_name' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'events_statements_summary_by_digest' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'users' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'accounts' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'hosts' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'socket_instances' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'socket_summary_by_instance' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'socket_summary_by_event_name' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'session_connect_attrs' has the wrong structure
2019-01-15 23:30:39 32409 [ERROR] Native table 'performance_schema'.'session_account_connect_attrs' has the wrong structure
2019-01-15 23:30:39 32409 [Note] Event Scheduler: Loaded 0 events
2019-01-15 23:30:39 32409 [Note] /usr/sbin/mysqld: ready for connections. Version: '5.6.34' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL)
2019-01-15 23:32:17 32409 [Note] /usr/sbin/mysqld: Normal shutdown
2019-01-15 23:32:17 32409 [Note] Giving 0 client threads a chance to die gracefully
2019-01-15 23:32:17 32409 [Note] Event Scheduler: Purging the queue. 0 events
2019-01-15 23:32:17 32409 [Note] Shutting down slave threads
2019-01-15 23:32:17 32409 [Note] Forcefully disconnecting 0 remaining clients
2019-01-15 23:32:17 32409 [Note] Binlog end
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'partition'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_METRICS'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_CMPMEM'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_CMP'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_LOCKS'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'INNODB_TRX'
2019-01-15 23:32:17 32409 [Note] Shutting down plugin 'InnoDB'
2019-01-15 23:32:17 32409 [Note] InnoDB: FTS optimize thread exiting.
2019-01-15 23:32:17 32409 [Note] InnoDB: Starting shutdown...
2019-01-15 23:32:18 32409 [Note] InnoDB: Shutdown completed; log sequence number 127410201
2019-01-15 23:32:18 32409 [Note] Shutting down plugin 'ARCHIVE'
2019-01-15 23:32:18 32409 [Note] Shutting down plugin 'BLACKHOLE'
2019-01-15 23:32:18 32409 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2019-01-15 23:32:18 32409 [Note] Shutting down plugin 'MyISAM'
2019-01-15 23:32:18 32409 [Note] Shutting down plugin 'MRG_MYISAM'
2019-01-15 23:32:18 32409 [Note] Shutting down plugin 'CSV'
2019-01-15 23:32:18 32409 [Note] Shutting down plugin 'MEMORY'
2019-01-15 23:32:18 32409 [Note] Shutting down plugin 'sha256_password'
2019-01-15 23:32:18 32409 [Note] Shutting down plugin 'mysql_old_password'
2019-01-15 23:32:18 32409 [Note] Shutting down plugin 'mysql_native_password'
2019-01-15 23:32:18 32409 [Note] Shutting down plugin 'binlog'
2019-01-15 23:32:18 32409 [Note] /usr/sbin/mysqld: Shutdown complete
2019-01-15 23:32:18 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended