title: why mysql will not restart / get affected if ibdata1 file is moved?
body: <p>On my server two websites are hosted (say abc.com and test.xyz.com)</p>
  
  <p>I was trying to rebuild the DB for test.xyz.com and in the process </p>
  
  <p>1.I dropped the database related to it.
  2.stopped the mysql ( /etc/init.d/mysqld stop)
  3.moved ibdata1 file (/var/lib/mysql/ibdata1) to /tmp/
  4. tried to start the mysql </p>
  
  <p>but it is not getting started and on trying to connect to database using terminal, i am getting <code>Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'</code>.</p>
  
  <p>I tried to move back ibdata1 file from /tmp/ to /var/lib/mysql but there was already a file ibdata1. Its a wonder but now website is not working since NO DB connection.</p>
  
  <p>Both the sites stopped working now. Please help</p>
  
  <p>and-
  /etc/init.d/mysqld status gives - mysqld (pid 31905) is running... </p>
  
  <p>Thanks</p>