Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design

mySQL Installation Guide

mySQL is the world's most popular database. It serves as the back-end database engine for numerous websites. This is a step-by-step guide to installing mySQL on a Linux server. This mySQL installation guide assumes that you know what mySQL is and how to use it.

mySQL installation notes:

Steps for installing mySQL :

  1. Download the mySQL source files from the mySQL website .

     

  2. Once you have downloaded the mySQL source files and decompressed them, configure the installation directory.

    Navigate to the root directory and type the following:

    ./configure --prefix=/usr/local/mysql <enter> .

    This will cause mySQL to be installed in this directory:

    /usr/local/mysql

    You can change the mySQL installation directory if you wish, but the remainder of this mySQL installation guide will assume this is where you are installing mySQL. 

     

  3. Now you're ready to build and install mySQL.

    Type make <enter> .

    This make process may take a few minutes. After it finishes,  type make install <enter> .

    This step will definitely take a few minutes. After it completes, you should see a bunch of new files in the /usr/local/mysql directory.

     

  4. Next, you need to initialize mySQL.

    Type cd /scripts <enter> .

    Type ./mysql_install_db <enter> .

     

  5. Configure the password.

    Type cd /usr/local/mysql <enter> .

    Type ./safe_mysqld& <enter> .

    Type ./mysqladmin -uroot -p[your-password-goes-here] <enter> .

     

  6. Add mySQL to the Linux Start and Stop Run Levels.

    Type the following in sequence:

    cp support-files/mysql.server /etc/rc.d/init.d/mysql <enter> .

    chmod +x /etc/rc.d/init.d/mysql <enter> .

    cd /etc/rc.d/rc3.d <enter>.

    ln -s ../init.d/mysql S85mysql <enter> .

    cd /etc/rc.d/rc5.d <enter> .

    l n -s ../init.d/mysql S85mysql <enter> .

    cd /etc/rc.d/rc0.d <enter> .

    ln -s ../init.d/mysql K85mysql <enter> .

    cd /etc/rc.d/rc6.d <enter> .

    ln -s ../init.d/mysql K85mysql <enter> .

     

  7. Reboot your system and test the mySQL installation.

    Type:

    cd /usr/local/mysql <enter> .

    bin/mysqladmin -uroot -p[your-password-goes-here] ping <enter> .

    The following response should now be displayed: mysqld is alive

You have now successfully installed mySQL. You might wish to add the mysql bin directory to your PATH.

 

India seo freelance web designer India web development ecommerce website developer India
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100