Hey,
I'm currently running Ubuntu. When I attempt to install mysql from source, I get the following error
(I ran cmake . and make make install, followed by the db-install script)
Code:
/usr/local/mysql/bin$ ./mysqld
./mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
111016 16:36:54 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
111016 16:36:54 InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!
111016 16:36:54 InnoDB: The InnoDB memory heap is disabled
111016 16:36:54 InnoDB: Mutexes and rw_locks use GCC atomic builtins
111016 16:36:54 InnoDB: Compressed tables use zlib 1.2.3.4
111016 16:36:54 InnoDB: Initializing buffer pool, size = 128.0M
111016 16:36:54 InnoDB: Completed initialization of buffer pool
111016 16:36:54 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
The contents of /var/lib/mysql are
debian-5.1.flag ibdata1 ib_logfile0 ib_logfile1 mysql mysql_upgrade_info phpmyadmin test (all set to owner/group mysql)
Contents of /usr/local/mysql/bin
init.txt myisampack mysql-bin.index mysql_convert_table_format mysql_find_rows mysqlshow mysql_zap
innochecksum my_print_defaults mysqlbinlog mysqld mysql_fix_extensions mysqlslap perror
msql2mysql mysql mysqlbug mysqld_multi mysqlhotcopy mysqltest replace
myisamchk mysqlaccess mysqlcheck mysqld_safe mysqlimport mysql_tzinfo_to_sql resolveip
myisam_ftdump mysqlaccess.conf mysql_client_test mysqldump mysql_secure_installation mysql_upgrade resolve_stack_dump
myisamlog mysqladmin mysql_config mysqldumpslow mysql_setpermission mysql_waitpid
and contents of /usr/local/mysql/data are
ibdata1 ib_logfile0 ib_logfile1 mysql mysql-bin.index performance_schema test my-laptop.err
(permissions in all cases are mysql mysql)
Any help would be much appreciated!!