Help with installing cpLinks

Discussion in 'Databases' started by hsteyn7, Jan 3, 2013.

  1. #1
    Im struggling to install cpLinks. I must configure the config.php file. I have already setup my Database in control panel. Im getting the following error:SQL/DB Error -- [Error selecting database cplinks!Are you sure it exists?Are you sure there is a valid database connection?Somewhere somehow im doing something wrong. I know this is 101 stuff but please help me?
     
    hsteyn7, Jan 3, 2013 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    When you set up your database, did you create a database named cplinks? That's what the error message is telling you - that there is no such database or that your code can't connect to it (maybe because the login or password in the database and the login or password in the config file aren't the same).
     
    Rukbat, Jan 3, 2013 IP
  3. hsteyn7

    hsteyn7 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thats just it, its the same. The database is set up in cPanel but I had to configure the config.php file to load script to my database. but somehow i am doing it wrong.I usually use softaculous to load scripts and this is my first time doing it manually.
     
    hsteyn7, Jan 3, 2013 IP
  4. hsteyn7

    hsteyn7 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The database name and database username reads howtolik_cplinks. Now when i configure the config.php file, what do I insert? [howtolike_cplinks] or just [cplinks]. But anyway I've tried them both ways. I would like it if someone can send me a format example on how the spesific config.php file should look like.
     
    hsteyn7, Jan 3, 2013 IP
  5. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #5
    The config file doesn't give a clue, so it probably has to be howtolike_cplinks. And are you sure that you have $database_host_name set right? It's not always localhost. (If you're not sure, check with your hosting company.)
     
    Rukbat, Jan 3, 2013 IP
  6. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #6
    Make sure that the host name is correct. If the database isn't on the same server as the website (very common), "localhost" will give you that error.
     
    Rukbat, Jan 4, 2013 IP
  7. hsteyn7

    hsteyn7 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    After 3 days of no-joy I sort of given up and moved over to osclass. But thanks, I might give it another try someting again.
     
    hsteyn7, Jan 4, 2013 IP