On 18 Jun 2012, at 16:30, nonong96 <[email protected]> wrote:

> On 06/18/2012 01:57 PM, Donny Kurnia wrote:
>> Di mesin lain, install mysql server dengan versi yang sama persis
>> dengan mysql di server yang rusak. Setelah itu, salin semua file
>> databasenya ke folder /var/lib/mysql
>
> beda platfom ngaruh ga ya...?
> aslinya di ubuntu 64 bit, terus install baru di virtualbox ubuntu 32 bit 
> setelah ditimpa dg prosedur di atas dan restart mysql tidak jalan. isi 
> /var/log/syslog:
>
> Jun 18 16:28:15 ubuntu /etc/init.d/mysql[5499]: ^G/usr/bin/mysqladmin: 
> connect to server at 'localhost' failed
> Jun 18 16:28:15 ubuntu /etc/init.d/mysql[5499]: error: 'Can't connect to 
> local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
> Jun 18 16:28:15 ubuntu /etc/init.d/mysql[5499]: Check that mysqld is running 
> and that the socket: '/var/run/mysqld/mysqld.sock' exists!

Pertama, pastikan dulu mysql di mesin baru jalan dengan sempurna.
Setelah itu, coba copy satu dulu file database dari mesin yg mati. Ini
file databasenya yang dari folder /var/lib/mysql kan ya? Coba restart,
jalan ga?

Yang mesti sama versi mysqlnya, kalo beda versi, kadang ada fitur baru
yang bikin database lama jadi tidak terbaca dgn sempurna.

--
Donny Kurnia
Apple ID: [email protected]
Twitter: @donnykurnia
Skype: donnykurnia
My online profile:
http://www.linkedin.com/in/donnykurnia
http://careers.stackoverflow.com/donnykurnia
http://re.vu/donnykurnia
http://hantulab.blogspot.com
-------------------------------------------
At times the world can seem an unfriendly and sinister place. But
believe us when we say there is much more good in it than bad. And
what might seem to be a series of unfortunate events, may in fact, be
the first steps of a journey.
-- A Series of Unfortunate Events

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [email protected]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke