I am setting up a worklight server and have followed the steps given in the IBM site. I am now setting up my database using MySQL. And in this link, it said to update the option file. I am not familiar with the option file, but based on research, it is the my.ini file. However, I was not able to locate the file. Anyone knows where I can find this file? thank you!
The my.ini file is a MySQL options file; it has zero relation to Worklight Server.
The fact you're setting up MySQL as the Worklight Server database, does not mean there is a my.ini file for Worklight Server.
So, you need to find the my.ini file for your MySQL installation.
You did not state your MySQL version nor your Operating System, so my suggestion is to search google for
my.ini location <your os> mysql <your-mysql-version>
For example, in Windows for MySQL 5.5 the location would be: %PROGRAMDATA%\MySQL\MySQL Server 5.5\my.ini
See here: http://dev.mysql.com/doc/refman/5.5/en/option-files.html and search for similar based on what you need.
Related
This question already has answers here:
Location of my.cnf file on macOS
(33 answers)
Closed last month.
I have to change the innodb_log_file_size variable in MySQL. I am using MySQL 8.0.31 version on MacBook Pro M1. Tried to create the configuration file under /etc/my.cnf and added configuration there and restarted server. Server is not taking configuration from that file. Configuration update on linux/ubuntu system worked well.
Created custom configuration file to load.
There are a few things you can try to troubleshoot this issue:
1.Make sure that the custom configuration file you created is in the correct location for your MySQL version and operating system. For MySQL 8.0.31 on macOS, the default location for the configuration file is /usr/local/mysql/my.cnf.
2.Check the permissions on the configuration file to ensure that the MySQL server process has permission to read the file.
3.Verify that the MySQL server process is actually reading the configuration file by checking the process's command line arguments or by running the 'mysqld --verbose --help' command.
4.Make sure that the settings you are trying to change are actually read by MySQL. Some settings are read by the server at startup, while others can be changed at runtime.
5.If you are still having trouble, you can try specifying the configuration file location when starting the MySQL server. For example, you can use the '--defaults-file' option when starting the server.
6.Make sure that there is no other my.cnf file in the system that may be overriding the configuration you set.
I'm a beginner to SQL and setting up my environment.
I installed SQL on my windows 10 machine and the next step I need to do is create a my.cnf file (exact instructions: Create a my.cnf file in one of the default locations mysql is looking for it on your OS)
I do not know how and where to set this my.cnf file on my windows 10 machine. Can someone please help?
follow the following steps.
Type services.msc.
Find MySQL service in the services section.MYSQL56 is SQL service.Right click on it and go for properties.
Under general tab under properties, you will find the path of the default file in the path to executable.
Then locate the MYSQL configuration file i.e my.cnf on windows platform.You will easily find the file in this way on windows platform.
At the same level directory where your project is, create a file Auth and inside that create mysql.cnf .
And in your settings.py give the full path of above file inside databases' default option.
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'm new to MySql. I have downloaded and installed MySql 5.6 together with the latest version of Workbench (6.2). Workbench says my configuration file is in
C:\Program Files\MySQL\MySQL Server 5.0\my.ini
This folder does not exist. I have
C:\Program Files\MySQL\MySQL Server 5.6
And inside this folder there is an .ini file called my-default.ini. How can I find the correct .ini file so I can change my variables?
The name and path used by MySQL Workbench by default is taken from a template. There are several templates for various server versions and platforms with typical config file locations. However, they may not always work. On Windows however, with standard installations (which are extremely common), there are only very few variations. The simplest way to have the correct config file stored in the connection settings is by changing the installation type in the System Profile settings for a connection:
The sample config file my-default.ini is just that, an example. The installer should have created a concrete config file in the ProgramData MySQL folder for your server, which is what MySQL Workbench will also use by default.
For someone wants to find the menu answered above,
It can be found when you right click on a connection instance box of your MySQL workbench home and go to edit connection.
I know this question posted 5 years ago, but I had looked for the menu as well and finally find it. I hope I can add a comment but I cannot due to the reputation;)
I come from the oracle world where the tnsnames.ora file contain all the sql connection information.
I cannot seem to find the file containing such information for mysql. Could someone with a windows machine tell me where I can find it please.
MySQL doesn't need a connections file analogous to the .tns file. MySQL has nothing like a TNS. Connection parameters typically are configured explicitly in your application.
You can optionally create a file called .my.cnf that contains a user's default parameters for connecting.
See also What is the location of mysql client “.my.cnf” in Windows? that shows how to use mysql --help to find out the location of all the config files.
Most people just configure one set of connection parameters in their .my.cnf file, but you can configure multiple sets of connection parameters under different [client] groups, and invoke MySQL client tools to use the respective connection. There's an excellent blog that describes how to set this up here: http://datacharmer.blogspot.com/2011/03/hidden-options-file-trick.html
Re your updated info:
Sorry, I had to boot up a Windows box and install MySQL Workbench to check where the connection info is stored. I don't normally use Windows.
Right, for MySQL Workbench, the connection data is in for example,
C:\Users\Uncle Iroh\AppData\Roaming\MySQL\Workbench\connections.xml
But you're not expected to edit this by hand, and you'll probably ruin it if you try. It's undocumented, and presumably the format could change if you change versions of MySQL Workbench. You should create or edit connections in the Workbench GUI.
There is no such thing in MySQL. Check for a config file called my.ini or my.cnf. If MySQL is using a non-default port (not 3306), it will be detailed there. Otherwise, connect using:
mysql -u user -p
This is an executable (mysql.exe) you'll find in the bin directory of the installation (probably). For example, on my Windows box it's here: C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin\mysql.exe