Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Database Server
  • Search

Database error after transfer to new server

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
18 posts
  • Previous
  • 1
  • 2
dyaaez
Posts: 21
Joined: Fri Mar 06, 2015 6:19 pm

Re: Database error after transfer to new server
  • Quote

Post by dyaaez » Wed Jul 01, 2015 2:45 pm

skurudo wrote:If backup was made bad (not all db in there or mysql fail), then you see, what you see.
As I wrot before, try to unpack db and import manually (in ssh console)
Thanks for reply, and trying to resolve my problem

I`m already did that, and used bigdump script, but same result .

What can I do too ?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Database error after transfer to new server
  • Quote

Post by skurudo » Wed Jul 01, 2015 3:02 pm

dyaaez wrote: I`m already did that, and used bigdump script, but same result .
What can I do too ?
May be tables in source broken? Try to fix / optimize tables and then make dump.
Top

dyaaez
Posts: 21
Joined: Fri Mar 06, 2015 6:19 pm

Re: Database error after transfer to new server
  • Quote

Post by dyaaez » Wed Jul 01, 2015 3:07 pm

skurudo wrote:
dyaaez wrote: I`m already did that, and used bigdump script, but same result .
What can I do too ?
May be tables in source broken? Try to fix / optimize tables and then make dump.
I`ve 30 backup, one of that maybe broken not all
I tried to restore another backup file, but same result
when I`m using bigdump a lots of errors, and restored 8 tables only (same result)
Image
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Database error after transfer to new server
  • Quote

Post by skurudo » Wed Jul 01, 2015 6:41 pm

from console on old server -

Code: Select all

mysqlcheck -A --auto-repair
(c) http://dev.mysql.com/doc/refman/5.0/en/mysqlcheck.html

then try to backup databases or export databases one by one
Top

dyaaez
Posts: 21
Joined: Fri Mar 06, 2015 6:19 pm

Re: Database error after transfer to new server
  • Quote

Post by dyaaez » Thu Jul 02, 2015 3:15 am

skurudo wrote:from console on old server -

Code: Select all

mysqlcheck -A --auto-repair
(c) http://dev.mysql.com/doc/refman/5.0/en/mysqlcheck.html

then try to backup databases or export databases one by one
Oh, my old server expired. I can not access again .
But I`ve lots of backups, anyway to do something ?
Top

mestresan
Posts: 33
Joined: Wed May 13, 2015 12:05 am

Re: Database error after transfer to new server
  • Quote

Post by mestresan » Fri Jul 03, 2015 2:44 pm

I think the error is in my.cnf ... package size... change variable
max_allowed_packet = 256M

put high value if necessary...
Top

dyaaez
Posts: 21
Joined: Fri Mar 06, 2015 6:19 pm

Re: Database error after transfer to new server
  • Quote

Post by dyaaez » Fri Jul 03, 2015 3:13 pm

mestresan wrote:I think the error is in my.cnf ... package size... change variable
max_allowed_packet = 256M

put high value if necessary...

my.cnf contents:

Code: Select all

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
symbolic-links=0
max_connections=200
max_user_connections=30
wait_timeout=30
interactive_timeout=50
long_query_time=5
#log-queries-not-using-indexes
#log-slow-queries=/var/log/mysql/log-slow-queries.log

#innodb_use_native_aio = 0
innodb_file_per_table

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
Top

dyaaez
Posts: 21
Joined: Fri Mar 06, 2015 6:19 pm

Re: Database error after transfer to new server
  • Quote

Post by dyaaez » Fri Jul 03, 2015 3:23 pm

Someone said to me: "You must change/convert DB type From MyISAM to InnoDB "
Top


Post Reply
  • Print view

18 posts
  • Previous
  • 1
  • 2

Return to “Database Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password