Cannot connect Wordpress to MySQL database -


doing local website work learn wordpress theme development.

tried set wordpress through prompts, tried manually entering information in wp-config.php file, neither work. still cannot connect database, setup-config.php page returns "error establishing database connection". i've double, triple, , quadruple checked login credentials (database name, username, password etc.), complete , correct. deleted wp-config.php , tried again through web page, same result.

mysql running, mac system preferences panel says so, , can login , run sql queries @ command line, although have root. should running mysql root?

this problem exists wordpress , instance of phpmyadmin i've installed, don't think it's php code such, smells more permissions thing. it's worth, i've edited httpd.conf file wordpress on port 80 , phpmyadmin on 8081. apache serving sites should , php running, it's getting either site connect database that's problem.

system information:

mac os x 10.9.5 (mavericks)

php version 5.4.30

mysql version: mysql ver 14.12 distrib 5.0.45, apple-darwin9.2.0 (i686) using editline wrapper

in case simple changing db_host using correct host , port in wp-config.php:

define('db_host', '127.0.01:3306'); 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -