The Server Command Console opens a command window with environment variables preset, and paths configured for server utilities. Apart from cosmetics, it is identical to a standard command window. This page focuses on using the Server Command Console. It is not intended as a definitive guide but just an introduction to show you how to access and run server utilities such as the MySQL client. Command window - backgroundUniform Server Zero XI is a portable WAMP stack; each component provides a number of command line utilities. These command line utilities can be run using a standard command window (cmd). The process is tedious as the following example demonstrates, you need to change the working directory to the folder containing the utility to be run and set any environment variables as required. How to run a standard command windowThis example uses the MySQL client to demonstrate how to run command line utilities using the standard command window. MySQL client allows you to run SQL commands, for example to create or delete databases. To open a command window, run the command cmd from the start menu. Running a MySQL utility program requires navigating to its binary folder. Note 1: The path where you installed The Uniform Server Zero XI may be different; substitute your path as appropriate.
Running a command window from the host PC steps 1 to 3 become tedious especially when running servers from a USB stick or moving servers to a different location. The paths will be different. The Server Command Console removes these three steps see below. Server Command ConsoleThe Server Command Console opens a command window with environment variables preset, and paths configured for server utilities removing the above three teps. To run a server command-line utility all that is required is to enter the command name and any parameters. For the above example proceed as follows:
MySQL Prompt - Short cutThe MySQL utility is a very popular admin tool; Uniform Server Zero provides a dedicated menu button that directly runs this utility in a console window.
Note: Command window and MySQLUsing a command window to administer the MySQL server is not specific to The Uniform Server Zero XI. Running a standard command window is the same for any Windows MySQL installation. The Uniform Server Zero’s Server Console sets the paths to MySQL binaries transparently. With the command console you can access the MySQL server utilities:
The MySQL client allows you to run SQL commands, for example to create or delete databases. Uniform Server Zero provides a seperate button to run the MySQL client see above (MySQL Prompt - Short cut). Server Utilities - View help informationEach server utility contains a help facility showing parameters that can be used. The following list utilities available:
Benchmarking toolApache Bench (ab) is a simple http load generating tool. ab.exe -n 100 -c 10 http://127.0.0.1/ You can target a specific page using the following format and write the output to a file: ab.exe -n 100 -c 10 http://127.0.0.1/test.php > test1.txt Same as above with keep-alive on ab.exe -n 100 -c 10 -k http://127.0.0.1/test.php > test1.txt You can force the request to use mod_deflate if avaible using the following format: ab.exe -n 100 -c 10 -H "Accept-Encoding: gzip;" http://127.0.0.1/test.php > test1.txt Note: Running tests from localhost skews the results you should always run your benchmarks from another machine. That said you might be interested only in comparative results, for example optimising a particular piece of code for speed. Running locally will quickly highlight any bottlenecks. Related topicsSet New MySQL root user password using MySQL Prompt |