Solved

mySQL 5.7 table repair needed.

Posted on 2016-10-06
4
79 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 22

Accepted Solution

by:
Kim Walker earned 500 total points
ID: 41832795
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
ID: 41832836
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 77

Expert Comment

by:arnold
ID: 41832909
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
ID: 41833820
I was able to find the phpmyadmin console and ran a repair. thank you.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In this article, I will by showing a nice little trick for MySQL similar to that of my previous EE Article for SQLite (http://www.sqlite.org/), A SQLite Tidbit: Quick Numbers Table Generation (http://www.experts-exchange.com/A_3570.htm…
More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 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