Question: I am using Webdriver in Ruby and I want to locate an element by its xpath, below is an example html:

```
<li id="ID1">
    <label for="accountNumber"> &nbsp;</label>
    123456
    <span id="accountNumber"></span>
</li>

```

How do I get 123456 by xpath or ID?

I have tried below and it does not work:

```
element = driver.find_element :xpath => "//li[@id='ID1']/"
puts element.text

```

Thanks.

Answer: 
Your database files are probably in /var/lib/mysql. If you have THOSE files backed up, with EXACTLY the same version of mysql, same libraries, etc., then you could just restore them to another machine, and check the configuration for hostnames (MySQL only uses these IN the database though, for login security, iirc, so it won't apply until you're up and running again). Then, just boot it up. Do keep a copy of the backed up /var/lib/mysql though, in case it fails to come up correctly. MySQL will probably repair some files on startup, which may not work properly.

Once you can do pgrep -l mysql (as root), and you see mysql running, then you can worry about installing a webserver, php, phpmyadmin, etc.

Next time, have proper, regular backups (mysqldump plus a filesystem backup using something like rdiff-backup, dirvish, or faubackup), use a redundant RAID filesystem, and maybe a data-checksummed filesystem on top, like ZFS.
Phpmyadmin is only interface to database engine. You can dump databases trough it, but it is not the database engine. If your server is still alive (ssh or command prompt), and you have live mysql instance you can dump your databases to sql file, using the command **[mysqldump](http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html)**, and restore them on the new server with phpmyadmin or just using mysql -u user -p | cat sqlfile.sql