Solved

mySQL 5.7 table repair needed.

Posted on 2016-10-06
4
32 Views
Last Modified: 2016-10-07
I'm trying to work on a website that has been marked as crached with the following message:

table '*******\jos_session' is marked as crashed and should be repaired SQL=INSERT INTO

Can someone help on how to repair that table? I have access to the MySQL Workbench 6.3 CE and I can connect to the database via a stored root credentials, can someone help me from there.

under the log I can see the same thing.
c:\programfiles\mysqlserver5.7\bin\mysqld.exe Table '.\****\jos_session' is marked.....
0
Comment
Question by:jdff
  • 2
4 Comments
 
LVL 21

Accepted Solution

by:
Kim Walker earned 500 total points
Comment Utility
Do you have access to phpMyAdmin? There you can select the table, then select operations, then select repair table under table maintenance. Unfortunately I am not familiar with MySQL Workbench but there should be a similar selection there.
0
 

Author Comment

by:jdff
Comment Utility
This is a windows server, not sure how to get to the phpadmin console. I was able to get to the MySQL 5.7 Command Line Client and login as admin but the command below did not work

select all
repair table jos_session;

It says:
You have an error in your SDQL syntax; check the manual that correspond your MySQL server version for the right syntax to use near 'table jos_session' at line 2

Any ideas?
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
Run check table database.joe_session;
Repair table database.joe_session;
The possibility exists that during the repair, data could be lost.

You should consider using mysqldump to backup the Data  before attempting a repair.
The command is part of the install
It should be in the path and available within command interface
Mysqldump -u root --password=yourrootpasseord --database=database > databasename.sql
It is a text file do you can see the SQL commands and data.

If you do not have a password set for root, exclude the --password=password... From the above example.

Your error you including select all with repair .......

What led to the crush status? Wastherean eent, check permissions inthe directory where the data sites are.

You are providing a limited set if information,
0
 

Author Closing Comment

by:jdff
Comment Utility
I was able to find the phpmyadmin console and ran a repair. thank you.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

A lot of articles have been written on splitting mysqldump and grabbing the required tables. A long while back, when Shlomi (http://code.openark.org/blog/mysql/on-restoring-a-single-table-from-mysqldump) had suggested a “sed” way, I actually shell …
Introduction In this installment of my SQL tidbits, I will be looking at parsing Extensible Markup Language (XML) directly passed as string parameters to MySQL 5.1.5 or higher. These would be instances where LOAD_FILE (http://dev.mysql.com/doc/refm…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now