11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 27 • THE MANY MYSQL CLIENTSwww.it-ebooks.info• --force, -f: When used in noninteractive mode, <strong>MySQL</strong> can read and executequeries found in a text file. By default, execution of these queries stops if an erroroccurs. This option causes execution to continue regardless of errors.• --host=name, -h: Specifies the connection host.• --html, -H: Outputs all results in HTML format. See the corresponding tip in thesection “Useful mysql Tips” for more information about this option.• --no-beep, -b: When rapidly typing and executing queries, it’s commonplace forerrors to occur, resulting in the annoying beeping error. Use this option to disable thesound.• --pager[=pagername]: Many queries produce more information than can fit on asingle screen. You can tell the client to present results one page at a time by assigning apager. Examples of valid pagers include the Unix commands more and less. Presently,this command is only valid on the Unix platform. You can also set a pager while insidethe mysql client by using the \P command.• --password, -p: Specifies the password. Note that you shouldn’t supply the passwordon the command line, as you would the username or host, but rather should wait forthe subsequent prompt so that the password isn’t stored in plain text in yourcommand history.• --port=#, -P: Specifies the host connection port.• --protocol=name: <strong>MySQL</strong> supports four connection protocols, including memory,pipe, socket, and tcp. Use this option to specify which protocol you’d like to use:• TCP protocol: Used by default when the client and server reside on two separatemachines, and requires port 3306 to function properly (the port number can bechanged with --port). You need to use TCP if the client and server reside ondifferent computers, although you can also use it when all communication isconducted locally.• Socket files: A Unix-specific feature that facilitates communication between twodifferent programs, and is the default when communication takes place locally.• Shared memory: A Windows-only feature that uses a common memory block toenable communication.• Named pipes: A Windows-only feature that functions similarly to Unix pipes.■ Note Neither of the preceding Windows-specific options is enabled by default (TCP is the default on Windowsfor both local and remote communication).514

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!