[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Re How to install php4 on a raq 3 ?
- Subject: Re: [cobalt-developers] Re How to install php4 on a raq 3 ?
 
- From: Kul <WebMaster@xxxxxxx>
 
- Date: Tue Mar  6 02:00:18 2001
 
- Organization: Qax
 
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
 
Deepesh Letap wrote:
> Hi Kul,
> Send it over!
> > If you need mysql, email back I have a nice little set of instructions to
> cut'n'paste  !
> Thanks,
> Deep
Hi Deepesh,
Here it is:  Have fun ! <g>
Let me know if there ar eany typos etc for this and the other stuff !  <g>
MySQL version 3.23.33 Install
make sure there are no carriage returns,
I have my mail client set wrap at 9999 chars, so if you open this in a big window, it should not wrap at all <g>
-----------
  Login via SSH/Telnet as root
  su
  <ENTER YOUR ROOT PASSWORD WHEN PROMPTED>
  mv /usr/local/mysql /usr/local/mysqlol  # I changed my old /usr/local/mysql directory to mysqlold
  cd /usr/local/download                   # make a folder for all your downloads
  wget http://www.mysql.com/Downloads/MySQL-3.23/mysql-3.23.33.tar.gz   # download new mysql zip
  echo "mysql:x:101:103:MySql User:/usr/local/mysql:">>/etc/passwd
  echo "mysql:x:103:">>/etc/group
  tar zxvf mysql-3.23.33.tar.gz            # unzip the tar file to a folder
  cd mysql-3.23.33                         # go into new folder
     # make sure this is all on one line
  ./configure --prefix=/usr/local/mysql --with-unix-socket-path=/tmp/mysql.sock --with-mysqld-user=mysql
  make                                     # takes a while
  make install                             # takes a while
  chown mysql.mysql /usr/local/mysql       # make "mysql" a command without having to type /usr/local etc all the time
  scripts/mysql_install_db        # builds main and test databases
  chown -R mysql.mysql /usr/local/mysql/var
  mkdir /var/lib/mysql
  ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
  rm -f /usr/bin/mysql
  ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql
  chmod 755 /usr/local/mysql/var
  /usr/local/mysql/bin/safe_mysqld &   # The best way to start mysql for the first time
       # Starting mysqld daemon with databases from /usr/local/mysql/data
       # you may have to press return to get a prompt again
       # Then you can type
  top      # This shows whats going on on your raq at the moment
       # hopefuly you will see mysqld running (I had 3 instances running, not sure why yet)
  CTRL-c   # will exit top
  /usr/local/mysql/bin/mysqladmin -u root password 'YourOwnPassordHere'  # change password from nothing to your own
  cp support-files/mysql.server /etc/rc.d/init.d/mysql    # start mysql on startup
  chmod 755 /etc/rc.d/init.d/mysql
  echo "/etc/rc.d/init.d/mysql start">>/etc/rc.d/rc.sysinit  # start mysql on startup
  /etc/rc.d/init.d/mysql start     # best wasy to stop and start the mysqlserver
  /etc/rc.d/init.d/mysql stop
-----------
The following are perl modules, they can be got from: http://ftp.cobaltnet.com/ but are not essential:
  rpm -i perl-DBI-1.14-1.i386.rpm
  rpm -i perl-Msql-Mysql-modules-1.2214-1.i386.rpm
Havn't tested thes two rpm's yet myself ! <g>
--
Regards,
Kul