LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-02-2007, 01:18 PM   #1
Ramonvel
LQ Newbie
 
Registered: Aug 2007
Posts: 19

Rep: Reputation: 0
" mysql restarted" messages on screen


Hi Guys,

I have CentOS 4.4, kernel 2.6.9-55.ELsmp. Originally, I had installed MySQL-4.4.7 from source. It worked great for months until a couple of days ago I read a message on screen stating that needed to restart server to fix a mysql issue. After restarting server, when I try to start MySQL all I get is:

Number of processes running now: 0
071202 12:03:50 mysqld restarted

Number of processes running now: 0
071202 12:03:50 mysqld restarted

Number of processes running now: 0
071202 12:03:50 mysqld restarted

Number of processes running now: 0
071202 12:03:50 mysqld restarted

Number of processes running now: 0
071202 12:03:50 mysqld restarted

Number of processes running now: 0
071202 12:03:50 mysqld restarted

Number of processes running now: 0
071202 12:03:50 mysqld restarted

Number of processes running now: 0
071202 12:03:50 mysqld restarted

I upgraded with a fresh installation to Mysql-5.0.45.tar.gz, but once I try to start mysql, same error happens. What can I do to fix it please. This is a production server. Thanks God I have a backup of mysql database.

What can I do to fix this problem. All help is greatly appreciated.
 
Old 12-02-2007, 03:13 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Ramonvel View Post
I upgraded with a fresh installation to Mysql-5.0.45.tar.gz, but once I try to start mysql, same error happens. What can I do to fix it please. This is a production server. Thanks God I have a backup of mysql database.

What can I do to fix this problem. All help is greatly appreciated.
Did you run "make uninstall" in the source directory for the previous mysql version? If not, you may have all kinds of conflicting files.

I recommend running "make uninstall" in the newest version first, and the "make uninstall" in the older version. Then try building the newer version again.

Also, pore over your mysqld.log file for any other pertinent information. You might find interesting information in "/var/log/debug". There is always useful information in the output of "dmesg" and "/var/log/messages".
 
Old 12-02-2007, 09:16 PM   #3
Ramonvel
LQ Newbie
 
Registered: Aug 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Hi David,

Thanks for you help. I uninstaled both versions, 5.0.45 first, then 4.0.27. Then reinstalled mysql-5.0.45. Unfortunately, it still doesn't start. Here is the mysqld.log. Please, advice.


071129 23:28:20 mysqld started
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
071129 23:28:20 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
071129 23:28:20 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
071129 23:28:21 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
071129 23:28:21 InnoDB: Started; log sequence number 0 0
071129 23:28:21 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.22' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
071130 2:49:47 [Note] /usr/libexec/mysqld: Normal shutdown

071130 2:49:47 InnoDB: Starting shutdown...
071130 2:49:49 InnoDB: Shutdown completed; log sequence number 0 43655
071130 2:49:49 [Note] /usr/libexec/mysqld: Shutdown complete

071130 02:49:49 mysqld ended

071202 01:26:17 mysqld started
071202 1:26:17 InnoDB: Started; log sequence number 0 43655
071202 1:26:17 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.22' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
071202 2:38:38 [Note] /usr/libexec/mysqld: Normal shutdown

071202 2:38:38 InnoDB: Starting shutdown...
071202 2:38:39 InnoDB: Shutdown completed; log sequence number 0 43655
071202 2:38:39 [Note] /usr/libexec/mysqld: Shutdown complete

071202 02:38:39 mysqld ended

071202 20:49:12 mysqld started
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process


InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
071202 20:50:03 InnoDB: Started; log sequence number 0 43655
071202 20:50:03 [Note] /usr/local/mysql/libexec/mysqld: Normal shutdown

071202 20:50:03 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.0.45' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
071202 20:50:03 InnoDB: Starting shutdown...
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
071202 21:02:02 mysqld started
071202 21:02:04 InnoDB: Started; log sequence number 0 43655
071202 21:02:05 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.0.45' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
071202 21:07:20 [Note] /usr/local/mysql/libexec/mysqld: Normal shutdown

071202 21:07:20 InnoDB: Starting shutdown...
071202 21:07:22 InnoDB: Shutdown completed; log sequence number 0 43655
071202 21:07:22 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

071202 21:07:22 mysqld ended
 
Old 12-03-2007, 05:22 PM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Ramonvel View Post
Thanks for you help. I uninstaled both versions, 5.0.45 first, then 4.0.27. Then reinstalled mysql-5.0.45. Unfortunately, it still doesn't start. Here is the mysqld.log. Please, advice.
Some slackware users solved their problem by changing the ownership of some files and directories to the mysql user:
Starting MySQL on Slackware
You might be experiencing the same problem if you installed MySQL as root.
 
  


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
Fedora Core 2: Screen Resolution can not change from "800X600" to "1024X 768" suhaimi_sj Fedora - Installation 18 12-17-2009 03:29 AM
Buzilla issue: "Can't connect to local MySQL server through socket '/tmp/mysql.sock'" vitopn Linux - General 3 05-21-2007 10:13 AM
Switching "nv" to "nvidia" = screen shifted to the left? mpriddy Linux - General 5 02-28-2007 10:38 PM
MySQL setup stops at command "./configure --prefix=/usr/local/mysql" k41184 Linux - Software 1 05-20-2004 02:44 PM
Boot messages not the same as "dmesg" or "/var/log/messages"? massai Linux - General 5 03-10-2004 12:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:02 PM.

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