السلام عليكم..
عندى قاعدة بيانات جننتني
مش قادر اخد منها backup عن طريق الـ cpanel او SSH
ولا عن طريق اي برمجية ابو برنامج اخر..

القاعدة فيها اخطاءفي الملفات ومش قادر اعمللها اصلاح حتى بالـ ssh

مش عارف شول الحل يا تري...

لقيت كود بينعمل بـ ssh بيحكو انو ممكن يحل المشكلة بس ما بعرف استعمله وكيف اركبه..

هيات الكود:

كود PHP:

#!/bin/sh

# this shell script finds all the tables for a database and run a command against it
# @usage "mysql_tables.sh --optimize MyDatabaseABC"
# @date 6/14/2006
# @version 1.1 - 1/28/2007 - add repair
# @version 1.0 - 6/14/2006 - first release
# @author Son Nguyen

#AUTH='-uweb -pwebphp'
AUTH='-uadmin -pqLtwUCRKL8'

AUTH=$3
DBNAME
=$4

printUsage
() {
echo 
"Usage: $0"
echo " --optimize --credentials '-uUSERNAME -pPASSWORD' "
echo " --repair "
return
}

doAllTables() {
# get the table names
TABLENAMES=`mysql $AUTH -D $DBNAME -e "SHOW TABLES\G;"|grep 'Tables_in_'|sed -n 's/.*Tables_in_.*: \([_0-9A-Za-z]*\).*/\1/p'`

# loop through the tables and optimize them
for TABLENAME in $TABLENAMES
do
mysql $AUTH -D $DBNAME -"$DBCMD TABLE $TABLENAME;"
done
}

if [ $
# -lt 3 ] ; then
printUsage
exit 1
fi

case $1 in
--optimizeDBCMD=OPTIMIZEdoAllTables;;
--
repairDBCMD=REPAIRdoAllTables;;
--
helpprintUsage; exit 1;;
*) 
printUsage; exit 1;;
esac