MySQL Starting error

11 views
Skip to first unread message

Tejas Barot

unread,
Jun 20, 2009, 2:50:25 PM6/20/09
to VGLUG
Hi Frineds,

I want to Install TWO Instances of MySQL on Fedora 10. I installed one instance of MySQL using yum and its working perfectly fine. For Second Instance I downloaded the Binary and Placed it to another folder. Now when i am trying to start mysql service of second instance it gives me below error 

ERROR! MySQL manager or server PID file could not be found!
Starting MySQL.. ERROR! Manager of pid-file quit without updating file.


Error in /var/www/mysqld.log

090620 15:23:05 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql1/data
/usr/local/mysql1/bin/mysqld: Table 'mysql.plugin' doesn't exist
090620 15:23:05 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: Log scan progressed past the checkpoint lsn 0 39548
090620 15:23:06  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 46409
090620 15:23:06  InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 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
090620 15:23:06  InnoDB: Started; log sequence number 0 46409
090620 15:23:06 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
090620 15:23:06 mysqld_safe mysqld from pid file /usr/local/mysql1/data/rainserver.pid ended

How do i solve this ? Thanks in advance.


--
Thanks & Regards,
Tejas Barot
Linux Administrator,
Red Hat Certified Engineer,
http://barot.wordpress.com
"Computer are like air conditioners: They stop working when you open WindowZ."

Bhatt Niraj

unread,
Jun 21, 2009, 2:45:03 AM6/21/09
to VG...@googlegroups.com
Hi,
 
Can you tell me how you installed second mysql, then how you start and give me my.cnf for second installation.
 
Regards,
Niraj Bhatt

2009/6/20 Tejas Barot <network...@gmail.com>
--
Niraj Bhatt
------------------------------------------------------------
Give me space to stand, i will move the earth

Tejas Barot

unread,
Jun 21, 2009, 5:52:05 AM6/21/09
to VG...@googlegroups.com
On Sun, Jun 21, 2009 at 12:15 PM, Bhatt Niraj <njbh...@gmail.com> wrote:
Hi,
 
Can you tell me how you installed second mysql, then how you start and give me my.cnf for second installation.
 
 
Thanks for your reply Niraj. I

I have attached my.cnf. I Place my.cnf into /usr/local/mysql1 which is my second instance directory. I Just Downloaded Binary from MySQL website and I just placed into /usr/local/mysql1

and I copied mysql.server into /etc/init.d/ as mysql1 and in mysql1 i changed basedir and datadir and then i am just starting mysql1 server then i am getting that error which i mentioned above.

If i am doing wrong to install second instance then please tell me how to install it. Thanks
my.cnf

Bhatt Niraj

unread,
Jun 22, 2009, 2:55:55 AM6/22/09
to VG...@googlegroups.com
Hi,
 
I did same ting on my laptop and its working. I start both instance with different ports and different my.cnf file.
 
it is working for me.
 
for your cases your mysql second instance did not find mysql database which is default database.
 
Regards,
niraj

2009/6/21 Tejas Barot <network...@gmail.com>

Tejas Barot

unread,
Jun 22, 2009, 3:28:15 AM6/22/09
to VG...@googlegroups.com
On Mon, Jun 22, 2009 at 12:25 PM, Bhatt Niraj <njbh...@gmail.com> wrote:
Hi,
 
I did same ting on my laptop and its working. I start both instance with different ports and different my.cnf file.
 
it is working for me.
 
for your cases your mysql second instance did not find mysql database which is default database.

Thanks.

How do i set default database for scond instance? 
Reply all
Reply to author
Forward
0 new messages