Posts Tagged ‘solaris 10’

I have just installed MySQL 5.1.33 sucessfully on my Solaris 10u6 running on Sparc Ultra IIIi machine. Firstly, I tought that newest version of MySQL must be fixed from bugs found before. But, this version comes up with new bugs too,,,LOL 😀

To begin install MySQL, you can download either binary package or tarbal source from here. It’s easier to install binary package, but you’ll feel more free with tarbal source. I prefer binary package first. Download the package and save wherever you like. I usually put additional software source on /opt.

Here are the steps to install:

1. Create mysql user and group

#groupadd mysql

#useradd -g mysql mysql

2. Extract and install the package

#gunzip -d mysql-5.1.34-solaris10-sparc-64bit.pkg.gz

#pkgadd -d mysql-5.1.34-solaris10-sparc-64bit.pkg

You will be asked to create installation directory. Answer with yes to continue installation. The installation process will put the files on /opt/mysql/mysql.

3. You will need to do these command to change file/folders permission

#chown -R mysql:mysql /opt/mysql/mysql

#chown -R mysql:mysql /var/lib/mysql

#chmod -R 550 /opt/mysql/mysql

4. Binary files will be located in /opt/mysql/mysql/bin after installation. Install mysql database with this command


4.  Usually, we start the server with this command

#/opt/mysql/mysql/bin/mysqld_safe –user=mysql &

But, MySQL 5.1.33 has a bug on this. Here the bug is: Installation process put data files on /var/lib/mysql, while default mysqld_safe command will look forward to /opt/mysql/mysql/data/. We can fix this by adding –datadir option. To start the server, the complete command will be like this

#/opt/mysql/mysql/bin/mysqld_safe –user=mysql –datadir=/var/lib/mysql &

5. Don’t forget to create mysql root password

#/opt/mysql/mysql/bin/mysqladmin -u root password ‘your new password’
Actually there are still many bugs in this release. But this one is the most significant one -in my opinion indeed 😀 – that the server will not be running without fixing it.

Comment please 😀

Sign up for PayPal and start accepting credit card payments instantly.

This is the counter for my recent post, LOL… 😀
Nano is one of friendly text editor usually included on most Linux distribution. Nano is not included on Solaris 10 installation -tough you do entire disk install, LOL. But, nano can be installed later manually. These few simple steps will make your nano home 😀 :

1. Go to, choose your Solaris version and machine platform. Machine platform could be x86 or SPARC. Choose the right one

2. Once you choosen your Solaris version and machine platform, you will be entering new page with suitable to your OS and platform

3. Left-click on nano package

4. I assume you use SPARC machine. This is the view after you click on nano package

5. Click on nano package to download it

6. Click on dependencies needed based on the notes above (ncurses, libiconv, libintl, libgcc-3.4.6)

7. Install the dependencies first:

#gunzip -d ncurses-5.6-sol10-sparc-local.gz

#pkgadd -d ncurses-5.6-sol10-sparc-local

#gunzip -d libiconv-1.11-sol10-sparc-local.gz

#pkgadd -d libiconv-1.11-sol10-sparc-local

#gunzip -d libintl-3.4.0-sol10-sparc-local.gz

#pkgadd -d libintl-3.4.0-sol10-sparc-local

#gunzip -d libgcc-3.4.6-sol10-sparc-local.gz

#pkgadd -d libgcc-3.4.6-sol10-sparc-local

8. Finally, install the nano package

#gunzip -d nano-2.0.9-sol10-sparc-local.gz

#pkgadd -d nano-2.0.9-sol10-sparc-local

9. Next, you can’t use your nano yet untill you add your PATH variables

#export PATH=$PATH:/usr/local/bin

This is because nano installation put it’s binary files on /usr/local/bin which Solaris default PATH is not included it in.

Enjoy your nano 😀 !

Sign up for PayPal and start accepting credit card payments instantly.

Few days ago I have been sucessfully Solaris 10u6 on Sun Sparc v240 machine. It takes me few hours to be familiar with the machine.  V240 machine is one which has no graphic adapter (VGA) by its package. You cannot do installation by direct management. But don’t worry. V240 – just like other server machines –  is built up with one ethernet management port. We need one ethernet to RS232 cable to remote this machine using HyperTerminal. Here are the steps:

1. Make sure you have proper ethernet to RS232 cable and one PC/Laptop with RS232 connector

2. Connect the cable to the management port on v240 and another end to the RS232 connector on PC/laptop

3. Turn on the server, turn on HyperTerminal on PC/Laptop

4. Create new connection on HyperTerminal. Enter connection name and choose one icon you like. Choose proper port used by RS232 connection, klik restore default to use default connection preference

5. While the HyperTerminal connecting to the machine, insert Solaris 10 installation DVD to v240 dvd-rom

6. At anytime after HyperTerminal successfull connect to v240,  press ctrl+break

7. Wait ok prompt emerge. OK prompt will looked like this: OK>

8. Enter command for rebooting the machine with installation dvd with this command: boot cdrom

9. Wait until system reboot and search boot sequence to cdrom.

10. Follow installation instruction, use F2 to go to the next screen.

Sign up for PayPal and start accepting credit card payments instantly.