ระบบ ก็มี mysql อยู่แล้วไม่ใช่หรือครับ
[root@localhost ~]# rpm -qa | grep -i '^mysql-'
MySQL-shared-5.6.2_m5-1.rhel5
MySQL-client-5.6.2_m5-1.rhel5
MySQL-devel-5.6.2_m5-1.rhel5
MySQL-test-5.6.2_m5-1.rhel5
ถ้าจะติดตั้งแบบ upgrade ให้ใช้ option
rpm -Uvh MySQL-server-5.6.2_m5-1.rhel5.i386.rpm --nodeps --force
ลองใช้คำสั่งตามที่บอกแล้วครับ ยังไม่ได้ครับ ผลเป็นดังนี้
Preparing... ########################################### [100%]
1:MySQL-client ########################################### [100%]
[root@localhost ~]# rpm -ivh MySQL-shared-5.6.2_m5-1.rhel5.i386.rpm --nodeps --force
Preparing... ########################################### [100%]
1:MySQL-shared ########################################### [100%]
[root@localhost ~]# rpm -Uvh MySQL-server-5.6.2_m5-1.rhel5.i386.rpm --nodeps --force
Preparing... ########################################### [100%]
ls: /var/lib/mysql/*.err: No such file or directory
ls: /var/lib/mysql/*.err: No such file or directory
1:MySQL-server ########################################### [100%]
110526 15:15:50 [ERROR] Column count of mysql.proc is wrong. Expected 20, found 16. Created with MySQL 50077, now running 50602. Please use mysql_upgrade to fix this error.
ERROR: 1136 Column count doesn't match value count at row 1
110526 15:15:51 [ERROR] Aborting
110526 15:15:51 [Note] Binlog end
110526 15:15:51 [Note] Shutting down plugin 'partition'
110526 15:15:51 [Note] Shutting down plugin 'BLACKHOLE'
110526 15:15:51 [Note] Shutting down plugin 'ARCHIVE'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_METRICS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_CMPMEM'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_CMP_RESET'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_CMP'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_LOCKS'
110526 15:15:51 [Note] Shutting down plugin 'INNODB_TRX'
110526 15:15:51 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
110526 15:15:51 [Note] Shutting down plugin 'MEMORY'
110526 15:15:51 [Note] Shutting down plugin 'MyISAM'
110526 15:15:51 [Note] Shutting down plugin 'MRG_MYISAM'
110526 15:15:51 [Note] Shutting down plugin 'CSV'
110526 15:15:51 [Note] Shutting down plugin 'mysql_old_password'
110526 15:15:51 [Note] Shutting down plugin 'mysql_native_password'
110526 15:15:51 [Note] Shutting down plugin 'binlog'
110526 15:15:51 [Note] /usr/sbin/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/sbin/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at
http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/bin/mysqlbug script!
[root@localhost ~]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.0.77 Source distribution