my.cnf

mysql 5.7 log-slow-queries error

僤鯓⒐⒋嵵緔 提交于 2019-12-20 13:32:17
问题 I'm trying to enable Slow Query Logging on mysql 5.7 and getting this error: 2016-04-27T14:55:51.934612Z 0 [ERROR] unknown variable 'log-slow-queries=/var/log/mysql-query.log' 2016-04-27T14:55:51.934639Z 0 [ERROR] Aborting In my /etc/my.cnf file I have "log-slow-queries=/var/log/mysql-query.log" defined, but I'm going to assume that in 5.7 that is invalid. What is the correct my.cnf settings to enable query logging? Thanks, 回答1: Name of the MySQL system variable is slow_query_log_file And to

No results after removing mysql ft_stopword_file

大兔子大兔子 提交于 2019-12-20 02:04:08
问题 I have a film database that contains information about a film called Yes, We're Open. When searching the database, I'm having an issue wherein a search for "yes we're open" returns another title that has the words "we're" and "open" but not "yes" in its description, even though I require all words in boolean mode (i.e. "yes we\'re open" is translated to '+yes +we\'re +open' before it's sent as a query). I assumed this was because "yes" is in the built-in stopwords list. However, when I set ft

Installing MySQL Workbench but File /etc/my.cnf doesn't exist

拥有回忆 提交于 2019-12-19 07:16:05
问题 I managed to download the MySQL DMG archive to my OS (mac OS X). It works if I use the command line. Now, I'm trying to install MySQL Workbench. I've created MySQL Connection but once I'm testing the host machine settings, I get: Checking command 'ps xa | grep "/usr/local/mysql.*/bin/[m]ysqld"' Server detected as running Check if /etc/my.cnf can be accessed Operation failed: File /etc/my.cnf doesn't exist I'm trying to find the file my.cnf and I get: Didis-MacBook:~ Didi$ find . -type f -name

Property access not allowed yet when using mysqli_init(). Trying to skip secure auth in php

泄露秘密 提交于 2019-12-12 19:18:44
问题 I'm trying to skip secure authentication in php. $con= mysqli_init(); mysqli_options( $con, "READ_MYSQLI_DEFAULT_FILE", "/etc/my.cnf" ); mysqli_real_connect( $con, "localhost", ....password,etc... ) When i debug in phpstorm, on the first line, mysqli_init fails and says property access is not allowed yet.. 回答1: after finding this answer on SO: mysqli + xdebug breakpoint after closing statment result in many warnings it looks like its a bug in the mysqli driver, there was nothing wrong with

Where is the my.cnf located on a Vista? [closed]

大兔子大兔子 提交于 2019-12-12 02:08:55
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . Would anyone know where I could find the my.cnf file(s) on Vista? I am using XAMPP (C:/xampp) and I tried searching within that directory, but I can't seem to find it. 回答1: my.cnf or my.ini is probably in C:\xampp\mysql\ If not there, you can try the following, which I found here: To find these MySQL config

Do I need the text “_size” in the my.cnf file for mysql 5.1?

十年热恋 提交于 2019-12-12 01:32:56
问题 This is a pretty simple question about setting parameters in the my.cnf file for mysql 5.1. This page gives me the parameters I can tune: http://dev.mysql.com/doc/refman/5.0/en/server-parameters.html and so I think I would need to write key_buffer_size = 256M But when I open my current my.cnf, it has the line: key_buffer = 16M My question is, do I need "key_buffer_size" or "key_buffer" or does it not matter which I use? And, how would I know if something in the my.cnf is incorrect? Where's

In R, read.config is escaping a google-service-key but I dont want it to

感情迁移 提交于 2019-12-11 17:49:03
问题 For my job, I have to use an .my.cnf file to pass a password key into my R code, since I cannot (for security reasons) keep my password key in the R code itself. So I have R code that looks like this: library(configr) my_configs = read.config(file = "~/.my.cnf") my_googleservicekey = my_configs$api_authentication$googleServiceKeyJsonString Separately, I have a .my.cnf file saved on my computer, and that file looks like this: [api authentication] googleServiceKeyJsonString = {\r\n \"type"\: \

Mysql: modification in my.cnf doesn't take effect

喜你入骨 提交于 2019-12-10 12:57:09
问题 I've updated the my.cnf file of my database with the following line: max_connections=200 . I stopped and started the mysql service after that so that the changes would take effect. But for some reason this change doesn't affect the database because if I run: mysql> select @@max_connections it shows that the max number of connections is 100. Obviously there is some place else that manages this value. Where can I find it or what did I do wrong? Thank you for your reply. 回答1: Make sure the max

mySQL: editing/saving my.cnf file

ぃ、小莉子 提交于 2019-12-08 11:43:05
问题 I have found the sample configuration files provided with mysql 5.0 , but I am not able to save them, when I edit them. I also tried saving using a different file name but I received an error by windows saying that I don't have permission to save file in that location ( I am an administrator ). I need to edit the configuration file so I am able to save more data. I really can't figure out how to do it and have been struck on this problem since hours. anyone who can figure out whats going on?

Making MySQL work with utf-8 in my.cnf configuration file

核能气质少年 提交于 2019-12-08 07:02:28
问题 I'm having troubles trying to change the character sets in MySQL. I'm trying to edit the file "/etc/my.cnf" with the information taken from "http://stackoverflow.com/questions/3513773/change-mysql-default-character-set-to-utf8-in-my-cnf". The problem is, that adding this information to my file (and many others taken from the internet), the MySQL server doesn't start (when rebooting to implement the changes). I get this message: [root@tribals ~] # /etc/init.d/mysql restart Shutting down MySQL.