1

I have just installed mysql in OS X and this code works fine:

String url = "jdbc:mysql://localhost:3306/";
String dbName = "information_schema";
String driver = "com.mysql.jdbc.Driver";
String userName = "";
String password = "";

Class.forName(driver).newInstance();
Connection conn = DriverManager.getConnection(url+dbName, userName, password);

Statement st = conn.createStatement();
ResultSet res = st.executeQuery("SELECT * from CHARACTER_SETS");
while(res.next()) {
    System.out.println(res.getString("CHARACTER_SET_NAME"));
}

conn.close();

so I assume everything is fine. But in Activity Monitor I can not see the daemon process:

enter image description here

Why do not I see something like mysqld ?

1

Do you perhaps have Activity Monitor set to display only your processes - I see all of the processes in the screenshot are owned by your user? Set it to display All Processes and you should see mysqld (I'm not sure how you installed MySQL but I'm guessing it's not running as your user).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.