While installing MySQL , I noticed a point, I mean to start the MySQL server manually , use the command cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql The error shown is : cp: cannot create regular file `/etc/init.d/mysql': No such file or directory

I have switched in as root user.I could see /etc directory but not init.d. I am trying to do this in Solaris 10, and MySQL version is 5.5.

Reference : http://dev.mysql.com/doc/refman/5.5/en/binary-installation.html

  • Better off looking at dev.mysql.com/doc/refman/5.5/en/solaris-installation-pkg.html – Philᵀᴹ Jan 2 '14 at 10:31
  • I am allowed to use only tar files for some reason. Please let me know for "tar" files instead. – Subha Jan 2 '14 at 10:35
  • Look at the link I posted. The symbolic link names it shows are where the init scripts need to go (/etc/rc3.d/S91mysql for one) – Philᵀᴹ Jan 2 '14 at 10:37
  • Oracle docs refer to initscripts as "legacy," with proper services managed by their square wheel "SMF" so the server might not currently have what it needs in order for these scripts to work, even if you put them in the right place. I also suspect you might be inside a Solaris "zone," which may dictate what "the right thing to do" is. This is more of a Solaris issue than a MySQL issue; MySQL Server will work without these but will not auto-start/stop on server boot/shutdown without them. – Michael - sqlbot Jan 2 '14 at 16:35
  • @Michael-sqlbot : I think you are right , as of my Google search I found "init.d" was present in Solaris 9, but not in Solaris 10 which I am currently using.| So, I cannot auto-start/stop MySQL on Solaris 10 ?? – Subha Jan 3 '14 at 8:30

Your Answer

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

Browse other questions tagged or ask your own question.