Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    1

    Default PHP, MySQL Database Connection Problem

    Guys, im new here, i have a question, im setting up my php script to connect to mysql db, i need to supply values to these variables: hostname, user, database, where can i find these information in cpanel? Thanks in advance

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Location
    PK
    Posts
    443

    Default

    Quote Originally Posted by pl0tted View Post
    Guys, im new here, i have a question, im setting up my php script to connect to mysql db, i need to supply values to these variables: hostname, user, database, where can i find these information in cpanel? Thanks in advance
    hostname should be localhost, user should be the database user that you create from cPanel under "cPanel >> Databases >> MySQL Databases" and database should also be the name of the database that you create from this cPanel tab.
    1 solution works for all problems. Trying harder!
    HostMasterTips - Understanding Tech Support

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 02-02-2009, 07:17 AM
  2. MySQL database / username connection
    By shacker23 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-13-2008, 04:13 PM
  3. mysql connection problem
    By NoAgendas in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-04-2006, 08:14 PM
  4. Exim and database connection problem
    By anton_latvia in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-31-2005, 04:50 AM
  5. mysql not connection through php - kinda urgent please
    By rastoma in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 05-06-2002, 08:32 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube