This is my first time using MySQL. I have Windows and XAMPP installed .
I have created a database called "Students" through my Java program that shows up as a folder in the C:\xampp\mysql\data directory, and in localhost/phpmyadmin/. I can query tables in the database from Java.
In the Xampp folder, mysql.exe is found in C:\xampp\mysql\bin. This is what displays from the prompt there:
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
Files with these names exist in C:\xampp\mysql\mysql-test.
I was expecting to see my database here. I gather perhaps I can tell it to look in a different place by editing the my.cnf file. But there is one in C:\xampp\mysql\mysql-test\suite\rpl and one in C:\xampp\mysql\mysql-test\suite\federated. Neither contains "datadir". Am I on the right path? What do I do?
StudentsDB using the same user account?SHOW DATABASESwill only show databases you have privileges to. – ernie Jun 22 '13 at 00:10