Unix Technical Forum

MySQL Slave

This is a discussion on MySQL Slave within the MySQL General forum forums, part of the MySQL category; --> Hi Is there a way to find out when the MySQL Slave has been restarted. Thanks and Regards Kaushal...


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 06:20 AM
Kaushal Shriyan
 
Posts: n/a
Default MySQL Slave

Hi

Is there a way to find out when the MySQL Slave has been restarted.

Thanks and Regards

Kaushal

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 06:20 AM
Ben Clewett
 
Posts: n/a
Default Re: MySQL Slave

Check the error.log on both server and client, should show where
connected and disconnected.

Or write a small program to execute SHOW SLAVE STATUS every minute and
log the results. Which I belive is done for you in the MySql dashboard
program suit.

Ben

Kaushal Shriyan wrote:
> Hi
>
> Is there a way to find out when the MySQL Slave has been restarted.
>
> Thanks and Regards
>
> Kaushal
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 06:20 AM
Kaushal Shriyan
 
Posts: n/a
Default Re: MySQL Slave

On Fri, Apr 18, 2008 at 7:06 PM, Ben Clewett <ben@clewett.org.uk> wrote:

> Check the error.log on both server and client, should show where connected
> and disconnected.
>
> Or write a small program to execute SHOW SLAVE STATUS every minute and log
> the results. Which I belive is done for you in the MySql dashboard program
> suit.
>
> Ben
>
>
> Kaushal Shriyan wrote:
>
> > Hi
> >
> > Is there a way to find out when the MySQL Slave has been restarted.
> >
> > Thanks and Regards
> >
> > Kaushal
> >
> >

Hi

I could see the restart in tail -f /var/log/mysql/mysqld.err file while
doing slave stop and slave start, but when i use mk-slave-restart -u root -p
test -h localhost --verbose. it gets hung.

Any clue

Thanks and Regards

Kaushal

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-19-2008, 06:20 AM
kabel
 
Posts: n/a
Default MySQL Stored Procedure error 1307

I'm attempting to create a MySQL stored procedure, however, when I attempt to
create even a simple "Hello, world" procedure, I get the following error:

ERROR 1307 (HY000): Failed to CREATE PROCEDURE test_procedure_k

which is listed as:

Error: 1307 SQLSTATE: HY000 (ER_SP_STORE_FAILED)
Message: Failed to CREATE %s %s

I've googled for the solution, and the only problems I can find are people who
haven't upgraded correctly. This is a clean installation, though, and I
don't recall any errors when installing. I'm not ruling anything out, but I
don't think that's the case.

The results of mysqlcheck mysql for the proc tables are:

mysql.proc OK
mysql.procs_priv OK


Anyone have any thoughts, or come across this before?

TIA,

kabel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-19-2008, 06:20 AM
Ananda Kumar
 
Posts: n/a
Default Re: MySQL Stored Procedure error 1307

can u please try this a root user

mysql -uroot

regards
anandkl


On 4/18/08, kabel <lists@voidship.net> wrote:
>
> I'm attempting to create a MySQL stored procedure, however, when I attempt
> to
> create even a simple "Hello, world" procedure, I get the following error:
>
> ERROR 1307 (HY000): Failed to CREATE PROCEDURE test_procedure_k
>
> which is listed as:
>
> Error: 1307 SQLSTATE: HY000 (ER_SP_STORE_FAILED)
> Message: Failed to CREATE %s %s
>
> I've googled for the solution, and the only problems I can find are people
> who
> haven't upgraded correctly. This is a clean installation, though, and I
> don't recall any errors when installing. I'm not ruling anything out, but
> I
> don't think that's the case.
>
> The results of mysqlcheck mysql for the proc tables are:
>
> mysql.proc OK
> mysql.procs_priv OK
>
>
> Anyone have any thoughts, or come across this before?
>
> TIA,
>
> kabel
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql?unsub=anandkl@gmail.com
>
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-19-2008, 06:20 AM
kabel
 
Posts: n/a
Default Re: MySQL Stored Procedure error 1307

On Friday 18 April 2008 10:26:16 Ananda Kumar wrote:
> can u please try this a root user
>
> mysql -uroot
>
> regards
> anandkl
>


Same result, unfortunately.

kabel

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:28 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com