mysql安装包:mysql-5.1.59-linux-i686-glibc23.tar.gz
linux版本: redhat enterprise linux5我按照正常的方法安装到/var/local下面没问题.一切启动都OK.但是现在我的需求是不能安装到/var/local下..假如我现在安装在/root/mysql下
我有将里面的路径都改成我的安装路径,但是还是不行. 错误日志如下:
100408 10:16:53 mysqld_safe Starting mysqld daemon with databases from /root/mysql/data
100408 10:16:53 [Note] Plugin 'FEDERATED' is disabled.
/root/mysql/bin/mysqld: Table 'plugin' is read only
100408 10:16:53 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
100408 10:16:53  InnoDB: Initializing buffer pool, size = 8.0M
100408 10:16:53  InnoDB: Completed initialization of buffer pool
InnoDB: Log scan progressed past the checkpoint lsn 0 37356
100408 10:16:53  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 0 44233
100408 10:16:53  InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 
InnoDB: Apply batch completed
100408 10:16:54  InnoDB: Started; log sequence number 0 44233
100408 10:16:54 [ERROR] /root/mysql/bin/mysqld: Can't create/write to file '/root/mysql/data/localhost.localdomain.pid' (Errcode: 13)
100408 10:16:54 [ERROR] Can't start server: can't create PID file: Permission denied
100408 10:16:54 mysqld_safe mysqld from pid file /root/mysql/data/localhost.localdomain.pid ended