I need to change the "ft_min_word_len" server variable in MySQL.
I have tried adding it to the "my.ini" folder my MySQL folder and restarted MySQL, however it did not seem to update the server variable.
I am running MySQL 5.6.17 on WAMP 2.5.
Any help is much appreciated.
If you are running WAMPServer 2.5 64bit there was a mistake in the my.ini file that may explain why it is not picking up your change!
Edit my.ini ( using the wampmanager menu system ), look for this in that file
[wampmysqld]
And change it to
[wampmysqld64]
This section header should match the service name used by MySQL which in the 64 bit version of Wampserver2.5 is wampmysqld64
Related
As per the instructions given in below MySQL documentation, I have upgraded(in-place) MySQL from 5.6 to 5.7 version.
MySQL Reference
I am able to start the DB and seeing new version as result of status, but not showing the already existing databases. Is there anything I need to do to show the databases with new version?
Fixed by adding the below lines in my.ini file after [mysqld]
early-plugin-load=keyring_file.so
datadir=C:\\ProgramData\\MySQL\\MySQL Server 5.6\\data
After renamed the my-default.ini to my.ini in new binaries folder (C:\ProgramData\MySQL\MySQL Server 5.6) and added the below lines after the [mysqld]. able to see the databases.Please restart the server after making any changes to configuration.
early-plugin-load=keyring_file.so
datadir=C:\\ProgramData\\MySQL\\MySQL Server 5.6\\data
In my machine (Windows 10) two MySQl versions are needed. The Project "A" is running in XAMPP. When I've started my second project, I've stopped the first SQL services and installed MySQL 5.7. In that I need to set lower_case_table_names = 2 for the case sensitive method.
I google it, they say:
open your MySQL configuration file: [drive]\xampp\mysql\bin\my.ini
look up for: # The MySQL server [mysqld]
add this right below it: lower_case_table_names = 2
save the file and restart MySQL service
I know that it's for XAMPP only.
But I've installed MySQL in Program Files. Here I couldn't able to see C:\Program Files\MySQL\MySQL Server 5.7\bin\my.ini files. Then where should I set the lower_case_table_names = 2 value?
Thanks in advance.
In XAMPP use the "Control Panel" to find the mysql.ini config file.
In a regular Windows install of MySQL the .ini file sits in C:\ProgramData\MySQL\MySQL Server.
I am using wamp wampserver2.5-Apache-2.4.9-Mysql-5.6.17-php5.5.12-32b mysql version is 5.6.17. It provides mysql and php servers.
I want to track (see) the queries recently executed (from anywhere i.e a web page, desktop app or any service using mysql on mysqlserver.
I know "what to do" = > i have to enable query logging as told by http://dev.mysql.com/doc/refman/5.6/en/query-log.html
But i dont know "how to do" though i have seen How to enable MySQL Query Log?
but i am unable to find my.cnf anywhere. What i have is my.ini in wamp\bin\mysql\mysql5.6.17
As i use wamp so I am not familiar with mysql console. I want to know how (where) to set
general_log_file=/path/to/query.log
Using the WAMPServer menu system edit the my.ini file. WAMPServer uses a my.ini and not a my.cnf
(left click wampmanager) wampmanager->MySQL->my.ini
This will open the correct my.ini file with notepad.
Check for these parameters and if they dont exists add them under the section heading [wampmysqld] or if you are using 64bit WAMPServer the [wampmysqld64]
NOTE: If you are using the 64bit WAMPServer you may have to change [wampmysqld] to [wampmysqld64] as the 64bit release had a little bug in it and this section header was not set correctly. The filename may also be c:\wamp64 on 64bit WAMPServer systems.
log-output = FILE
general_log = 1
general_log_file=C:/wamp/logs/general-query.log
Save the file and then restart MySQL Server (restart WAMP in your case)
Check in the C:\wamp\logs folder for the new general-query.log file.
If 64bit version, be sure the log will be created in
"C:/wamp64/logs/general-query.log"
instead of "C:/wamp/logs/general-query.log".
I am aware that www is the root folder for the WAMP all sites content and its changeable.
How about wamp's folder for all its existing databases? Can we redirect its location as well? Are they even exist?
I tried to google it and surprising find no result of the folder location for databases in MySQL or wamp,
What I searched:
change root folder of the mysql database for wamp
By default WAMPServer puts all databases in wamp\bin\mysql\mysqlx.y.x if they are INNODB databases and wamp\bin\mysql\mysqlx.y.x\data for MYISAM databases and some parts of the INNODB databases.
MySQL is controlled by a file called my.ini or my.cnf but WAMPServer uses the my.ini file which is found by using the wampmanager menu system
left click wampmanager -> MySQL -> my.ini
or manually editing the file wamp\bin\mysql\mysqlx.y.x\my.ini. Stick to using the wampmanager menus.
The location of the databases is controlled by a parameter called datadir example datadir=d:/wamp/bin/mysql/mysql5.6.17/data
One word of warning, if you are using the WAMPServer 2.5 64bit version there is a minor bug in this file. The section header [wampmysqld] shoudl be chnaged to [wampmysqld64]
**But only if you are using the 64bit version of WAMPServer.
While you are in the my.ini file it is also a good idea to change this parameter which controls the language that error messages are shown in
lc-messages=fr_FR
to your prefered language Eg
lc-messages=en_GB
All,
For all of this I am using Mac OSX Snow Leopard.
I have happily used XAMPP to develop PHP backed sites in the past with no problems(as you'd expect for such a simple to set up package). I am now trying to set up this MySQL install in Netbeans 6.8 (for now just trying to get a sample database backed webapp to run). My issue is that even though MySQL has been started I cannot connect to it at 127.0.0.1 on port 3306 (which it is set up to use).
I have read that the issue is that XAMPP holds MySQl.sock in /Applications/XAMPP/xamppfiles/... whereas MySQL Workbench and Netbeans expects to find it in /tmp/MySQL.sock. Is this correct? I've tried to set up a symbolic link from /tmp to the xmapp directory but this doesn't appear to have changed anything.
Is there anything else I can try/anything that I am missing?
I upgraded from an older version of XAMPP to 1.7.3 and encountered a the same problem, I got MySQL Workbench to connect if I edited the my.ini file and:
changed the socket parameter to:
socket = "TCP/IP"
made mysql bind to an IP address or all IP as in the case below:
enable-named-pipe
bind-address=0.0.0.0
This requires that you disable named-pipe (as shown above)
I could not get this to work. So in case anyone else is reading this and wondering what happened... I installed a non XAMPP instance of the MySQL database and am using that now instead. Less than ideal but it works.