If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Can't find program 'mysqlcheck' Please restart with --basedir=mysql-install-directory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-19-11, 12:06
andrewtr andrewtr is offline
Registered User
 
Join Date: Dec 2010
Posts: 6
Exclamation Can't find program 'mysqlcheck' Please restart with --basedir=mysql-install-directory

Hi,

I am getting the following error message while I am trying to run "mysql_upgrade -uroot -proot --basedir=/" on the root directory - "Can't find program 'mysqlcheck'
Please restart with --basedir=mysql-install-directory
". I am using 5.0.41 community-log edition.

Doing this mysql_upgrade since I got Error:1307 - Failed to execute Stored Procedure.
Reply With Quote
  #2 (permalink)  
Old 07-20-11, 07:25
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
If you look at the message returned it says "--basedir=mysql-install-directory". You have passed in the root / directory. Find where mysql is installed and set basedir correctly and retry.
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #3 (permalink)  
Old 07-20-11, 07:58
andrewtr andrewtr is offline
Registered User
 
Join Date: Dec 2010
Posts: 6
When i ran ps -ef | grep mysql it shows "basedir=/" and for whereis mysl it showed me the following paths "mysql: /usr/bin/mysql /usr/lib/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz" But when I tried to run from all these paths it is showing same error. for eg, "mysql_upgrade -uroot -proot --basedir=/usr/bin/mysql"

Whereas I am able run mysqlcheck from the root / directory.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On