I installed MySQL 5.6 from sources on debian.

MySQL folder is /usr/local/mysql.

Here is several question: 1) I would like to config my.cfg. But I couldn't find several parameters:

   socket          = /var/run/mysqld/mysqld.sock (file is missing)
   pid-file        = /var/run/mysqld/mysqld.pid (file is missing)
   !includedir    /etc/mysql/conf.d/ (folder is missing)

Where are they?

2) I would like to make autostart on reboot system. But earlier I've installed from apt-get install source and had /etc/init.d/mysqld start and it would run automatically. Now I should run manually /etc/init.d/mysql.server start.

So, how to run it automatically?


If you've installed this yourself from source then I think there are some additional steps you need to do to complete your installation.

Specifically the following guides need to be followed:

You might want to also check out this guide which shows a lot of the steps specific to Debian.


You need to make sure those paths exist and that they are writable by the mysql 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.