![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Can't find my.ini in MySQL directory?
The my.ini is in hidden folder of program data. First go to C: drive and then hidden folder of program data. From that, move to the MySQL version directory.
Here is the snapshot of the C: drive −
Click on C drive. The snapshot is as follows. Here, you can see the Program Data folder −
Now go to MySQL under Program Data folder. The snapshot is as follows −
Go to MySQL version. The snapshot is as follows −
Note − Here, we are using MySQL version 8.0.12
Here is the my.ini file.
In order to reach the location, you can also use the following command −
mysql> select @@datadir;
The following is the output −
+---------------------------------------------+ | @@datadir | +---------------------------------------------+ | C:\ProgramData\MySQL\MySQL Server 8.0\Data\ | +---------------------------------------------+ 1 row in set (0.00 sec)
Advertisements