sql >> Database >  >> RDS >> Mysql

Waar is my.cnf voor homebrew mysql-installaties?

Er is standaard geen my.cnf. Als zodanig begint MySQL met alle standaardinstellingen. Als u uw eigen my.cnf wilt maken om eventuele standaardinstellingen te negeren, plaatst u deze in /etc/my.cnf.

U kunt ook mysql --help . uitvoeren en kijk er doorheen voor de vermelde conf-locaties.

Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf 
The following groups are read: mysql client
The following options may be given as the first argument:
--print-defaults        Print the program argument list and exit.
--no-defaults           Don't read default options from any option file.
--defaults-file=#       Only read default options from the given file #.
--defaults-extra-file=# Read this file after the global files are read.

Zoals je kunt zien, zijn er ook enkele opties om de conf-bestanden te omzeilen, of om andere bestanden op te geven die moeten worden gelezen wanneer je mysql aanroept op de opdrachtregel.



  1. html drill down dropdown geselecteerde waarde wordt niet ingevoegd in MYSQL

  2. Kolomnaam ophalen in plaats van kolomwaarde

  3. Microsoft T-SQL naar Oracle SQL vertaling

  4. Fix "ERROR 1222 (21000):de gebruikte SELECT-instructies hebben een ander aantal kolommen" bij gebruik van UNION in MariaDB