LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-16-2011, 10:54 AM   #1
thegluups
LQ Newbie
 
Registered: Aug 2007
Posts: 9

Rep: Reputation: 0
MySQL Startup


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!!
 
Old 10-16-2011, 11:25 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Well, have you tried running "mysql_upgrade" like it asks you to do?
 
Old 10-16-2011, 01:24 PM   #3
thegluups
LQ Newbie
 
Registered: Aug 2007
Posts: 9

Original Poster
Rep: Reputation: 0
That won't work unless the server is actually running, and the errors above prevent that.



But basically, all the correct files seem to be located in /usr/local/mysql/data but, despite the permissions saying that the files belong to mysql, it doesn't work. (I solved a similar problem to finding plugin.frm by putting it in /usr/local/mysql/bin
 
Old 10-16-2011, 01:38 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
You need to address this problem in three steps:
  1. First, determine that the build-from-source actually succeeded: that all of the expected libraries and executables were, in fact, built, and that they are placed where you expect them to be.
  2. Next, verify (don't assume...) that the command you're using to invoke the executable does, in fact, invoke that executable and that it does so under the user-id and group-id that you expect.
  3. Finally, verify the MySQL configuration files. It is easily possible that the make install step replaced some values in such files. (Easily remedied by just restoring that file from the back... uhhh...)
"Trust, but verify." At each step, determine for yourself exactly what the expected outcome should be, and then visually and methodically inspect the present situation to see that it is. I suggest that you grab a legal pad and maintain a journal of the process. Then, file the notes away where you can actually find them again.
 
0 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] MySQL Startup issues ahwm Linux - Software 2 02-17-2010 11:32 PM
MySQL hangs at startup Confusedious Linux - Software 1 10-15-2005 06:21 PM
mysql startup eyewittness Linux - Software 1 07-23-2005 09:04 AM
Getting MySql to run on startup jriis Debian 8 03-16-2004 12:20 PM
MySQL hangs at Startup maddcow Linux - Software 0 09-24-2003 12:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration