Dears;
I have tried to save my.ini file as ANSI after deleting "Unique" comment raw, but the same problem.
even i copied a new my.ini file from a newly installed mysql server 8.0
please help
thank you
Related
I had mySQL workbench working fine a few weeks ago. Now, any time I log in, I get no connection. Upon inspecting Sever Status, it is showing Stopped. Also, under the Server Directories, it says Unable to Retrieve next to Disk Space in Data Dir.
I also noticed that the configuration file was wrong, or outdated? The Configuration File originally read:
C:\ProgramData\MySQL\MySQL Server 5.5\my.ini
But I looked and there was no MySQL Server 5.5 file in my directory. I do have a MySQL Server 8.0 folder, so I changed the Configuration File to:
C:\ProgramData\MySQL\MySQL Server 8.0\my.ini
However, this fails to solve the problem. I've also attempted to run Services from the Start Menu, right click on MYSQL80, and choose start - and it says the service has Started then stopped.
I'm not even sure this missing or mis-directed file is the issue, or whether it's the Unable to Retrieve Disk error (or both are causing the server to fail). I recently changed my login password for my computer - but I doubt that is related to the login credentials for MySQL, right? (I see MYSQL80 properties has password for 'log on' option, but I have no idea what this password even is, or how to change it).
I've also read about this problem online and cannot seem to find an answer that solves the issue. I've tried running MySQL Workbench as an admin too, and that doesn't work either.
Can anyone point me in the right direction? Is there a way to get the server up and running again without a bunch of complicated command line? I appear to have mysqld.exe in the bin file in MySQL 8.0
Thanks all in advance!
In MySql Workbench Server -> Startup/ShutDown -> Start Server.
This Worked for me.
When the my.ini file is messed up I think the best solution is a total uninstall/delete and manual install. Before you do any of the following make sure you go to your current data dir and save your database folders. Then dlete all of your current MySQL related directories and uninstall MySQL and MySQL workbench.
I had this problem when I installed MySQL 8.0.15 with the community installer. The my.ini file that came with the installer did not work correctly after it had been edited. I did a full manual install by downloading that zip folder. I was able to create my own my.ini file containing only the parameters that I was concerned about and it worked.
download zip file from MySQL website
unpack the folder into C:\program files\MySQL\MySQL8.0
within the MySQL8.0 folder that you unpacked the zip folder into, create a text file and save it as my.ini
include the parameters in that my.ini file that you are concerned about. so something like this(just ensure that there is already a folder created for the datadir or else initialization won't work):
[mysqld]
basedire=C:\program files\MySQL\MySQL8.0
datadir=D:\MySQL\Data
....continue with whatever parameters you want to include
initialize the data directory by running these two commands in the command prompt:
cd C:\program files\MySQL\MySQL8.0\bin
mysqld --default-file=C:\program files\MySQL\MySQL8.0\my.ini --initialize
install the MySQL server as a service by running these two commands:
cd C:\program files\MySQL\MySQL8.0\bin
mysqld --install --default-file=C:\program files\MySQL\MySQL8.0\my.ini
finally, start the server for the first time by running these two commands:
cd C:\program files\MySQL\MySQL8.0\bin
mysqld --console
I installed new MYSQL8.0 on my development server, and customize my.ini. After user creation, i realise new user not able to run the configuration file as admin, and it point to old version mysql5.5 my.ini. But i never install any mysql on this server, may i know how can i solve it, so all new user configuration will point to the right file.
Appreciate that, if you could advise me. thank you
In Windows - MySQL is usually installed in
C:\Program Files\MySQL\MySQL 8.0 Server\
Updating the below files (located in %APPDATA%\MySQL) with correct path might fix the issue
.mylogin.cnf
mysqld-auto.cnf
Reference: https://dev.mysql.com/doc/refman/8.0/en/option-files.html
I am using MYSQL5.7, installed using msi option in Windows. I want to change the innodb_buffer_pool_size. I went through stackoverflow and find out how to change the mysql.ini file.
For MYSQL5.7, i tried to change the my.ini file in the below location as described in stackoverflow.
Option1;
C:\Program Files\MySQL\MySQL Server 5.7. I made the changes in the my-default.ini file and stopped the mysql service and started again. Its not working
So i copied the my-default.ini to my.ini and tried again. Its not working
Option2:
I echo the programdata, then i found another location. C:\ProgramData\MySQL and in that i found 4 ini files. I changed everything and stopped and started the MYSQL service. Its also not working.
Please help me to understand why the ini file is not reflected and how to resolve this issue
Keep my.ini file in stall mysql location, and run net stop mysql, net run mysql.
If net run mysql is ok, then my.ini will be ok.
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 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