Title: DB Error
Last modified: August 18, 2016

---

# DB Error

 *  [rapha](https://wordpress.org/support/users/rapha/)
 * (@rapha)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/db-error/)
 * DB Error

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [rapha](https://wordpress.org/support/users/rapha/)
 * (@rapha)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/db-error/#post-24545)
 * Hi All,
    trying to install WordPress here (following the 5-minute-recipe), I’m
   afraid I’ve not come nearly as far as the other newbies :-). The error message
   it gives me upon calling wp-install.php is: DB Error, could not list tables MySQL
   Error: Can’t connect to local MySQL server through socket ‘/var/run/mysql/mysql.
   sock’ (2) That’s probably due to my lacking knowledge in MySQL administration,
   but searching the MySQL docs just gave me a headache. It at least does have a
   root password set (`mysql -uroot -pmypassword’ on the console works, and that’s
   also the data I used for b2config.php). The system I’m trying this on is OpenBSD
   3.4, MySQL 3.23.57 and PHP 4.3.3. I’d be grateful for any hints that you might
   have! Cheers, Raphael
 *  [alexkingorg](https://wordpress.org/support/users/alexkingorg/)
 * (@alexkingorg)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/db-error/#post-24547)
 * Have you entered that data into your settings file (this is explained in the 
   instructions)?
 *  Thread Starter [rapha](https://wordpress.org/support/users/rapha/)
 * (@rapha)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/db-error/#post-24554)
 * > It at least does have a root password set (`mysql -uroot -pmypassword’
    > on
   the console works, and that’s also the data I used for b2config.php). So the 
   answer is yes, I have.
 *  [Mike Little](https://wordpress.org/support/users/mikelittle/)
 * (@mikelittle)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/db-error/#post-24557)
 * Hi Rapha,
    Which version are you using? The ucrrent version doesn’t use b2config.
   php (other than once during an upgrade process.) Toy may want to try with the
   most recent version 0.72 which is still in beta but quite stable. Mike
 *  Thread Starter [rapha](https://wordpress.org/support/users/rapha/)
 * (@rapha)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/db-error/#post-24562)
 * Well, the file I downloaded was `wordpress-071-gold.tar.gz’. But I’ll try 0.72
   if you say that’ll work.
    – R.
 *  Thread Starter [rapha](https://wordpress.org/support/users/rapha/)
 * (@rapha)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/db-error/#post-24738)
 * Hi again,
    I’m trying it with 0.72 now, but still the same problem — it’s not
   able to connect to the mySQL database. And yes, the database name in wp-config.
   php _is_ set correctly, as are username, password and hostname. Using `mysql -
   u <username> -p’ is working just fine, too. What could this be related to? Best,
   Raphael
 *  [otaku42](https://wordpress.org/support/users/otaku42/)
 * (@otaku42)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/db-error/#post-24743)
 * Does a “ls -al /var/run/mysql/mysql.sock” show something? Are you sure that the
   socket is there? The other option (besides using sockets) could be to use TCP
   for communication. If your system has been configured like this, you had to adjust
   something in WordPress to reflect these settings, I guess.
    Bye, Mike
 *  Thread Starter [rapha](https://wordpress.org/support/users/rapha/)
 * (@rapha)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/db-error/#post-24753)
 * # ls -l /var/run/mysql/mysql.sock
    srwxrwxrwx 1 _mysql _mysql 0 Oct 10 00:52 /
   var/run/mysql/mysql.sock So yes, it’s there. I tried using my server’s IP instead
   of “localhost”, but it doesn’t look like it could be fooled that easily. So how
   do you get WordPress to connect to mySQL by means of TCP?
 *  [alexkingorg](https://wordpress.org/support/users/alexkingorg/)
 * (@alexkingorg)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/db-error/#post-24756)
 * Maybe you should create a little test file and make sure you can connect to the
   database?
 *  Anonymous
 * [22 years, 6 months ago](https://wordpress.org/support/topic/db-error/#post-25216)
 * /var/www is chrooted……. its not possible to see beyond…..
    try ln -s /var/run/
   mysql/mysql.sock /var/www/var/run/mysql/mysql.sock it results

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘DB Error’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 10 replies
 * 5 participants
 * Last reply from: Anonymous
 * Last activity: [22 years, 6 months ago](https://wordpress.org/support/topic/db-error/#post-25216)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
