how to install this script ..

Discussion in 'MySQL' started by saintwolf, Nov 27, 2007.

  1. #1
    i have Sql problem
    this is my website
    http://xfilm.awardspace.com/install.php

    cant connect to sql server i dont know where is the problem as am newbie in using sql and databases ..i know it may be a simple thing however i cant find the reason uptill now any body can help Guys.... ?
     
    saintwolf, Nov 27, 2007 IP
  2. Petey

    Petey Peon

    Messages:
    68
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi saintwolf,

    The first thing to check is if MySQL is actually running. Open a terminal window using SSH and once you have logged on type:
    ps -ef | grep mysql*

    If all you get as output is 'grep mysql*' then MySQL isn't running and you need to start it.

    If it is running then look for a line containing '--socket=' . The entry here will tell you where MySQL has created it's unix socket file. Your script is looking for it at /var/run/mysqld/mysqld.sock but it may be in a different place on your server and the install.php script may need changing.

    HTH
     
    Petey, Nov 27, 2007 IP
  3. saintwolf

    saintwolf Peon

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i found this in the company FAQ ( You cannot make connection through socket, please use MySQL settings to establish connection(see above question). it solves my problem which is
    (Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

    but still i dont know how to use MySql settings to establish a connection ...how i reach Sql settings
    shall i have to modify in the sql file or what
     
    saintwolf, Nov 27, 2007 IP
  4. MOG

    MOG Well-Known Member

    Messages:
    2,219
    Likes Received:
    163
    Best Answers:
    0
    Trophy Points:
    180
    #4
    Hi there,

    just to cover the basics, are you using a cPanel host?

    if so, have a look at the mySQLadmin button within the control panel.

    you probably want the standard settings for your form like host: localhost and you will probably have to create a database from your cpanel to get the script working.

    good luck!
     
    MOG, Nov 28, 2007 IP
  5. saintwolf

    saintwolf Peon

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    am newbie and i dont know and am not familiar with SQL basics ...i copied and pasted the SQL file to a Query window in My Sql
    i think now i need SSH client (like PuTTY program) to modify MySQL settings to establish a connection because i cant find any settings in the host company control panel ( am using awardspace.com free hosting plan )
    i want an exprienced SQL Guy to tell me does really i need SSH client to establish a connection or am forbidden to establish a conection cuz am using a Free hosting plan ....anybody helps ?
     
    saintwolf, Nov 28, 2007 IP
  6. newzone

    newzone Well-Known Member

    Messages:
    2,865
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    135
    Digital Goods:
    1
    #6
    i don' know what to say... but don't forget this

    It's crucial that you don't forget to setup the access rights with CHMOD 777 for the following:

    - blacklist.txt
    - censor_words.txt
    - uploads/
    - uploads/avatars
    - uploads/thumbs
    - Smarty/templates_c

    you must chmod them all to 777
     
    newzone, Nov 30, 2007 IP
  7. Boulder

    Boulder Well-Known Member

    Messages:
    806
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    118
    #7
    You need to make a database for the script and than in "config.php" probably enter in the database name, the user name and the password. So the script can connect to that database you made for the script..

    Boulder
     
    Boulder, Nov 30, 2007 IP