MySQL not connecting, install fails

Ask questions or get help with installing Deadlock.

MySQL not connecting, install fails

Postby jodmcc1 » Wed Feb 24, 2010 2:27 pm

I have been trying to install the program a number of times without success. I have never worked with database setup or password protected sites, but do know setting up websites. I have a GoDaddy Hosted site and one thing also that I was not sure about is the password part of the deadlock install.
1. Do both the password in the deadlock install and the password for the database on GoDaddy need to match?

Below is the message I get:

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/p/a/u/pauladmin4hf/html/deadlock/install/install.php on line 348
The script could not connect to MySQL. Install Failed.

Any help would be greatly appreciated.

jodmcc1
jodmcc1
 
Posts: 7
Joined: Tue Feb 23, 2010 3:46 pm
Location: Houston, TX

MySQL not connecting, install fails

Sponsor


Use promo code PHPDEADLOCK for $10 off
Sponsor
 

Re: MySQL not connecting, install fails

Postby newbie455 » Wed Feb 24, 2010 7:51 pm

I believe with Godaddy, you need to create a database user through their control panel and give it access to the database you wish to install on. Also make sure to use the hostname provided in their control panel as the mysql hostname in Deadlock.
newbie455
the Deadlock developer

I do freelance PHP work and/or customizations. Contact me for more info.
newbie455
Project Admin
 
Posts: 668
Joined: Tue Jul 18, 2006 7:32 pm
Location: Texas / U.S. of A.

Re: MySQL not connecting, install fails

Postby jodmcc1 » Tue Mar 02, 2010 3:50 am

I created a database on a hosted account with GoDaddy and used the mySQL hostname in the Deadlock setup and the following error came up:
Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 113 in /home/content/p/a/u/pauladmin4hf/html/deadlock/install/install.php on line 348
The script could not connect to MySQL. Install Failed.

1. Do both the mySQL database on GoDaddy and the Deadlock password need to be the same?
2. Do both the mySQL database on GoDaddy and the Deadlock name need to be the same?

Still having problems and again, I have never setup a password to database before.

Thanks,
jodmcc1 :(
jodmcc1
 
Posts: 7
Joined: Tue Feb 23, 2010 3:46 pm
Location: Houston, TX

Re: MySQL not connecting, install fails

Postby newbie455 » Tue Mar 02, 2010 6:03 am

The error to both of your questions is no. As long as you enter the database information correctly, Deadlock should be able to connect. I have not seen that error before. What exactly is the hostname you are using?
newbie455
the Deadlock developer

I do freelance PHP work and/or customizations. Contact me for more info.
newbie455
Project Admin
 
Posts: 668
Joined: Tue Jul 18, 2006 7:32 pm
Location: Texas / U.S. of A.

Re: MySQL not connecting, install fails

Postby jodmcc1 » Tue Mar 02, 2010 3:15 pm

I'm using the following for the hostname:

hamburglar.db.4915585.hostedresources.com


jodmcc1
jodmcc1
 
Posts: 7
Joined: Tue Feb 23, 2010 3:46 pm
Location: Houston, TX

Re: MySQL not connecting, install fails

Postby newbie455 » Wed Mar 03, 2010 3:57 am

I suggest you contact godaddy about the error. It is a mysql generated error (doesn't have to do with deadlock) so they may be able to help you.

If you don't have any luck with that and are willing to give me your login info, I can have a look.
newbie455
the Deadlock developer

I do freelance PHP work and/or customizations. Contact me for more info.
newbie455
Project Admin
 
Posts: 668
Joined: Tue Jul 18, 2006 7:32 pm
Location: Texas / U.S. of A.

Re: MySQL not connecting, install fails

Postby jodmcc1 » Thu Mar 04, 2010 6:37 pm

Still not having any success. Newest error:

Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 113 in /home/content/p/a/u/pauladmin4hf/html/deadlock/install/install.php on line 348
The script could not connect to MySQL. Install Failed.

jodmcc1 :(
jodmcc1
 
Posts: 7
Joined: Tue Feb 23, 2010 3:46 pm
Location: Houston, TX

Re: MySQL not connecting, install fails

Postby jodmcc1 » Tue Mar 09, 2010 5:40 am

Still having problems, even after following your install guide and Guppy's install guide. Error:

Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 113 in /home/content/p/a/u/pauladmin4hf/html/members/install/install.php on line 348
The script could not connect to MySQL. Install Failed.
:(
jodmcc1
 
Posts: 7
Joined: Tue Feb 23, 2010 3:46 pm
Location: Houston, TX

Re: MySQL not connecting, install fails

Postby newbie455 » Tue Mar 09, 2010 6:13 am

Did you contact godaddy?
newbie455
the Deadlock developer

I do freelance PHP work and/or customizations. Contact me for more info.
newbie455
Project Admin
 
Posts: 668
Joined: Tue Jul 18, 2006 7:32 pm
Location: Texas / U.S. of A.

Re: MySQL not connecting, install fails

Postby jodmcc1 » Tue Mar 09, 2010 2:44 pm

Yes. First time I called, they needed me to go to my database and select configure and use the "connection strings" to connect to database. Not seeing where I was supposed to put this information in the setup screens, I tried to reinstall. Another error. Second time called they said that according to my screenshots, .htaccess needed to be in root and not a separate folder. I went back to setup and changed setting from /protected/.htaccess to just /.htaccess. tried to do reinstall and got error 500 before getting to setup screen. Finally got to setup screen entered the /.htaccess and again got another error. Tried reinstalling, making both .htaccess and .htpasswd settings to /.htaccess and /.htpasswd and still got error. Tried reinstalling, making sure I had .htaccess and .htpasswd in root directory. When I view site through FTP, there is no "public_html" directory. I went to GoDaddy and looked at the domain name configuration and it showed the "absolute hosting path" to be /home/content/p/a/u/pauladmin4hf/html. So in setup I entered that string and added "/.htaccess" and "/.htpasswd" in the respective setup boxes. Then I get an error in the next setup box telling me the path is wrong and it is showing me a path, which is the string I entered and another identical string behind it. I thought since I'm having so many issues with the original instructions that maybe I would try the install Guppy put together, including naming the directories the same as the instructions. This is when I got the last error listed above.
jodmcc1
 
Posts: 7
Joined: Tue Feb 23, 2010 3:46 pm
Location: Houston, TX

Re: MySQL not connecting, install fails

Postby newbie455 » Tue Mar 09, 2010 3:05 pm

Private message the "connection string" to me. Your problem is with mysql, not the .htaccess, so just leave that however you had it before.
newbie455
the Deadlock developer

I do freelance PHP work and/or customizations. Contact me for more info.
newbie455
Project Admin
 
Posts: 668
Joined: Tue Jul 18, 2006 7:32 pm
Location: Texas / U.S. of A.

Re: MySQL not connecting, install fails

Postby jodmcc1 » Fri Mar 12, 2010 2:26 pm

Just checking to see if you have any solutions yet?

Thanks,
jodmcc1
jodmcc1
 
Posts: 7
Joined: Tue Feb 23, 2010 3:46 pm
Location: Houston, TX


Return to Installation

Who is online

Users browsing this forum: No registered users

cron