1

Добрый день, форумчане проблема следующего характера.

Пытался добавить в mysql хранимую процедурку нечего не получилось.  Таблицы и вьюхи нет проблем , а вот процедуры никак.

Даже

/*Ответ MySQL: #1558 - Column count of mysql.proc is wrong. Expected 20, found 16. Created with MySQL 50095, now running 50538. Please use mysql_upgrade to fix this erro*/

Сделал

[root@mail ~]# mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
FATAL ERROR: Upgrade failed

Начал капать далее. В логе при перерестарте выпадают следующие ошибки:

141201 14:10:23 [Note] /usr/libexec/mysqld: Normal shutdown
141201 14:10:24  InnoDB: Starting shutdown...
141201 14:10:25  InnoDB: Shutdown completed; log sequence number 121047238
141201 14:10:25 [Note] /usr/libexec/mysqld: Shutdown complete
141201 14:10:26 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
141201 14:10:27 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
141201 14:10:27 [Note] Plugin 'FEDERATED' is disabled.
/usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
141201 14:10:27 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
141201 14:10:27 InnoDB: The InnoDB memory heap is disabled
141201 14:10:27 InnoDB: Mutexes and rw_locks use InnoDB's own implementation
141201 14:10:27 InnoDB: Compressed tables use zlib 1.2.3
141201 14:10:27 InnoDB: Using Linux native AIO
141201 14:10:27 InnoDB: Initializing buffer pool, size = 128.0M
141201 14:10:27 InnoDB: Completed initialization of buffer pool
141201 14:10:27 InnoDB: highest supported file format is Barracuda.
141201 14:10:30  InnoDB: Waiting for the background threads to start
141201 14:10:31 InnoDB: 5.5.38 started; log sequence number 121047238
141201 14:10:31 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
141201 14:10:31 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
141201 14:10:31 [Note] Server socket created on IP: '0.0.0.0'.
141201 14:10:31 [ERROR] Missing system table mysql.proxies_priv; please run mysql_upgrade to create it
141201 14:10:31 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
141201 14:10:31 [ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'events_waits_history' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'events_waits_history_long' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'setup_consumers' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'setup_instruments' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'setup_timers' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'performance_timers' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'threads' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_thread_by_event_name' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_instance' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'events_waits_summary_global_by_event_name' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'file_summary_by_event_name' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'file_summary_by_instance' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'mutex_instances' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'rwlock_instances' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong structure
141201 14:10:31 [ERROR] Native table 'performance_schema'.'file_instances' has the wrong structure
141201 14:10:31 [ERROR] Column count of mysql.db is wrong. Expected 22, found 20. Created with MySQL 50095, now running 50538. Please use mysql_upgrade to fix this error.
141201 14:10:31 [ERROR] mysql.user has no `Event_priv` column at position 29
141201 14:10:31 [ERROR] Cannot open mysql.event
141201 14:10:31 [ERROR] Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
141201 14:10:31 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.38'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Remi

Подскажите что делать и куда копать. И что это может быть. В MySQl не силён. Всегда работал с  MSSQL