Change the PATH value to include the directory
Change the PATH value to include the directory where mysql is installed. If this is C:mysqlbin, the resulting PATH setting looks like this: PATH=C:mysqlbin;C:WINDOWS;C:WINDOWSCOMMAND Or: SET PATH=C:mysqlbin;C:WINDOWS;C:WINDOWSCOMMAND Under Windows NT-based systems, another way to change the PATH value is to use the System control panel (use its Environment or Advanced tab, whichever is present). In other versions of Windows, you can use the Registry Editor application. Unfortunately, the name of the Registry Editor key that contains the path value seems to vary among versions of Windows. For example, on the Windows machines that I use, the key has one name under Windows Me and a different name under Windows 98; under Windows 95, I couldn’t find the key at all. It’s probably simpler just to edit AUTOEXEC.BAT. After setting an environment variable, you’ll need to cause the modification to take effect. Under Unix, you can log out and log in again. Under Windows, if you set PATH using the System control panel, you can simply open a new DOS window. If you edited AUTOEXEC.BAT instead, restart the machine. 1.10 Issuing Queries 1.10.1 Problem You’ve started mysql and now you want to send queries to the MySQL server. 1.10.2 Solution Just type them in, but be sure to let mysql know where each one ends. 1.10.3 Discussion To issue a query at the mysql> prompt, type it in, add a semicolon (
at the end to signify the end of the statement, and press Return. An explicit statement terminator is necessary; mysql doesn’t interpret Return as a terminator because it’s allowable to enter a statement using multiple input lines. The semicolon is the most common terminator, but you can also use g (”go”) as a synonym for the semicolon. Thus, the following examples are equivalent ways of issuing the same query, even though they are entered differently and terminated differently:[2] [2] Example queries in this book are shown with SQL keywords like SELECT in uppercase for distinctiveness, but that’s simply a typographical convention. You can enter keywords in any lettercase.
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost PHP MySQL Web Hosting services