Solved

mySQL 5.7 table repair needed.

Posted on 2016-10-06
4
87 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 78

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

763 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