Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is SQL – used to retrieve/insert data into databases. There is a syntax issue here. For some reason ‘limit,1’ is appearing. It should only be ‘1’. Make sure you use the version of MySQL stated in the installation guideline (I am using 4.0 and not 4.1). If the file was customized, keep this in mind.

    SELECT ID,post_title FROM wp_posts WHERE post_date > ‘2005-01-03 14:59:20’ AND post_date < ‘2005-01-04 13:48:45’ AND post_status = ‘publish’ AND ID != 4 ORDER BY post_date ASC LIMIT limit,1

    I use Yahoo! as the host and had the Error establishing a database connection! issue for 24 long hours.

    The way I fixed it was by changing the hostname from localhost to <b>mysql</b>

    define(‘DB_HOST’, ‘mysql’); // 99% chance you won’t need to change this value except with Yahoo!

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