Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : SSH Mysql Repair Commands



Threaded Mode | Print  

 SSH Mysql Repair Commands (5 Replies, Read 21723 times)
batursoylu
Group: Member
Post Group: Newbie
Posts: 46
Status:
Hi all,

What ssh mysql repair command?

mysqlcheck --repair -A

mysqlcheck --optimize -A

mysqlcheck -A -h localhost -u root -r -p

mysqlcheck -u root -p --auto-repair --check --optimize --all-databases

??????

SSH answer: command not found

Thank you for reply.
IP: --   

SSH Mysql Repair Commands
abhijeetm
Group: Virtualizor Team
Post Group: Working Newbie
Posts: 97
Status:
Hi,
Once you install MySQL through Webuzo, all binaries for it can be found under /usr/local/apps/mysql/bin/

So you can try with: /usr/local/apps/mysql/bin/mysqlcheck
IP: --   

SSH Mysql Repair Commands
batursoylu
Group: Member
Post Group: Newbie
Posts: 46
Status:
/usr/local/apps/mysql/bin/mysqlcheck

How command?

Thank you for answer.
IP: --   

SSH Mysql Repair Commands
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
Hi,

You can try using the following command:

/usr/local/apps/mysql/bin/mysqlcheck --repair -A

/usr/local/apps/mysql/bin/mysqlcheck --optimize -A

/usr/local/apps/mysql/bin/mysqlcheck -A -h localhost -u root -r -p

/usr/local/apps/mysql/bin/mysqlcheck -u root -p --auto-repair --check --optimize --all-databases

Hope this helps.

Please let us know if you still face the issue. We will be happy to help you.
IP: --   

SSH Mysql Repair Commands
batursoylu
Group: Member
Post Group: Newbie
Posts: 46
Status:
Hi,

Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO)

when trying to connect

What problem?

Thank you.

IP: --   

SSH Mysql Repair Commands
abhijeetm
Group: Virtualizor Team
Post Group: Working Newbie
Posts: 97
Status:
Hi,
Can you check the root user password you enter is correct.

If you are not able to login to mysql with root credentials, you can run server in with --skip-grant-tables as:
/usr/local/apps/mysql/bin/mysqld --skip-grant-tables

and then try to use your required commands without any password.

Once the issue resolved, you can stop mysql servers by entering command:
killall mysqld

and restart MySQL again in normal mode  by running:
service mysqld restart

Note: If you change your mysql root password, you will also have to update it in /var/webuzo/my.conf.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 20, 2024, 3:47 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.020