ssl-capath=name CA directory (check OpenSSL docs, implies -ssl). ssl-ca=name CA file in PEM format (check OpenSSL docs, implies ssl Enable SSL for connection (automatically enabled with S, -socket=name The socket file to use for connection. (Defaults to on use -skip-reconnect to disable.) reconnect Reconnect if the connection is lost. r, -raw Write fields without conversion. This may slowĭown the server if the output is suspended. q, -quick Don't cache result, print it row by row. protocol=name The protocol to use for connection (tcp, socket, pipe, prompt=name Set the mysql prompt to this value. (Defaults to on use -skip-progress-reports to disable.) progress-reports Get progress reports for long running commands (like Order of preference, my.cnf, $MYSQL_TCP_PORT, P, -port=# Port number to use for connection or 0 for default to, in W, -pipe Use named pipes to connect to server. Password to use when connecting to server. o, -one-database Ignore statements except those that occur while theĭefault database is the one named at the command line. (Defaults to on use -skip-column-names to disable.) column-names Write column names in results. n, -unbuffered Flush buffer after each query. (Defaults to on use -skip-line-numbers to disable.) line-numbers Write line numbers for errors. local-infile Enable/disable LOAD DATA LOCAL INFILE. Will automatically be re-executed when reconnecting. init-command=name SQL Command to execute when connecting to MySQL server. i, -ignore-spaces Ignore space after function names. Otherwise only from the first line, before an enter.ĭisable with -disable-named-commands. Named commands can be used from any line of the query, f, -force Continue even if we get an SQL error. E, -vertical Print the output of a query (rows) vertically. e, -execute=name Execute command and quit. T, -debug-info Print some debug info at exit. debug-check Check memory and open file usage at exit. C, -compress Use compression in server/client protocol. Theĭefault is -skip-comments (discard comments), enable column-type-info Display column type information. Mysql and disables rehashing on reconnect.Īutomatically switch to vertical output mode if the (Defaults to on use -skip-auto-rehash to disable.) 'rehash' to get table and field completion, but startupĪnd reconnecting may take a longer time. defaults-extra-file=# Read this file after the global files are read.Ībort 'source filename' operations in case of errors defaults-file=# Only read default options from the given file #. no-defaults Don't read default options from any option file. print-defaults Print the program argument list and exit. The following options may be given as the first argument: The following groups are read: mysql client client-server client-mariadb Mysql Ver 15.1 Distrib 10.1.19-MariaDB, for Win32 (AMD64)Ĭopyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.ĭefault options are read from the following files in the given order:Ĭ:\WINDOWS\my.ini C:\WINDOWS\my.cnf C:\my.ini C:\my.cnf C:\xampp\mysql\my.ini C:\xampp\mysql\my.cnf C:\xampp\mysql\bin\my.ini C:\xampp\mysql\bin\my.cnf Vous devriez voir toutes les lignes de commande et ce qu'elles font Setting environment for using XAMPP for Windows. tapez ce mysql -h localhost -u root et cliquez sur Entrée.Vous pouvez accéder à la ligne de commande MySQL avec XAMPP pour WindowsĬliquez sur l'icône XAMPP pour lancer son cPanel Revérifiez en utilisant la commande: SHOW GRANT FOR vous avez déjà le nom de l'utilisateur et la base de données spécifique que vous souhaitez utiliser, remplacez l'étape 2 par ceci. Pour faire ce type: GRANT ALL PRIVILEGES IN cms_database.* cms_user) avec des privilèges spéciaux pour limiter les erreurs. vous souhaitez créer un compte séparé (ex. Vous ne devez pas utiliser l'utilisateur root lorsque vous travaillez avec des bases de données. cms_database), tapez use cms_data ou tout autre db_name, il devrait dire Base de données modifiée Une fois que vous savez quelle base de données vous voulez utiliser type (ex.tapez: Afficher les bases de données pour voir toutes les bases de données auxquelles vous avez accès.dans la nouvelle ligne, entrez le mot de passe de la base de données.tapez: in mysql -u root -p puis appuyez sur Entrée.type: cd c:\xampp\mysql\bin appuyez ensuite sur Entrée.Le dossier est généralement sur le lecteur c:\. Pour accéder à SQL via la ligne de commande, nous naviguons simplement vers le dossier xampp.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |