[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] MySql
- Subject: Re: [cobalt-users] MySql
- From: Richard Kurth <rkurth@xxxxxxxxxxxx>
- Date: Wed Jan 3 01:12:01 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hello Karsten,
Tuesday, January 02, 2001, 11:40:43 PM, you wrote:
E> Can someone help me to install MySql on cobaltraq 4?
What do you need to know. It's pretty easy just download the file and
compile it.
Become ROOT by using su.
# su
Change directly to where you have the tar file.
(use a temp directory. I used /tmp/download/)
# cd /tmp/download/
Extract the files using the following command.
# gunzip -dc mysql-3.22.32.tar.gz | tar xvf
Change to the NEW directory which was created during the extract.
# cd mysql-3.22.32
Now you can run "configure" for the MySQL server.
You can specify many options with the configure command.
Type "configure --help" to see all options.
We're using the "--prefix" option to specify the direct
path to the installation location. Configure will check for your
compiler and a couple of other things.
If you have any errors you can check the config.cache file to see the errors.
# configure --prefix=/usr/local/mysql
After you are done with the configure.
You can make the actual binaries by executing the following line
(this will take a while).
# make
Now you are ready to install all the binaries.
Run the following lines to install the binaries to
the directory you specified with the configure "--prefix" option.
# make install
Now it is time to create the mysql tables used to define the permissions.
Make sure you replace "new-password" with something of your choice,
otherwise, new-password will be your root password.
# scripts/mysql_install_db
# cd /usr/local/mysql/bin
# ./safe_mysqld &
# ./mysqladmin -u root password 'new-password'
You can ensure that MySQL is working by running some simple
tests to verify that the server is working.
The output should be similar to what is shown below:
# BINDIR/mysqlshow -p
Enter password:
+ ---------- +
| Databases |
+ ----------- +
| mysql |
+ ----------- +
--
Best regards,
Richard mailto:rkurth@xxxxxxxxxxxx