Welcome, Guest. Please Login or Register.
August 26, 2025, 10:17:01 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  mySQL connection error « previous next »
Pages: [1] Reply Ignore Print
Author Topic: mySQL connection error  (Read 503 times)
Danno7
Noobie
*
Posts: 28


I'm not a llama....I'm an ardvark!

mySQL connection error
« on: March 05, 2002, 04:24:20 AM »
Reply with quote

Can't find the same error on search, so I will ask you:

Warning: Access denied for user: '[email protected]' (Using password: YES) in /usr44/home/hwdesign/public_html/php_test/install.php on line 175

Warning: MySQL Connection Failed: Access denied for user: '[email protected]' (Using password: YES) in /usr44/home/hwdesign/public_html/php_test/install.php on line 175
Cannot connect to database server with given data

I have been able to get connected with a myAdmin connection and just localhost, but the install script says I needed to modify it to localhost.addr.com and this is what I get...

Any Help?
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:mySQL connection error
« Reply #1 on: March 05, 2002, 12:21:36 PM »
Reply with quote

Check your password and username, it says that it can't connect with the given data.
Logged

Danno7
Noobie
*
Posts: 28


I'm not a llama....I'm an ardvark!

Re:mySQL connection error
« Reply #2 on: March 06, 2002, 03:30:20 AM »
Reply with quote

I have.  It works with the mySQLAdmin, but not with this...the mySQLAdmin works with just 'localhost' ???
Logged
Danno7
Noobie
*
Posts: 28


I'm not a llama....I'm an ardvark!

Re:mySQL connection error
« Reply #3 on: March 06, 2002, 03:33:02 AM »
Reply with quote

Here is the error when I use the 'localhost' reference instead:

Warning: Can't connect to local MySQL server through socket 'please specify localhost.addr.com as the hostname' (2) in /usr44/home/hwdesign/public_html/yabbse/install.php on line 175

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket 'please specify localhost.addr.com as the hostname' (2) in /usr44/home/hwdesign/public_html/yabbse/install.php on line 175
Cannot connect to database server with given data
Logged
mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:mySQL connection error
« Reply #4 on: March 06, 2002, 03:37:27 AM »
Reply with quote

instead of localhost you have to use sql.myserver.com or anything like this!

if you don“t know the mysql server adress, so ask your isp!
Logged

mainComm Dev Team
Danno7
Noobie
*
Posts: 28


I'm not a llama....I'm an ardvark!

Re:mySQL connection error
« Reply #5 on: March 06, 2002, 03:45:15 AM »
Reply with quote

the email says that  I should use mysql.addr.com and I get:

YaBB SE Installer

Warning: Access denied for user: '[email protected]' (Using password: YES) in /usr44/home/hwdesign/public_html/yabbse/install.php on line 175

Warning: MySQL Connection Failed: Access denied for user: '[email protected]' (Using password: YES) in /usr44/home/hwdesign/public_html/yabbse/install.php on line 175
Cannot connect to database server with given data  
Logged
mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:mySQL connection error
« Reply #6 on: March 06, 2002, 04:00:16 AM »
Reply with quote

which version? 100 or 110?
Logged

mainComm Dev Team
Danno7
Noobie
*
Posts: 28


I'm not a llama....I'm an ardvark!

Re:mySQL connection error
« Reply #7 on: March 06, 2002, 04:02:58 AM »
Reply with quote

100 - it said that safe mode was disabled
Logged
mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:mySQL connection error
« Reply #8 on: March 06, 2002, 04:13:01 AM »
Reply with quote

in line 175 in install.php (V 1.0.0 no safe) you will find this

$linkid = mysql_connect($dbserver, $dbuser, $dbpassword);
so if your dbserver mysql.addr.com and username and password ok, there can only 2 things wrong!

1. you have no db created (install.php will not do that for you)!

2. your account is disabled or the mysql-server is offline!
Logged

mainComm Dev Team
mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:mySQL connection error
« Reply #9 on: March 06, 2002, 04:26:16 AM »
Reply with quote

you are right with mysql.addr.com look here!

please, first create a db with any name, then start the install.php again! install.php will ask you a name of an exististing db! all was install.php does is write in this db tables and inserts!

check your mysql server and database with tihs script:

<?php$DBName = "(your data base name)";$DBUser = "(your data base user name)";$DBPass = "(your data base password)";$DBHost = "mysql.addr.com";$link = mysql_connect ( $DBHost, $DBUser, $DBPass )or die ( "Could notconnect<br><br>" );print ( "Connected to mysql server successfully<br><br>" );mysql_select_db ( $DBName )or die ( "Could not select database<br><br>" );print ( "Connected to database successfully<br><br>" );mysql_close ( $link );?>

mediman
« Last Edit: March 06, 2002, 04:34:50 AM by mediman » Logged

mainComm Dev Team
Danno7
Noobie
*
Posts: 28


I'm not a llama....I'm an ardvark!

Re:mySQL connection error
« Reply #10 on: March 06, 2002, 04:38:49 AM »
Reply with quote

Got it.  The host has not activated the account properly.  I used a different database and it worked.  Now I get a login issue...will post as new.  Thanks for the help!!
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  mySQL connection error « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.047 seconds with 18 queries.