Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

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

share|improve this question
    
Better off looking at dev.mysql.com/doc/refman/5.5/en/solaris-installation-pkg.html –  Phil Jan 2 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 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 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 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 at 8:30

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.