Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed the mysql-5.6.15-debian6.0-i686.deb file on a MySQL site,and I installed it using the dpkg command but after that when I am writing:

1)sudo service mysql start The Answer is: mysql: unrecognized service

2) dpkg -l |grep server No result came. How shall I attach the service from the /opt/MySQL folder?

share|improve this question
2  
Does this help? Try it with mysqld as well, and try running sudo initctl reload-configuration beforehand. You may also need to install mysql-server with sudo apt-get install mysql-server. –  Wilf Dec 17 '13 at 13:21
add comment

1 Answer 1

First of all, the easiest way to install mysql on Ubuntu/Debian is with the help of APT:

sudo apt-get install mysql-server

If you do not have internet connectivity, or if you really want to install the version downloaded from mysql.org, then you should read the doc from mysql.org, especially this section:

Installing MySQL on Linux

For many Linux installations, you will want to set up MySQL to be started automatically when your machine starts. Many of the native package installations perform this operation for you, but for source, binary and RPM solutions you may need to set this up separately. The required script, mysql.server, can be found in the support-files directory under the MySQL installation directory or in a MySQL source tree. You can install it as /etc/init.d/mysql for automatic MySQL startup and shutdown. See Section 2.10.1.2, “Starting and Stopping MySQL Automatically”.

Basically, it says that if you install via apt-get, everything is smoothly integrated within your init system. But if you install from a debfile, you have to integrate it yourself.

share|improve this answer
add comment

Your Answer

 
discard

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

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