Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have installed Netbeans 7 on my Windows 7. In addition, the MySQL Community Server 5.6.12 is installed with the MSI installer on thesame 7 PC.

The MySQL server is integrated with the Netbeans IDE. However , it is not possible to start or stop the MySQL server from the command prompt or the Netbeans IDE.

I am only able to start or stop the server from the Windows 7 services tool. Also , it is difficult running SQL queries from the Netbeans IDE even though it shows there is connection with the MySQL server.

I have added the my.ini file to the installed directory of the MySQL server , that is :

C:\Program Files\MySQL\MySQL Server 5.6

below is the my.ini file :

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
port = 3306
# server_id = .....


# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M 

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 

In addition the following error is given:

Error : Cannot establish a connection to jdbc/mysql://loclhost:3306/
 using com.mysql.jdbc.Driver (Connection links failure)

Any suggestion is welcomed.

share|improve this question
    
Exactly what is happening when you try to start the server? –  Michael Hampton Jun 26 '13 at 21:22
    
when I run this in the command promot: >"C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld". It does not show any message , but when I use the Netbeans IDE , the message I get is : Connection refused. No extre message is added even in the output space of the IDE –  CodeAngel Jun 26 '13 at 21:40
    
I have updated the question to include error message from the Netbeans IDE. @Micheal Hampton –  CodeAngel Jun 28 '13 at 0:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.