Installing Mysql On Unix, Linux

free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > Computers > Database

Installing Mysql On Unix, Linux

slacware
Download the latest version of MySQL.Choose the latest stable release and, from the stable release page, choose the option under "Source Downloads" marked "tarball (.tar.gz)". Download the file into a directory where files can be created and there is sufficient disk space. A good location is /tmp. Change directory to this location using:
1.

% cd /tmp


Note that the % character should not be typed in; this represents the Linux shell prompt and indicates that the command should be entered at the shell prompt.
2.

Uncompress the package in the new installation directory by running:

% gzip -d mysql-<version>.tar.gz

If MySQL 3.23.42 has been downloaded, the command is:

% gzip -d mysql-3.23.42.tar.gz


3.

Un-tar the tape archive file by running:

% tar xvf mysql-<version_number>.tar


A list of files that are extracted is shown.

If the version downloaded is MySQL 3.23.42, the command is:

% tar xvf mysql-3.23.42.tar


4.

Change directory to the MySQL distribution directory:

% cd mysql-<version>

If the version is MySQL 3.23.42, type:

% cd mysql-3.23.42


5.

Add a new Unix group account for the MySQL files:

% groupadd mysql


6.

Add a new Unix user who is a member of the newly created Unix group mysql:

% useradd -g mysql mysql


7.

Decide on an installation directory. Later, we recommend that PHP and Apache be installed in /usr/local/, so a good choice is /usr/local/mysql/. We assume throughout these steps that /usr/local/mysql/ is used; if another directory is chosen, replace /usr/local/mysql/ with the alternative choice in the remaining steps.
8.

Configure the MySQL installation by running the configure script. This detects the available Linux tools and the installation environment for the MySQL configuration:

% ./configure --prefix=/usr/local/mysql


9.

Compile the MySQL DBMS:

% make


10.

Install MySQL in the location chosen in Step 7 by running the command:

% make install


11.

MySQL is now installed but isn't yet configured. Now, run the mysql_install_db script to initialize the system databases used by MySQL:

% ./scripts/mysql_install_db


12.

Change the owner of the MySQL program files to be the root user:

% chown -R root /usr/local/mysql


13.

Change the owner of the MySQL databases and log files to be the mysql user created in Step 6:

% chown -R mysql /usr/local/mysql/var


14.

Change the group of the MySQL installation files to be the mysql group:

% chgrp -R mysql /usr/local/mysql


15.

Copy the default medium-scale parameter configuration file to the default location of /etc. These parameters are read when MySQL is started. The copy command is:

% cp support-files/my-medium.cnf /etc/my.cnf


16.

Edit the configuration file and adjust the default number of maximum connections to match the default value for the maximum Apache web server connections. Using a text editor, edit the file /etc/my.cnf, and find the section beginning with the following text:

# The MySQL server
[mysqld]

In this section, add the following line, then save the file, and exit the editor:

set-variable = max_connections=150


17.

The MySQL configuration is now complete, and MySQL is ready to be started. Start the MySQL DBMS with the following command:

% /usr/local/mysql/bin/safe_mysqld --user=mysql &

18.

Check that the MySQL DBMS is running with the mysqladmin utility. The following command reports statistics about the MySQL DBMS version and usage:

% /usr/local/mysql/bin/mysqladmin version


19.

Choose and set a password for root user access to the MySQL DBMS. To set a password of secret, use:

% /usr/local/mysql/bin/mysqladmin -uroot password secret

Record the password for later use.
20.

The MySQL server is currently running. However, when the machine is rebooted, MySQL doesn't restart automatically.

After reboot, the command in Step 17 can be used to restart MySQL or, alternatively, this process can be made automatic. To make the process automatic, find the file rc.local (normally either in or below the directory /etc). This file is used to list locally installed software that should be run on startup. Using an editor, add the following line to the bottom of the rc.local file:

/usr/local/mysql/bin/safe_mysqld --user=mysql &

The installation of MySQL is now complete.

Notice from BuffaloHELP:
Copied from cached page Warning.

 

 

 


Reply

CrazyRob
This has also been posted in the wrong forum

There is a much simpler way of installing MySQL on machines as most Linux / Unix machines have the command alredy built in so you just have to type:

yum install mysql (if you have yum installed)

or

apt-get install mysql (only debian and a few others support this)

Reply

augyd
-

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. linux check mysql version - 46.84 hr back. (1)
  2. linux commands to start mysql shell prompt - 47.19 hr back. (1)
  3. mysql for unix - 70.17 hr back. (1)
  4. default max connection mysql configuration linux - 74.21 hr back. (1)
  5. yum install mysql linux command - 80.11 hr back. (1)
  6. free download mysql.tar.gz - 93.50 hr back. (1)
  7. start mysql unix command - 118.02 hr back. (1)
  8. mysql script running from command prompt on linux machine - 119.24 hr back. (1)
  9. unix mysql - 125.93 hr back. (1)
  10. mysql.tar.gz download - 138.68 hr back. (1)
  11. yum install mysql 5.0.51 - 143.22 hr back. (1)
  12. default path mysql unix - 202.41 hr back. (1)
  13. how to check is mysql installed on unix - 217.44 hr back. (1)
  14. mysql.tar.gz installation linux - 238.41 hr back. (2)
Similar Topics

Keywords : installing, mysql, unix, linux

  1. Creating A Php Login System Using Mysql
    I need help in creating a login system, what I want is a login system (9)
  2. The Only Reason I Choose Ms Sql Server Rather Than Mysql
    (0)
    The only reason i choose ms sql server rather than mysql is, MS SQL has more security
    features!! MySQL is lacking a lot in my opinions - Lack in wide char, like nvarchar, I
    developed some application to support chinese letter, and dont know how to build one in mysql - Lack
    in t-sql syntax, like query in query is not fully supported - Does not have today SQL features like
    BI support (today really required) And compare MS SQL to MySQL, the only reason why mysql is
    favourable is - it is free! Dont u guys agree?....
  3. Need Advice On Setting Up Mysql Database.
    I have a huge amount of daily data updates to be inserted. (3)
    First of all, to get the idea of what I am trying to achieve here, please have a look at my
    idea thread, entitled Idea For Using A Cron Job To Grab Daily Travian Map.sql Updates . This gives
    a prelude to the project, what it is for, what it is supposed to do, etc. Now, what I need is
    specific advice on setting up the mySQL database(s) to implement this idea. There is a useful FAQ
    file for how to make use of the map.sql data located on the help.travian.com website, which also
    gives an example of the CREATE TABLE instruction that matches the data in the map.sql fi....
  4. The Best Free Php Mysql Blog
    any idea (5)
    Hi everyone Recently i tried to upload a personal blog. as I know a bit of PHP programming I was
    looking for a free open source PHP blog. first I tried Wordpress out but there was few problems
    that i needed to change php.ini or .htaccess file and also some other PHP settings. as i was trying
    it out on a free web host i didn't have access to php.ini. so i have changed it from Wordpress
    to bblog , i have installed it successfully and i followed it's safety instruction (deleting
    install folder and install.php and CHmod config.php )then i got another problem i ....
  5. Mysql-essential-5.0.51 Installion Problem
    please help me.(urgent) (2)
    Dear friend, please help me. Iam working on php project (matchmaking site). I have downloaded mysql
    essensial 5.0.51. When i was installing mysql 5.0.51, i got following error - Error 1901: Error
    attempting to read from the source installation database:
    c:\windows\installer\527ec6.msi What is solution of this problem ? Iam using
    windows xp professional version 2002 (service pack 2). Please post your reply. Iam waiting for your
    answer. ....
  6. Mysql Query Problems
    I need some help or a tutorial? (6)
    I seem to be having trouble with getting my Query to post my user's ID numbers. CODE //
    Make a MySQL Connection mysql_connect("localhost", "user",
    "password") or die(mysql_error());
    mysql_select_db("databasename") or die(mysql_error()); // Retrieve
    all the data from the members table $result = mysql_query("SELECT * FROM members WHERE
    id='$id'") or die(mysql_error());   // store the record of the
    id table into $row $row = m....
  7. Database With Mysql++
    getting mySQL++ to work with trap17 (7)
    Hi, I'm trying to build an online game and figured the easiest way to do the server list would
    be to make a mySQL database for it; however, I use the con() command on the IP i get from pinging my
    website and I always get an abnormal program termination; however, it will work with the mySQL on my
    own machine. The code is below: CODE #include <iostream> #include <iomanip>
    #include <mysql++> #include "pass.h"//holds my password (i program at
    school) int main(void) {     Connection con("t3jem3_test","....
  8. Mysql Datatype Int() Question
    Not sure what value to use inside int() (1)
    Can anyone clarify what the value in int() actually does? CREATE TABLE job_class ( jc_id int(1)
    NOT NULL AUTO_INCREMENT PRIMARY KEY, jc_index int(2) NOT NULL, jc_name varchar(20) NOT NULL, jc_type
    varchar(20) NOT NULL ); I was under the impression that any integer value used inside a () was
    the limit that data-type would have. In the PRIMARY KEY column I was able to add integer values
    1-18. I'm kinda confused now If I can add 2 digit integers there then what is the point of
    assigning values inside brackets() For the varchar() any number put in there does limit....
  9. Mysql
    (7)
    Hi... One of my hosts hasnīt MySQL but i need to develop a login system so I need to know if itīs
    possible to use a MySQL database intalled in another host... If itīs possible can you explain me how
    to do it? Thanks in advance....
  10. Loading File Into Blob Fields To Mysql
    (1)
    Hi all! does any know how to load file into blob filed by sql script?....
  11. Mysql And Sql
    difference??? (7)
    I was wondering what is the difference between MySQL and SQL. I was really confused when i planned
    to do a project recently. This question has haunted me for a long time. Is it both same?....
  12. Mysql Database Copying
    (4)
    Is there anyway to merge 2 databases? I have an XOOPS and SMF both installed with Fantastico, and
    the bridge is not working like the Joomla! one does. (with the seperate db capability) i know
    how to transfer all the tables by hand but depending on how much data you have stored in mysql could
    take a long time. Take short time!? Help me!....
  13. Mysql Tools Database
    Opensource sql tools... (1)
    You can download mysql query web browser on http://www.mysql.com you also can download plugin
    there...like conector mysql from visual basic ,java,etc with my sql query tool browser you can make
    and maintance youre database sql easily because use gUI interface..!!....

    1. Looking for installing, mysql, unix, linux

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for installing, mysql, unix, linux

*MORE FROM TRAP17.COM*
advertisement



Installing Mysql On Unix, Linux



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE