Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.80 KB | None | 0 0
  1. Setting environment for using XAMPP for Windows.
  2. USER@USER-PC c:\xampp
  3. # scp tatoeba_database.sql root@localhost
  4. 'scp' is not recognized as an internal or external command,
  5. operable program or batch file.
  6.  
  7. USER@USER-PC c:\xampp
  8. # mysql -u root dump tatoeba_database.sql;
  9. mysql Ver 15.1 Distrib 10.1.19-MariaDB, for Win32 (AMD64)
  10. Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
  11.  
  12. Usage: mysql [OPTIONS] [database]
  13.  
  14. Default options are read from the following files in the given order:
  15. C:\Windows\my.ini C:\Windows\my.cnf C:\my.ini C:\my.cnf C:\xampp\mysql\my.ini C:
  16. \xampp\mysql\my.cnf C:\xampp\mysql\bin\my.ini C:\xampp\mysql\bin\my.cnf
  17. The following groups are read: mysql client client-server client-mariadb
  18. The following options may be given as the first argument:
  19. --print-defaults Print the program argument list and exit.
  20. --no-defaults Don't read default options from any option file.
  21. --defaults-file=# Only read default options from the given file #.
  22. --defaults-extra-file=# Read this file after the global files are read.
  23.  
  24. -?, --help Display this help and exit.
  25. -I, --help Synonym for -?
  26. --abort-source-on-error
  27. Abort 'source filename' operations in case of errors
  28. --auto-rehash Enable automatic rehashing. One doesn't need to use
  29. 'rehash' to get table and field completion, but startup
  30. and reconnecting may take a longer time. Disable with
  31. --disable-auto-rehash.
  32. (Defaults to on; use --skip-auto-rehash to disable.)
  33. -A, --no-auto-rehash
  34. No automatic rehashing. One has to use 'rehash' to get
  35. table and field completion. This gives a quicker start of
  36. mysql and disables rehashing on reconnect.
  37. --auto-vertical-output
  38. Automatically switch to vertical output mode if the
  39. result is wider than the terminal width.
  40. -B, --batch Don't use history file. Disable interactive behavior.
  41. (Enables --silent.)
  42. --character-sets-dir=name
  43. Directory for character set files.
  44. --column-type-info Display column type information.
  45. -c, --comments Preserve comments. Send comments to the server. The
  46. default is --skip-comments (discard comments), enable
  47. with --comments.
  48. -C, --compress Use compression in server/client protocol.
  49. -#, --debug[=#] This is a non-debug version. Catch this and exit.
  50. --debug-check Check memory and open file usage at exit.
  51. -T, --debug-info Print some debug info at exit.
  52. -D, --database=name Database to use.
  53. --default-character-set=name
  54. Set the default character set.
  55. --delimiter=name Delimiter to be used.
  56. -e, --execute=name Execute command and quit. (Disables --force and history
  57. file.)
  58. -E, --vertical Print the output of a query (rows) vertically.
  59. -f, --force Continue even if we get an SQL error. Sets
  60. abort-source-on-error to 0
  61. -G, --named-commands
  62. Enable named commands. Named commands mean this program's
  63. internal commands; see mysql> help . When enabled, the
  64. named commands can be used from any line of the query,
  65. otherwise only from the first line, before an enter.
  66. Disable with --disable-named-commands. This option is
  67. disabled by default.
  68. -i, --ignore-spaces Ignore space after function names.
  69. --init-command=name SQL Command to execute when connecting to MySQL server.
  70. Will automatically be re-executed when reconnecting.
  71. --local-infile Enable/disable LOAD DATA LOCAL INFILE.
  72. -b, --no-beep Turn off beep on error.
  73. -h, --host=name Connect to host.
  74. -H, --html Produce HTML output.
  75. -X, --xml Produce XML output.
  76. --line-numbers Write line numbers for errors.
  77. (Defaults to on; use --skip-line-numbers to disable.)
  78. -L, --skip-line-numbers
  79. Don't write line number for errors.
  80. -n, --unbuffered Flush buffer after each query.
  81. --column-names Write column names in results.
  82. (Defaults to on; use --skip-column-names to disable.)
  83. -N, --skip-column-names
  84. Don't write column names in results.
  85. --sigint-ignore Ignore SIGINT (CTRL-C).
  86. -o, --one-database Ignore statements except those that occur while the
  87. default database is the one named at the command line.
  88. -p, --password[=name]
  89. Password to use when connecting to server. If password is
  90. not given it's asked from the tty.
  91. -W, --pipe Use named pipes to connect to server.
  92. -P, --port=# Port number to use for connection or 0 for default to, in
  93. order of preference, my.cnf, $MYSQL_TCP_PORT,
  94. /etc/services, built-in default (3306).
  95. --progress-reports Get progress reports for long running commands (like
  96. ALTER TABLE)
  97. (Defaults to on; use --skip-progress-reports to disable.)
  98. --prompt=name Set the mysql prompt to this value.
  99. --protocol=name The protocol to use for connection (tcp, socket, pipe,
  100. memory).
  101. -q, --quick Don't cache result, print it row by row. This may slow
  102. down the server if the output is suspended. Doesn't use
  103. history file.
  104. -r, --raw Write fields without conversion. Used with --batch.
  105. --reconnect Reconnect if the connection is lost. Disable with
  106. --disable-reconnect. This option is enabled by default.
  107. (Defaults to on; use --skip-reconnect to disable.)
  108. -s, --silent Be more silent. Print results with a tab as separator,
  109. each row on new line.
  110. --shared-memory-base-name=name
  111. Base name of shared memory.
  112. -S, --socket=name The socket file to use for connection.
  113. --ssl Enable SSL for connection (automatically enabled with
  114. other flags).
  115. --ssl-ca=name CA file in PEM format (check OpenSSL docs, implies
  116. --ssl).
  117. --ssl-capath=name CA directory (check OpenSSL docs, implies --ssl).
  118. --ssl-cert=name X509 cert in PEM format (implies --ssl).
  119. --ssl-cipher=name SSL cipher to use (implies --ssl).
  120. --ssl-key=name X509 key in PEM format (implies --ssl).
  121. --ssl-crl=name Certificate revocation list (implies --ssl).
  122. --ssl-crlpath=name Certificate revocation list path (implies --ssl).
  123. --ssl-verify-server-cert
  124. Verify server's "Common Name" in its cert against
  125. hostname used when connecting. This option is disabled by
  126. default.
  127. -t, --table Output in table format.
  128. --tee=name Append everything into outfile. See interactive help (\h)
  129. also. Does not work in batch mode. Disable with
  130. --disable-tee. This option is disabled by default.
  131. -u, --user=name User for login if not current user.
  132. -U, --safe-updates Only allow UPDATE and DELETE that uses keys.
  133. -U, --i-am-a-dummy Synonym for option --safe-updates, -U.
  134. -v, --verbose Write more. (-v -v -v gives the table output format).
  135. -V, --version Output version information and exit.
  136. -w, --wait Wait and retry if connection is down.
  137. --connect-timeout=# Number of seconds before connection timeout.
  138. --max-allowed-packet=#
  139. The maximum packet length to send to or receive from
  140. server.
  141. --net-buffer-length=#
  142. The buffer size for TCP/IP and socket communication.
  143. --select-limit=# Automatic limit for SELECT when using --safe-updates.
  144. --max-join-size=# Automatic limit for rows in a join when using
  145. --safe-updates.
  146. --secure-auth Refuse client connecting to server if it uses old
  147. (pre-4.1.1) protocol.
  148. --server-arg=name Send embedded server this as a parameter.
  149. --show-warnings Show warnings after every statement.
  150. --plugin-dir=name Directory for client-side plugins.
  151. --default-auth=name Default authentication client-side plugin to use.
  152. --binary-mode By default, ASCII '\0' is disallowed and '\r\n' is
  153. translated to '\n'. This switch turns off both features,
  154. and also turns off parsing of all clientcommands except
  155. \C and DELIMITER, in non-interactive mode (for input
  156. piped to mysql or loaded using the 'source' command).
  157. This is necessary when processing output from mysqlbinlog
  158. that may contain blobs.
  159.  
  160. Variables (--variable-name=value)
  161. and boolean options {FALSE|TRUE} Value (after reading options)
  162. --------------------------------- ----------------------------------------
  163. abort-source-on-error FALSE
  164. auto-rehash FALSE
  165. auto-vertical-output FALSE
  166. character-sets-dir (No default value)
  167. column-type-info FALSE
  168. comments FALSE
  169. compress FALSE
  170. debug-check FALSE
  171. debug-info FALSE
  172. database (No default value)
  173. default-character-set auto
  174. delimiter ;
  175. vertical FALSE
  176. force FALSE
  177. named-commands FALSE
  178. ignore-spaces FALSE
  179. init-command (No default value)
  180. local-infile FALSE
  181. no-beep FALSE
  182. host (No default value)
  183. html FALSE
  184. xml FALSE
  185. line-numbers TRUE
  186. unbuffered FALSE
  187. column-names TRUE
  188. sigint-ignore FALSE
  189. port 3306
  190. progress-reports TRUE
  191. prompt \N [\d]>
  192. quick FALSE
  193. raw FALSE
  194. reconnect TRUE
  195. shared-memory-base-name (No default value)
  196. socket C:/xampp/mysql/mysql.sock
  197. ssl FALSE
  198. ssl-ca (No default value)
  199. ssl-capath (No default value)
  200. ssl-cert (No default value)
  201. ssl-cipher (No default value)
  202. ssl-key (No default value)
  203. ssl-crl (No default value)
  204. ssl-crlpath (No default value)
  205. ssl-verify-server-cert FALSE
  206. table FALSE
  207. user root
  208. safe-updates FALSE
  209. i-am-a-dummy FALSE
  210. connect-timeout 0
  211. max-allowed-packet 16777216
  212. net-buffer-length 16384
  213. select-limit 1000
  214. max-join-size 1000000
  215. secure-auth FALSE
  216. show-warnings FALSE
  217. plugin-dir (No default value)
  218. default-auth (No default value)
  219. binary-mode FALSE
  220.  
  221. USER@USER-PC c:\xampp
  222. # mysql tatoeba_database.sql < C:\xampp\mysql\data\tatoeba
  223. Access is denied.
  224.  
  225. USER@USER-PC c:\xampp
  226. # mysql -u root tatoeba_database.sql < C:\xampp\mysql\data\tatoeba;
  227. Access is denied.
  228.  
  229. USER@USER-PC c:\xampp
  230. # mysql tatoeba_database.sql < C:\xampp\mysql\data\tatoeba;
  231. Access is denied.
  232.  
  233. USER@USER-PC c:\xampp
  234. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement