Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > WHM Autopilot

Notices

Reply
 
Thread Tools
  #1  
Old 02-15-2011, 10:14 AM
mike.m mike.m is offline
Hatchling Croc
 
Join Date: Jan 2011
Posts: 7
Unhappy Step 1 of install, can't seem to connect to the DB.

Ok, this is the situation: I'm fairly sure I've done everything correctly, I used file manager to upload the .zip file, extracted the script to /autopilot/, copied the folders to the correct places and changed permissions but when I go to run the install I keep getting this error:
Quote:
Warning: mysql_query() [function.mysql-query]: Access denied for user 'username'@'localhost' (using password: NO) in /home/username/public_html/AP/inc/install1.php on line 37

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/username/public_html/AP/inc/install1.php on line 37
I've checked and double-checked everything I could think of. I can verify that I am using the correct database name prefixed by my username. What sticks out to me is the "using password: NO" thing. Has anyone else had this problem?

Thanks.
Reply With Quote
  #2  
Old 02-15-2011, 03:43 PM
GvilleRick's Avatar
GvilleRick GvilleRick is offline
Emperor Croc
 
Join Date: Jan 2007
Location: Greenville, SC
Posts: 3,130
Default Re: Step 1 of install, can't seem to connect to the DB.

You should be sure that you have created a database in cPanel which will append the username to the front. You also should create the user and the dbuser will have the cPanel username appended to the front. The last step is you must add the user to the database. This step is the most common step missed.
Reply With Quote
  #3  
Old 02-15-2011, 06:00 PM
mike.m mike.m is offline
Hatchling Croc
 
Join Date: Jan 2011
Posts: 7
Default Re: Step 1 of install, can't seem to connect to the DB.

Rick,

Thanks for the come-back! I'm not sure what you mean that I need to create a db to append the username to the front. I did create one db for autopilot as instructed, with one user. Do I need to create another?
Reply With Quote
  #4  
Old 02-15-2011, 06:04 PM
GvilleRick's Avatar
GvilleRick GvilleRick is offline
Emperor Croc
 
Join Date: Jan 2007
Location: Greenville, SC
Posts: 3,130
Default Re: Step 1 of install, can't seem to connect to the DB.

Quote:
Originally Posted by mike.m View Post
Rick,

Thanks for the come-back! I'm not sure what you mean that I need to create a db to append the username to the front. I did create one db for autopilot as instructed, with one user. Do I need to create another?
No, you need to create the one database, create a user for that database, and add the user to the database. Both the database and the user will have your cPanel username appended to the front of the names you choose. Often the last step, adding the user to the database, is the step that is missed.
Reply With Quote
  #5  
Old 02-17-2011, 07:38 AM
mike.m mike.m is offline
Hatchling Croc
 
Join Date: Jan 2011
Posts: 7
Default Re: Step 1 of install, can't seem to connect to the DB.

Nope, I've got all that covered. I submitted a ticket at whmautopilot.com, waiting to hear back from them. I'm pretty sure the problem is that, for some reason, the install script is attempting to access the database without a password.

Last edited by mike.m; 02-17-2011 at 07:41 AM.
Reply With Quote
  #6  
Old 02-17-2011, 11:59 PM
mike.m mike.m is offline
Hatchling Croc
 
Join Date: Jan 2011
Posts: 7
Default Re: Step 1 of install, can't seem to connect to the DB.

Actually haven't heard from WHMAuto. It's 2 days. Rick what are your PHP settings?
Reply With Quote
  #7  
Old 02-18-2011, 04:19 AM
striddy's Avatar
striddy striddy is offline
Veteran Croc
 
Join Date: Mar 2008
Location: /home/australia/earth
Posts: 4,093
Default Re: Step 1 of install, can't seem to connect to the DB.

Quote:
Originally Posted by mike.m View Post
Actually haven't heard from WHMAuto. It's 2 days. Rick what are your PHP settings?
PHP settings for what?
__________________
- David
Reply With Quote
  #8  
Old 02-18-2011, 06:10 AM
GvilleRick's Avatar
GvilleRick GvilleRick is offline
Emperor Croc
 
Join Date: Jan 2007
Location: Greenville, SC
Posts: 3,130
Default Re: Step 1 of install, can't seem to connect to the DB.

Quote:
Originally Posted by mike.m View Post
Actually haven't heard from WHMAuto. It's 2 days. Rick what are your PHP settings?
I'm afraid that I can't help much with WHMAuto. I was just mentioning the general steps to create and use a database when you install generic scripts.
Reply With Quote
  #9  
Old 02-18-2011, 12:27 PM
mike.m mike.m is offline
Hatchling Croc
 
Join Date: Jan 2011
Posts: 7
Default Re: Step 1 of install, can't seem to connect to the DB.

Quote:
Originally Posted by striddy View Post
PHP settings for what?
If I knew... I wouldn't be asking.

If it helps though, I'm trying to figure out why the install script is attempting to access my database WITHOUT a password. See above ^^

ps. Still waiting to hear from WHMAutopilot.com about this.
Reply With Quote
  #10  
Old 02-18-2011, 01:37 PM
dewt's Avatar
dewt dewt is offline
Swamp Croc
 
Join Date: Jul 2008
Location: Berkshire, UK
Posts: 247
Default Re: Step 1 of install, can't seem to connect to the DB.

Hi mike,

I've never used Autopilot myself so can't offer any specific instructions, but reading the posts and having just watched the tutorial video there are a couple of things that spring to mind:

  1. When you assigned the user to the database, what permissions did you give it?
  2. When you filled in the database details in the install script, did the username have your username infront of it as well (ie cPanel_username_DBusername).
  3. Finally, did you read the install.txt file to make sure that your php configuration was correct for Autopilot?
__________________
Dave Turnbull
Official Grumpy Old Git
Quote:
"People who ask our advice almost never take it. Yet we should never refuse to give it, upon request, for it often helps us to see our own way more clearly."

-- Brendan Francis
Reply With Quote
  #11  
Old 02-19-2011, 02:44 AM
mike.m mike.m is offline
Hatchling Croc
 
Join Date: Jan 2011
Posts: 7
Default Re: Step 1 of install, can't seem to connect to the DB.

dewt,

So you think it could be my PHP settings? the .txt file didn't say a whole lot about my PHP settings if I remember correctly. I've got my db_username set the same way I have it @hostgator. username_database/username_user/password
I can't figure out why it isn't using my password.
Reply With Quote
  #12  
Old 02-19-2011, 03:24 AM
striddy's Avatar
striddy striddy is offline
Veteran Croc
 
Join Date: Mar 2008
Location: /home/australia/earth
Posts: 4,093
Default Re: Step 1 of install, can't seem to connect to the DB.

Quote:
Originally Posted by mike.m View Post
So you think it could be my PHP settings?
Not likely.

Did you view the install video on whmautopilot's website? If not, please do as it may be of help.

Before running the install of the software, you must have done the following in cpanel.
  • Created a database
  • Created a database user with a password
  • Added the database user you created to that database will full privileges

When running the autopilot install, pay particular attention to the following:
  • Use localhost for the database host
  • Use yourCpanelUserName_dataBaseName for the database name
  • Use yourCpanelUserName_dateBaseUserName for the database user
  • Use the password you used when you setup the database user in cpanel
__________________
- David
Reply With Quote
  #13  
Old 02-19-2011, 09:30 AM
pathiggins pathiggins is offline
Hatchling Croc
 
Join Date: Jun 2010
Posts: 35
Default Re: Step 1 of install, can't seem to connect to the DB.

I know Brandee personally. I used to use whmautopilot a few years ago. the hostgator reseller account comes with a free license for both whmautopilot, and whmcs.

I have used both and to be very honest, I think that Brandee is not up on his game.

I highly recommend you delete the autopilot and install the whmcs option you will be happier with its performance.

Patrick Higgins
Reply With Quote
  #14  
Old 02-21-2011, 02:33 PM
mike.m mike.m is offline
Hatchling Croc
 
Join Date: Jan 2011
Posts: 7
Default Re: Step 1 of install, can't seem to connect to the DB.

Pat have you ever tried V3?
Reply With Quote
  #15  
Old 05-08-2011, 02:11 PM
pathiggins pathiggins is offline
Hatchling Croc
 
Join Date: Jun 2010
Posts: 35
Default Re: Step 1 of install, can't seem to connect to the DB.

Yes, but Brandee does not seem to be offering the same level of support as hostgator users are used to
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't connect to db during install SkoolBussDrvr WHM Complete Solution 7 09-23-2008 08:01 PM
WHMAP Install step 2 nhwd WHM Autopilot 8 10-03-2007 04:17 AM

All times are GMT -5. The time now is 09:57 AM.