Android connection to localhost

IP-address 10.0.2.2 is used to fetch data from the emulator. Localhost will always point to the emulator/android device running the application. To let your device fetch data from your pc, it should be in the same network (connected by WiFi to your router) and you should use the local IP-address of your pc (normally a … Read more

where does MySQL store database files?

In any case you can know it: mysql> select @@datadir; +—————————————————————-+ | @@datadir | +—————————————————————-+ | D:\Documents and Settings\b394382\My Documents\MySQL_5_1\data\ | +—————————————————————-+ 1 row in set (0.00 sec) Thanks Barry Galbraith from the MySql Forum http://forums.mysql.com/read.php?10,379153,379167#msg-379167

#1045 – Access denied for user ‘root’@’localhost’ (using password: YES)

I first changed the root password running mysql at a prompt with mysql -u root -p Update password: UPDATE mysql.user SET Password=PASSWORD(‘MyNewPass’) WHERE User=”root”; Edited line in the file config.inc.php with the new root password: $cfg[‘Servers’][$i][‘password’] = ‘MyNewPass’ Stop and re-start mysql service (in Windows: mysql_stop.bat/mysql_start.bat) and got phpMyAdmin to work! EDIT 2017: for MySQL≥5.7 … Read more

Running Composer returns: “Could not open input file: composer.phar”

If you followed instructions like these: https://getcomposer.org/doc/00-intro.md Which tell you to do the following: $ curl -sS https://getcomposer.org/installer | php $ mv composer.phar /usr/local/bin/composer Then it’s likely that you, like me, ran those commands and didn’t read the next part of the page telling you to stop referring to composer.phar by its full name and … Read more

step-by-step instructions for installing IMAGEMAGICK on WAMP?

I know this is old post but I spend my all day to make it work, so here are the steps that helped me: Download ImageMagick Binary Release – http://www.imagemagick.org/script/download.php Install in C:\imagemagick, on last step check “Add application directory to your system path“ Download Imagick DLL: PHP5.6.x version from http://www.peewit.fr/imagick/ (I have 5.6+ version … Read more