5

I'm using MySQL version 5.7.19 64bit version in my windows machine and I'm trying to change my default port number 3306.

But when I open my.ini file following error appears,

cannot find the c:\wamp64\bin\mysql5.7.19\my.ini file

enter image description here

When I click the yes button blank notepad file will be created. In this situation what Is my solution?

PS: I referred Can't find my.ini (mysql 5.7) question but still not able to find a proper answer for this situation

Nimeshka Srimal
  • 8,012
  • 5
  • 42
  • 57
INDRAJITH EKANAYAKE
  • 3,894
  • 11
  • 41
  • 63

1 Answers1

6

No, the configuration file cannot be blank. I think there's a problem with your wamp setup. However, if you want to edit the mysql conf file, you can see which file is loaded and edit it.

Open a command prompt and change your location to:

C:\wamp64\bin\mysql\mysql5.7.19\bin

Then run the command: mysql --help. You will see an output similar to below image. Just open that file and edit.

enter image description here

Hope it helps!!

Nimeshka Srimal
  • 8,012
  • 5
  • 42
  • 57
  • Yes, you will get a long list..Look for the lines I have highlighted in the above image. In the second red box above, you can see some file paths are shown? Those are the loaded configuration files. Notice the last path shown there, and edit it manually. – Nimeshka Srimal Apr 12 '19 at 17:00