Showing posts with label MySQL. Show all posts
Showing posts with label MySQL. Show all posts

Thursday, January 10, 2013

PHP 5, MySQL web server on Android

Want to run a web app server on your smartphone or tablet? Specifically, run a full fledge PHP-MySQL Web Server straight from your Android device.



Well, there are a few pre-built apps on the Google App Store. In the past, there were a few lightweight HTTP servers running customize apps like AirDroid or PAW. These new ones have full PHP and MySQL run-times.

I tried a few and settled with Bit Web Server. I also tried KSWEB.

Bit WebServer also comes with PHPMyAdmin (PMA) installed and you are ready to go.
You can install Drupal and Wordpress as well. I got Code Igniter running without any problems.





A few notes. These apps tend to be a bit buggy. They can force-quit or hang under load. I can't really blame them as the fault may be with Android OS itself or the hardware I am running. I've tried them with the Galaxy Nexus and a Samsung Galaxy Tab 2. I've been reading that the OS (Jelly Bean and ICS) may starve the apps due to power savings and other reasons such as auto close.

I can't really complain though. I'm not running anything mission critical. If the app crashes, I simply restart it. It comes in handy show off web apps.

Moreover, it runs LIGHTTPD instead of Apache so PHP run as a CGI.

The apps range from 2ドル to 3ドル. Yeah, you're paying for open source software and may have an issue with it. However, think about the time you are saving without having to resort to building PHP/MySQL from scratch and make it work on your phone. I have no problem with the pricing.

Just add a keyboard and you are ready to go!





Links:

Bit Web Server
KSWEB.

Monday, November 12, 2012

Finally a good MySQL client for Linux, using WINE Crossover


If you've been running Ubuntu 11.04 and up, you will notice Canonical no longer provides support for the classic MySQL Query Browser and Admin. Instead, you are relegated to using MySQL Workbench or use an application like Emma.

Well, some people are set in their old ways and do not like to use something monolithic as Workbench. For example, if all you need to do is query, why go through the steps of making profiles to connect to random MySQLservers?

During the Election, Crossweaver gave away copies of Crossover for Linux and OSX. Crossover is a proprietary commercial version of Wine and works quite nice. It is not an OS virtualization tool like Vmware or Virtualbox. It is more of a run-time, application compatibility layer to allow you to run (some) Windows apps inside Linux or OSX. Instead of launching a heavy weighted OS, you launch a Wine Bottle and run your Windows app inside Linux with full access to the native filesystem.

How does it work? Quite fantastic. I installed the classic MySQL windows tool, HeidiSQL (a popular Windows MySQL client), Komodo Edit and Notepad++ with no problems.

HeidiSQL is so far superior to Emma.

Installation couldn't be easier. Build a bottle and select your .exe or .msi installer.






Like I wrote earlier, the app works within the OS. You can access your services locally like you do on any other native application. File-system is visible as well as networking




Pay attention to the screenshot below. I am connected to localhost (127.0.0.1). My local server is Ubuntu and my local client is WindowsXP. Cool. Dual identity.






Crossover works great on Mac OSX as well. However, I don't have applications deficit on Mac OSX so I wont be using it much on a Mac.





If you don't want to use Crossover, WINE is freely available.




Links:
http://www.codeweavers.com/products/
http://www.heidisql.com/
http://www.winehq.org/
Subscribe to: Comments (Atom)

AltStyle によって変換されたページ (->オリジナル) /