'error establishing a database connection'
This is maybe a solution :
- open wp-config.php
- go to the part define('DB_HOST', 'localhost');
- replace 'localhost' with '127.0.0.1:8889'
Cheers.
# mysqladmin -u root -pcurrentpassword password 'newpassword'
# mysql -u root -pnewpassword Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 5.1.25-rc-community MySQL Community Server (GPL) mysql>
# mysql -u root -poldpassword Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 5.1.25-rc-community MySQL Community Server (GPL) mysql>
mysql> UPDATE user SET password=PASSWORD('newpassword') WHERE user='root';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
# mysql -u root -pnewpassword Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 5.1.25-rc-community MySQL Community Server (GPL) mysql>
# mysqladmin -u root password 'newpassword' [Note: There is no currentpassword for root in this example]
# mysqladmin -u jsmith -pcurrentpassword password 'newpassword'
mysql> UPDATE user SET password=PASSWORD('newpassword') WHERE user='ramesh';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
copied from : http://www.thegeekstuff.com/2009/07/change-reset-mysql-root-password-on-unix-linux/
$ mysqladmin -u root password NEWPASSWORD
$ mysqladmin -u root -p'oldpassword' password 'NEWPASSWORD'
$ mysqladmin -u napster -p'oldpassword' password 'NEWPASSWORD'
$ mysql -u root -p'password'
mysql> use mysql;
mysql> update user set password=PASSWORD("NEWPASSWORD") where user="napster";
mysql> flush privileges; mysql> ctrl+D
$ sudo /etc/init.d/mysql stop
$ sudo mysqld_safe --skip-grant-tables &
$ mysqld_safe --skip-grant-tables --skip-networking &
$ mysql -u root -p
mysql> use mysql;
mysql> update user set password=PASSWORD("NEWPASSWORD") where user="root";
mysql> flush privileges;
mysql> Ctrl+D
$ sudo /etc/init.d/mysql stop
$ sudo /etc/init.d/mysql start
Metacharacter | Meaning |
| ? | 0 or 1 o? matches '' or 'o' but not 'oo' bo?k matches : bk, bok but doesn't match : book,booooook |
| * | 0 or more a* matches '' , 'a' , 'aa' , 'aaa' ga*z matches : gz, gaz, gaaz, gaaaz but doesn't match : goz,giz |
| + | 1 or more u+ matches 'u', 'uuu' but not '' mu+te matches : mute,muute but not : mte,mate |
| {n} | Matches the preceding character, or character range, n times exactly, for example, to find a local phone number we could use [0-9]{3}-[0-9]{4} which would find any number of the form 123-4567. Note: The - (dash) in this case, because it is outside the square brackets, is a literal*. Value is enclosed in braces (curly brackets). |
| {n,m} | Matches the preceding character at least n times but not more than m times, for example, 'ba{2,3}b' will find 'baab' and 'baaab' but NOT 'bab' or 'baaaab'. Values are enclosed in braces (curly brackets). |
xdebug.so<komodo-install-directory>/Contents/SharedSupport/lib/support/php/debugging/<PHP-version>/ zend_extension_ts or zend_extensionzend_extension_ts ("thread safe") on Windows and zend_extension on other platforms.xdebug.remote_enablexdebug.remote_handlerdbgp for use with Komodo.xdebug.remote_modereq to have the script connect to Komodo when it starts. Set to jit to connect only on an error condition (see PHP Just-in-Time Debugging / Break on Exception).xdebug.remote_hostxdebug.remote_portxdebug.idekey (optional)?XDEBUG_SESSION_START=1 to the end of the URL (an HTTP GET with a true boolean value). For example:http://example.org/sample.php?XDEBUG_SESSION_START=1If you are using the DBGP Proxy, the value for the GET method should match the Proxy Key value shown in Debug|Listener Status. For example:
http://example.org/sample.php?XDEBUG_SESSION_START=jdoeIt is also possible to call
XDEBUG_SESSION_START by adding it in an input element of an HTML form. For example:<input type="hidden" name="XDEBUG_SESSION_START" value="jdoe" />